forked from unl/VisitorChat
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.sample.php
50 lines (38 loc) · 1.44 KB
/
config.sample.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
<?php
function autoload($class)
{
$file = str_replace(array('_', '\\'), '/', $class).'.php';
if ($fullpath = stream_resolve_include_path($file)) {
include $fullpath;
return true;
}
return false;
}
spl_autoload_register("autoload");
set_include_path(
implode(PATH_SEPARATOR, array(get_include_path())).PATH_SEPARATOR
.dirname(__FILE__) . '/lib/Epoch/src'.PATH_SEPARATOR //path to Epoch's src dir.
.dirname(__FILE__) . '/lib'.PATH_SEPARATOR
.dirname(__FILE__) . '/src'.PATH_SEPARATOR
);
//Session life in seconds.
ini_set("session.gc_maxlifetime", 7200);
ini_set('display_errors', false);
error_reporting(E_ALL);
\Epoch\Controller::$cacheRoutes = false;
//Change this to the full base url of this instance.
\Epoch\Controller::$url = 'http://ucommfairchild.unl.edu/visitorchat/www/';
//Refresh rate of the chat in miliseconds.
\UNL\VisitorChat\Controller::$refreshRate = 1000;
//Set the default operators. (by UIDs)
\UNL\VisitorChat\Controller::$defaultOperators = array('s-mfairch4');
//Set session key to prevent man in the middle attacks.
\UNL\VisitorChat\Controller::$sessionKey = "totallyCoolKey";
//To cache and minimize or not to cache and minimize javascrip. That is the question.
\UNL\VisitorChat\Controller::$cacheJS = false;
\Epoch\Controller::setDbSettings(array(
'host' => 'localhost',
'user' => 'visitorchatapp',
'password' => 'visitorchatapp',
'dbname' => 'visitorchatapp'
));