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


PHP plugins::globalInit方法代码示例

本文整理汇总了PHP中plugins::globalInit方法的典型用法代码示例。如果您正苦于以下问题:PHP plugins::globalInit方法的具体用法?PHP plugins::globalInit怎么用?PHP plugins::globalInit使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在plugins的用法示例。


在下文中一共展示了plugins::globalInit方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: die

}
if ($GLOBALS['maintainance'] == TRUE && !in_array($_SERVER['REMOTE_ADDR'], $GLOBALS['maintainance_allowIPs'])) {
    die("<center><h3>Website Maintainance</h3>\n      " . $GLOBALS['website_title'] . " is currently undergoing some major maintainance and will be available as soon as possible.\n      <br/><br/>Sincerely\n  </center>");
}
require 'includes/misc/connect.php';
require 'includes/misc/func_lib.php';
require 'includes/misc/compress.php';
require 'includes/classes/account.php';
require 'includes/classes/server.php';
require 'includes/classes/website.php';
require 'includes/classes/shop.php';
require 'includes/classes/character.php';
require 'includes/classes/cache.php';
require 'includes/classes/plugins.php';
/******* LOAD PLUGINS ***********/
plugins::globalInit();
plugins::init('classes');
plugins::init('javascript');
plugins::init('modules');
plugins::init('styles');
plugins::init('pages');
//Load configs.
if ($GLOBALS['enablePlugins'] == true) {
    if ($_SESSION['loaded_plugins'] != NULL) {
        foreach ($_SESSION['loaded_plugins'] as $folderName) {
            if (file_exists('plugins/' . $folderName . '/config.php')) {
                include_once 'plugins/' . $folderName . '/config.php';
            }
        }
    }
}
开发者ID:Kheros,项目名称:CraftedWeb,代码行数:31,代码来源:loader.php


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