当前位置: 首页>>代码示例>>PHP>>正文


PHP Constants::post_boot方法代码示例

本文整理汇总了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";
开发者ID:KopjeKoffie,项目名称:codoforum-sitemap-generator,代码行数:31,代码来源:index.php

示例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) {
开发者ID:kertkulp,项目名称:php-ruhmatoo-projekt,代码行数:31,代码来源:routes.php


注:本文中的Constants::post_boot方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。