本文整理汇总了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';
}
}
}
}