Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
executable file 43 lines (34 sloc) 688 Bytes
<?php
/**
* @author Julian Bogdani <jbogdani@gmail.com>
* @copyright BraDypUS, Julian Bogdani <jbogdani@gmail.com>
* @license See file LICENSE distributed with this code
* @since Apr 8, 2012
*/
ob_start();
try
{
$basePath = './';
require_once './lib/constants.inc';
$controller = new Controller($_GET, $_POST, $_REQUEST);
$controller->route();
}
catch (myException $e)
{
$e->log();
echo utils::message( $e->getMessage(), 'error', true);
if (DEBUG_ON)
{
var_dump($e);
}
}
catch (Exception $e)
{
error_log($e->__toString(), 3, ERROR_LOG);
echo utils::message( tr::get('generic_error'), 'error', true);
if (DEBUG_ON)
{
var_dump($e);
}
}
ob_end_flush();