registerErrorHandler( $throwErrorExceptions=false); $firephp->registerExceptionHandler(); $firephp->registerAssertionHandler( $convertAssertionErrorsToExceptions=true, $throwAssertionExceptions=false); if( $_SERVER['SERVER_ADDR'] != "192.168.1.2" ) { $firephp->setEnabled(false); } set_error_handler(function($errno, $errstr, $errfile, $errline ){ $write = date("r")." {$errfile} {$errline} {$errstr} {$_SERVER['HTTP_HOST']} {$_SERVER['REQUEST_URI']} {$_SERVER['REMOTE_ADDR']}\n"; //echo $write."
"; }); include_once("twig.php"); include_once("autoload.php"); include_once("Sova/Worker.php"); $Worker = new Sova\Worker(); if( file_exists("./Sova/modules/{$_GET['controller']}.php") ) { include_once("./Sova/modules/{$_GET['controller']}.php"); } elseif( file_exists("./Sova/modules/{$_GET['controller']}/{$_GET['action']}.php") ) { include_once("./Sova/modules/{$_GET['controller']}/{$_GET['action']}.php"); } else { $Worker->errors->error404(); } $firephp->log($_SESSION,"SESSION"); $firephp->log($_GET,"GET"); $firephp->log($_POST,"POST"); $time = microtime(true) - $start; $firephp->log("Runtime: {$time}s", "RUNTIME");