本文整理匯總了PHP中Constants::post_boot方法的典型用法代碼示例。如果您正苦於以下問題:PHP Constants::post_boot方法的具體用法?PHP Constants::post_boot怎麽用?PHP Constants::post_boot使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Constants
的用法示例。
在下文中一共展示了Constants::post_boot方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: define
*/
define('IN_CODOF', TRUE);
error_reporting(-1);
ini_set("display_errors", 1);
date_default_timezone_set('Europe/London');
require "adminload.php";
require "Lib.php";
$ruri = str_replace("index.php?u=/", "", RURI);
define('A_RURI', $ruri . 'admin/');
//http://root URI
define('A_DURI', str_replace("admin/", "", DURI));
// http://~sites/
//define('DEFAULT_PATH',)//http://localhost/codoforum/sites/default/
//DATAPATH: "/opt/lampp/htdocs/codoforum/sites/2013/12/20/xyz/"
//ABSPATH: "/opt/lampp/htdocs/codoforum/"
Constants::post_boot('');
codoForumAdmin::$action["index"] = "index";
codoForumAdmin::$action["categories"] = "categories";
codoForumAdmin::$action["login"] = "login";
codoForumAdmin::$action["users"] = "users";
codoForumAdmin::$action["config"] = "config";
codoForumAdmin::$action["pages/pages"] = "pages/pages";
codoForumAdmin::$action["ui/themes"] = "ui/themes";
codoForumAdmin::$action["ui/blocks"] = "ui/blocks";
codoForumAdmin::$action["ui/smileys"] = "ui/smileys";
codoForumAdmin::$action["mail/configuration"] = "mail/configuration";
codoForumAdmin::$action["mail/templates"] = "mail/templates";
codoForumAdmin::$action["sso"] = "sso";
codoForumAdmin::$action["plugins/plugins"] = "plugins/plugins";
codoForumAdmin::$action["ploader"] = "ploader";
codoForumAdmin::$action["moderation/ban_user"] = "moderation/ban_user";
示例2: array
/*
* @CODOLICENSE
*/
//Limonade -> 230 ms
//display & routing
if (get_magic_quotes_gpc()) {
$gpc = array(&$_GET, &$_POST, &$_COOKIE, &$_REQUEST);
array_walk_recursive($gpc, function (&$value) {
$value = stripslashes($value);
});
}
use CODOF\Util;
use CODOF\Access\Request;
$db = \DB::getPDO();
Util::get_config($db);
\Constants::post_boot('themes/' . Util::get_opt('theme') . "/");
CODOF\Smarty\Single::get_instance();
//-------------------------server static files --------------------------------
dispatch_get('Ajax/history/posts', function () {
if (Request::valid($_GET['_token'])) {
$post = new \CODOF\Forum\Post();
$post->getHistory($_GET['pid']);
}
});
dispatch_get('Ajax/reputation/:pid/up', function ($pid) {
if (Request::valid($_GET['_token'])) {
$rep = new \CODOF\Forum\Reputation();
$rep->up($pid);
}
});
dispatch_get('Ajax/reputation/:pid/down', function ($pid) {