This repository has been archived by the owner on Jan 24, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
const.php
executable file
·64 lines (54 loc) · 1.7 KB
/
const.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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
<?php
/*
* AMP Data Display Interface
*
* Global Constants
*
* Version: $Id: const.php 1825 2010-07-27 05:08:25Z brendonj $
*
* This file contains global constants and defaults for the interface. Do
* NOT put system specific information in this file as it will be overwritten!
* Instead use const_local.php, which will not be overwritten!
*
*/
$dbUser = "";
$dbPassword = "";
$dbHost = "";
$dbName ="webusers";
$webusersDB = 0;
$eventsDB = 3;
$sitesDB = 1;
global $dgraf;
$dgraf = getcwd() . "/dgraf";
global $dataSetColour;
$dataSetColour{'random'} = 'red';
$dataSetColour{'max'} = 'purple';
$dataSetColour{'min'} = 'green';
$dataSetColour{'mean'} = 'red';
$dataSetColour{'median'} = 'blue';
$dataSetColour{'jitter'} = 'red';
$dataSetColour{'stddev'} = 'olive';
$dataSetColour{'loss'} = 'red';
global $system_name;
$system_name = "AMP";
global $adminContact;
$adminContact = "webmaster@" . php_uname('n');
define('CACHE_DIR', "cache/");
define('HOST_SEPARATOR', ":");
/* Colour to use for comparison graphs */
//$comp_colors = array("0X803800", "0Xf0b848", "0X189050", "0Xd038c0",
// "0X182040", "0X70d0e0", "0X4050b0", "0X580044");
$comp_colors = array("red", "green", "blue", "magenta", "purple", "lime", "cyan", "maroon", "navy", "olive", "teal", "silver", "gray", "yellow");
/* Default Gap Threshold */
$gapThreshold[TRACE_DATA] = 1201;
/* Time definitions */
define('SECONDS_1MIN', 60);
define('SECONDS_5MINS', 60*5);
define('SECONDS_10MINS', 60*10);
define('SECONDS_30MINS', 60*30);
define('SECONDS_1HOUR', 60*60);
define('SECONDS_1DAY', 24*SECONDS_1HOUR);
define('SECONDS_1WEEK', 7*SECONDS_1DAY);
/* Include local preferences to override defaults */
@include_once("const_local.php");
?>