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