本文整理汇总了PHP中Errors::start方法的典型用法代码示例。如果您正苦于以下问题:PHP Errors::start方法的具体用法?PHP Errors::start怎么用?PHP Errors::start使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Errors
的用法示例。
在下文中一共展示了Errors::start方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: unset
unset($root, $dir);
// Include config file
if (file_exists(FILE_ROOT . "digiplay.conf")) {
$local_config = @parse_ini_file(FILE_ROOT . "digiplay.conf");
} elseif (file_exists("/etc/digiplay.conf")) {
$local_config = @parse_ini_file("/etc/digiplay.conf");
} else {
die("Fatal error: Could not open " . FILE_ROOT . "digiplay.conf or /etc/digiplay.conf. Cannot continue.");
}
define("DATABASE_DPS_HOST", $local_config["DB_HOST"]);
define("DATABASE_DPS_PORT", $local_config["DB_PORT"]);
define("DATABASE_DPS_NAME", $local_config["DB_NAME"]);
define("DATABASE_DPS_USER", $local_config["DB_USER"]);
@define("DATABASE_DPS_PASS", $local_config["DB_PASS"]);
session_start();
Errors::start();
if (!function_exists('http_response_code')) {
function http_response_code($code = NULL)
{
header(':', true, $code);
}
}
if (!Session::is_user() && (substr(LINK_FILE, 0, 4) == "ajax" && LINK_FILE != "ajax/login.php")) {
http_response_code(403);
exit(json_encode(array("error" => "Your session has timed out, or you have logged out in another tab. Please log in again.")));
}
if (substr(LINK_FILE, 0, 6) == "studio") {
MainTemplate::set_barebones(true);
if (isset($_REQUEST["key"])) {
if (is_null(Locations::get_by_key($_REQUEST["key"]))) {
exit("Sorry, you provided an invalid security key.");
示例2: start
public static function start()
{
Errors::start();
ob_start(array('Output', 'stop'));
}