本文整理匯總了PHP中UserConfig::loadModule方法的典型用法代碼示例。如果您正苦於以下問題:PHP UserConfig::loadModule方法的具體用法?PHP UserConfig::loadModule怎麽用?PHP UserConfig::loadModule使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類UserConfig
的用法示例。
在下文中一共展示了UserConfig::loadModule方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: dirname
UserConfig::$useAccounts = false;
#UserConfig::$enableInvitations = true;
UserConfig::$supportEmailFrom = $supportEmailFrom;
UserConfig::$supportEmailReplyTo = $supportEmailReplyTo;
UserConfig::$SESSION_SECRET = $sessionSecret;
UserConfig::$admins = $instanceAdmins;
UserConfig::$dont_display_activity_for = $instanceAdmins;
UserConfig::$header = dirname(__FILE__) . '/header.php';
UserConfig::$footer = dirname(__FILE__) . '/footer.php';
UserConfig::$rememberMeDefault = true;
define('SHOWSLOW_ACTIVITY_ADD_URL', 1);
define('SHOWSLOW_ACTIVITY_PAGETEST_START', 2);
define('SHOWSLOW_ACTIVITY_URL_SEARCH', 3);
// array of activities in the system velue is an array of label and value of activity
UserConfig::$activities[SHOWSLOW_ACTIVITY_ADD_URL] = array('Added URL for monitoring', 5);
UserConfig::$activities[SHOWSLOW_ACTIVITY_PAGETEST_START] = array('Started WebPagetest test', 2);
UserConfig::$activities[SHOWSLOW_ACTIVITY_URL_SEARCH] = array('Searched a URL in the list', 1);
if ($facebookAPIKey) {
UserConfig::loadModule('facebook');
new FacebookAuthenticationModule($facebookAPIKey, $facebookSecret);
}
if ($googleFriendConnectSiteID) {
UserConfig::loadModule('google');
new GoogleAuthenticationModule($googleFriendConnectSiteID);
}
UserConfig::loadModule('usernamepass');
new UsernamePasswordAuthenticationModule();
// Features
// Flot support is now enabled using $enableFlot and this feature flag is not used
define('SHOWSLOW_FLOT_SUPPORT', 1);
new Feature(SHOWSLOW_FLOT_SUPPORT, 'Flot charting library support');