Exemple #1
0
 /**
  * Shutdown Handler
  * 停止程序句柄
  *
  * This is the shutdown handler that is declared at the top
  * of CodeIgniter.php. The main reason we use this is to simulate
  * a complete custom exception handler.
  *
  * E_STRICT is purposively neglected because such events may have
  * been caught. Duplication or none? None is preferred for now.
  *
  * @link	http://insomanic.me.uk/post/229851073/php-trick-catching-fatal-errors-e-error-with-a
  * @return	void
  */
 function _shutdown_handler()
 {
     $last_error = error_get_last();
     if (isset($last_error) && $last_error['type'] & (E_ERROR | E_PARSE | E_CORE_ERROR | E_CORE_WARNING | E_COMPILE_ERROR | E_COMPILE_WARNING)) {
         _error_handler($last_error['type'], $last_error['message'], $last_error['file'], $last_error['line']);
     }
 }
Exemple #2
0
define("G_TEMPLATES_IMAGE", G_TEMPLATES_PATH . '/' . G_STYLE . '/images');
/*
 *---------------------------------------------------------------
 *	INCLUDE GLOBAL FUNCTION
 *---------------------------------------------------------------
 *
 */
System::load_sys_fun('global');
/*
 *---------------------------------------------------------------
 *	error set
 *---------------------------------------------------------------
 *
 */
if (System::load_sys_config('system', 'error')) {
    _error_handler();
}
/*
 *---------------------------------------------------------------
 *	timezone set
 *---------------------------------------------------------------
 *
 */
function_exists('date_default_timezone_set') && date_default_timezone_set(System::load_sys_config('system', 'timezone'));
/**
*
*
*
*/
/**
*		WEB_INFO