header('HTTP/1.1 ' . $header); print "<h1>{$header}</h1>"; switch ($exception->getCode()) { case 404: $msg = "<p>I did'nt find what you've requested.</p><q>I think you ought to know I'm feeling very depressed.</q>"; break; case 500: $msg = "<p>Something just happened and it's barely bad !</p><q>Incredible... it's even worse than I thought it would be.</q>"; break; } print $msg; return; case 'ErrorException': } printf('<h1>%s</h1>' . '<pre>%s</pre>', $classname, $exception); } } /* Autoloader ------------------------------------------------------ */ if (!defined('ARAKNID_AUTOLOAD') || ARAKNID_AUTOLOAD == true) { include_once dirname(__FILE__) . '/Araknid/Loader.php'; if (function_exists('spl_autoload_register')) { spl_autoload_register(array('Araknid_Loader', 'loader')); } else { function __autoload($classname) { Araknid_Loader::loader($classname); } } /* Initializing Log System ------------------------------------- */ Araknid_Log::getInstance(); }
function error() { $args = func_get_args(); Araknid_Log::getInstance()->__call(__FUNCTION__, $args); }