* @copyright 2009 2Bytes.nl, M. T. Dwars * @version CVS: $Id:$ * \***************************************************/ //------------------------------------------------ // Start session //------------------------------------------------ session_start( ); //------------------------------------------------ // Error handling //------------------------------------------------ define( 'DEBUG', true ); // Debug? Turn off on live websites! if( DEBUG ) error_reporting( E_ALL ); // Show all errors else error_reporting( 0 ); // No errors //------------------------------------------------ // Define dirs //------------------------------------------------ define( 'ROOT', dirname( __FILE__ ) ); define( 'SYSTEM', ROOT . '/system' ); //------------------------------------------------ // Start core //------------------------------------------------ require_once SYSTEM . '/core.php'; try { new Core( ); } catch( Exception $e ) { if( DEBUG ) { echo 'System error: ' . $e->getMessage( ); exit; } else { echo 'Fatal error. Please come back later.'; exit; } } ?>