<?php
/*
	pwm Password Manager
	Copyright Owen Maule 2015
	o@owen-m.com
	https://github.com/owenmaule/pwm

	License: GNU Affero General Public License v3

	This program is free software: you can redistribute it and/or modify
	it under the terms of the GNU Affero General Public License as published by
	the Free Software Foundation, either version 3 of the License, or
	(at your option) any later version.

	This program is distributed in the hope that it will be useful,
	but WITHOUT ANY WARRANTY; without even the implied warranty of
	MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
	GNU Affero General Public License for more details.

	You should have received a copy of the GNU Affero General Public License
	along with this program.  If not, see <http://www.gnu.org/licenses/agpl.html>.

	---
	Initially developed on PHP version: 5.3.3-7+squeeze
*/

try
{
	require_once 'pwm.php';

	$pwm = new pwm();
	
	if( $pwm->authentication() )
	{
		$pwm->passwordManager();
	}
}
catch ( Exception $e )
{
	$pwm->alert( $e->getMessage(), ALERT_ERROR );
	# die( 'Error: ' . $e->getMessage() );
}

$pwm->render();
<?php
/*
	pwm Password Manager
	Copyright Owen Maule 2015
	o@owen-m.com
	https://github.com/owenmaule/pwm

	License: GNU Affero General Public License v3

	This program is free software: you can redistribute it and/or modify
	it under the terms of the GNU Affero General Public License as published by
	the Free Software Foundation, either version 3 of the License, or
	(at your option) any later version.

	This program is distributed in the hope that it will be useful,
	but WITHOUT ANY WARRANTY; without even the implied warranty of
	MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
	GNU Affero General Public License for more details.

	You should have received a copy of the GNU Affero General Public License
	along with this program.  If not, see <http://www.gnu.org/licenses/agpl.html>.

	---
	Initially developed on PHP version: 5.3.3-7+squeeze
*/

try
{
	require_once 'pwm.php';

	$pwm = new pwm();
	
	if( $pwm->authentication() )
	{
		$pwm->passwordManager();
	}
}
catch ( Exception $e )
{
	if( is_object( $pwm ) )
	{
		$pwm->alert( $e->getMessage(), ALERT_ERROR );
	} else {
		die( 'Error: ' . $e->getMessage() );
	}
}

$pwm->render();
Handle exceptions without app instantiated
Handle exceptions without app instantiated
