本文整理汇总了PHP中Errors::getTraceFile方法的典型用法代码示例。如果您正苦于以下问题:PHP Errors::getTraceFile方法的具体用法?PHP Errors::getTraceFile怎么用?PHP Errors::getTraceFile使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Errors
的用法示例。
在下文中一共展示了Errors::getTraceFile方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: setConfig
/**
* setConfig
*
* @param string $config
*/
public static function setConfig($config)
{
self::$_config = new Config_Ini($config);
Registry::set('top', '<!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.0//EN" "http://www.wapforum.org/DTD/xhtml-mobile10.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="vi">
<head><title>Quản lí - Gmanager 0.8.1 beta</title>
<meta http-equiv="Content-Type" content="' . self::getContentType() . '; charset=UTF-8" />
<link rel="stylesheet" type="text/css" href="vtr/style.css"/>
<script type="text/javascript" src="js.js"></script>
<script type="text/javascript" src="data/js.source.js"></script></head><body>
<div class="header" align="center"><a href="index.php"><h1>LPanel 2.1</h1></a>
<p align="left"><img src="vtr/img/pma.png" alt=""/> <a href="pma/">P.M.A</a> |
<img src="vtr/icon/SQL.png" alt=""/> <a href="pma/saoluu.php">S.Lưu</a> |
<img src="vtr/img/cpanel.png" alt=""/> <a href="index.php?set">C.đặt</a> |
<img src="vtr/img/exit.png" alt=""/> <a href="index.php?exit">Thoát</a></p></div>
');
Registry::set('foot', '<div class="header" align="center">
<div align="left">
<img src="vtr/img/pma.png" alt=""/> <a href="pma/">P.M.A</a> |
<img src="vtr/icon/SQL.png" alt=""/> <a href="pma/saoluu.php">S.Lưu</a> |
<img src="vtr/img/cpanel.png" alt=""/> <a href="index.php?set">C.đặt</a> |
<img src="vtr/img/exit.png" alt=""/> <a href="index.php?exit">Thoát</a>
</div>
<h2><a href="index.php?info">V2.1 - Tmc</a></h2>
</div></body></html>');
Language::setLanguage(self::get('Gmanager', 'language'));
define('PCLZIP_TEMPORARY_DIR', self::getTemp() . '/');
define('GMANAGER_REQUEST_TIME', time());
mb_internal_encoding('UTF-8');
setlocale(LC_ALL, self::get('PHP', 'locale'));
date_default_timezone_set(self::get('PHP', 'timeZone'));
@set_time_limit(self::get('PHP', 'timeLimit'));
ini_set('max_execution_time', self::get('PHP', 'timeLimit'));
ini_set('memory_limit', self::get('PHP', 'memoryLimit'));
ini_set('error_prepend_string', '<div class="red">');
ini_set('error_append_string', '</div><div class="rb"><br/></div>' . Registry::get('foot'));
ini_set('error_log', Errors::getTraceFile());
set_error_handler('Errors::errorHandler');
if (self::get('Auth', 'enable')) {
Auth::main();
}
Gmanager::getInstance()->init();
}
示例2: setConfig
/**
* setConfig
*
* @param string $config
*/
public static function setConfig($config)
{
self::$_config = new Config_Ini($config);
Registry::set('top', '<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ru"><head><title>%title% - Gmanager 0.8.1 beta</title><meta http-equiv="Content-Type" content="' . self::getContentType() . '; charset=UTF-8" /><link rel="stylesheet" type="text/css" href="public/style.min.css"/><script type="text/javascript" src="public/script.min.js"></script></head><body>');
Registry::set('foot', '<div class="w">Powered by Gemorroj<br/><a href="http://wapinet.ru/gmanager/">wapinet.ru</a></div></body></html>');
Language::setLanguage(self::get('Gmanager', 'language'));
define('PCLZIP_TEMPORARY_DIR', self::getTemp() . '/');
define('GMANAGER_REQUEST_TIME', time());
mb_internal_encoding('UTF-8');
setlocale(LC_ALL, self::get('PHP', 'locale'));
date_default_timezone_set(self::get('PHP', 'timeZone'));
@set_time_limit(self::get('PHP', 'timeLimit'));
ini_set('max_execution_time', self::get('PHP', 'timeLimit'));
ini_set('memory_limit', self::get('PHP', 'memoryLimit'));
ini_set('error_log', Errors::getTraceFile());
ini_set('error_prepend_string', '<div class="red">');
ini_set('error_append_string', '</div><div class="rb"><br/></div>' . Registry::get('foot'));
Errors::initHandler();
if (self::get('Auth', 'enable')) {
Auth::main();
}
Gmanager::getInstance()->init();
}