PageRenderTime 81ms CodeModel.GetById 45ms app.highlight 3ms RepoModel.GetById 17ms app.codeStats 0ms

/users_config.php

http://showslow.googlecode.com/
PHP | 34 lines | 23 code | 9 blank | 2 comment | 2 complexity | efc9cd0856375a53c69440830703b84f MD5 | raw file
 1<?php
 2require_once(dirname(__FILE__).'/global.php');
 3UserConfig::setDB(new mysqli( $host, $user, $pass, $db));
 4
 5if ($facebookAPIKey) {
 6	require_once(dirname(__FILE__).'/users/modules/facebook/index.php');
 7	UserConfig::$modules[] = new FacebookAuthenticationModule($facebookAPIKey, $facebookSecret);
 8}
 9
10if ($googleFriendConnectSiteID) {
11	require_once(dirname(__FILE__).'/users/modules/google/index.php');
12	UserConfig::$modules[] = new GoogleAuthenticationModule($googleFriendConnectSiteID);
13}
14
15require_once(dirname(__FILE__).'/users/modules/usernamepass/index.php');
16UserConfig::$modules[] = new UsernamePasswordAuthenticationModule();
17
18// TODO - implement accounts and then switch it to true.
19UserConfig::$useAccounts = false;
20
21UserConfig::$SESSION_SECRET = $sessionSecret;
22
23UserConfig::$admins = $instanceAdmins;
24
25UserConfig::$header = dirname(__FILE__).'/header.php';
26UserConfig::$footer = dirname(__FILE__).'/footer.php';
27
28UserConfig::$rememberMeDefault = true;
29
30define('SHOWSLOW_ACTIVITY_ADD_URL', 1);
31define('SHOWSLOW_ACTIVITY_PAGETEST_START', 2);
32// array of activities in the system velue is an array of label and value of activity
33UserConfig::$activities[SHOWSLOW_ACTIVITY_ADD_URL] = array('Added URL for monitoring', 5);
34UserConfig::$activities[SHOWSLOW_ACTIVITY_PAGETEST_START] = array('Started WebPagetest test', 2);