-
Notifications
You must be signed in to change notification settings - Fork 11
/
settings.php
44 lines (34 loc) · 1.31 KB
/
settings.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
<?php
/*
* @copyright (c) 2008 Nicolo John Davis
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
*/
//The user name of your database
$DBUSER = 'dbuser';
//The password of your database
$DBPASS = 'dbpass';
//The name of the database
$DBNAME = 'dbname';
//The point values of the problems
//Set it to the values you wish to use
//The number of elements in this array determines the number of problems
$points = array(10,25,25,25,50);
//Start time of the contest in the format 'YYYY-MM-DD HH:MM:SS'
$startTime = date_create('STARTTIME');
//End time of the contest in the format 'YYYY-MM-DD HH:MM:SS'
$endTime = date_create('ENDTIME');
//Interval between refreshes of the leaderboard (milliseconds)
$getLeaderInterval = 10000;
//Interval between refreshes of the chat room (milliseconds)
$getChatInterval = 1000;
//This is used to disable PHP error messages
ini_set('display_errors', false);
//You can use the variable $running to determine if the contest is running or not
$time = date_create();
$running = false;
if($time >= $startTime && $time <= $endTime)
$running = true;
//The following variables hold values of the code and problem directories. These directories are renamed with random strings for security purposes.
$CODEDIR = 'code';
$PROBLEMDIR = 'problems';
?>