本文整理汇总了PHP中UserConfig::refererRegexes方法的典型用法代码示例。如果您正苦于以下问题:PHP UserConfig::refererRegexes方法的具体用法?PHP UserConfig::refererRegexes怎么用?PHP UserConfig::refererRegexes使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类UserConfig
的用法示例。
在下文中一共展示了UserConfig::refererRegexes方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: array
<?php
require_once __DIR__ . '/global.php';
UserConfig::$appName = 'Show Slow';
#UserConfig::$DEBUG = true;
UserConfig::$mysql_host = $host;
UserConfig::$mysql_db = $db;
UserConfig::$mysql_user = $user;
UserConfig::$mysql_password = $pass;
UserConfig::$mysql_port = $port;
UserConfig::$mysql_socket = $socket;
// TODO - implement accounts and then switch it to true.
UserConfig::$useAccounts = false;
#UserConfig::$useAccounts = true;
UserConfig::$refererRegexes = array('/^http:\\/\\/www.webpagetest.org\\/result\\/.*$/' => 'WebPageTest.org test results');
#UserConfig::$requireVerifiedEmail = true;
#UserConfig::$adminInvitationOnly = 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);