本文整理汇总了PHP中XoopsBaseConfig::bootstrapTransition方法的典型用法代码示例。如果您正苦于以下问题:PHP XoopsBaseConfig::bootstrapTransition方法的具体用法?PHP XoopsBaseConfig::bootstrapTransition怎么用?PHP XoopsBaseConfig::bootstrapTransition使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类XoopsBaseConfig
的用法示例。
在下文中一共展示了XoopsBaseConfig::bootstrapTransition方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: define
// Shall be handled later, don't forget!
define("XOOPS_CHECK_PATH", 0);
// Protect against external scripts execution if safe mode is not enabled
if (XOOPS_CHECK_PATH && !@ini_get("safe_mode")) {
if (function_exists("debug_backtrace")) {
$xoopsScriptPath = debug_backtrace();
if (!count($xoopsScriptPath)) {
die("XOOPS path check: this file cannot be requested directly");
}
$xoopsScriptPath = $xoopsScriptPath[0]["file"];
} else {
$xoopsScriptPath = isset($_SERVER["PATH_TRANSLATED"]) ? $_SERVER["PATH_TRANSLATED"] : $_SERVER["SCRIPT_FILENAME"];
}
if (DIRECTORY_SEPARATOR != "/") {
// IIS6 may double the \ chars
$xoopsScriptPath = str_replace(strpos($xoopsScriptPath, "\\\\", 2) ? "\\\\" : DIRECTORY_SEPARATOR, "/", $xoopsScriptPath);
}
if (strcasecmp(substr($xoopsScriptPath, 0, strlen(XOOPS_ROOT_PATH)), str_replace(DIRECTORY_SEPARATOR, "/", XOOPS_ROOT_PATH))) {
exit("XOOPS path check: Script is not inside XOOPS_ROOT_PATH and cannot run.");
}
}
// Secure file
require XOOPS_VAR_PATH . '/data/secure.php';
if (!class_exists('XoopsBaseConfig', false)) {
include __DIR__ . '/class/XoopsBaseConfig.php';
XoopsBaseConfig::bootstrapTransition();
}
if (!isset($xoopsOption["nocommon"]) && XOOPS_ROOT_PATH != "") {
include XOOPS_ROOT_PATH . "/include/common.php";
}
}