forked from hznuoj-dev/hznuoj
-
Notifications
You must be signed in to change notification settings - Fork 0
/
static.example.php
61 lines (55 loc) · 2.05 KB
/
static.example.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
<?php
/**
* This file is created
* by D_Star @2016.08.22
**/
?>
<?php
static $DB_HOST="127.0.0.1";
static $DB_NAME="jol";
static $DB_USER="root";
static $DB_PASS="root";
static $DB_VJHOST="127.0.0.1";
static $DB_VJNAME="vhoj";
static $DB_VJUSER="root";
static $DB_VJPASS="root";
$OJ_HOME=dirname(dirname(__FILE__));//:OJ/
static $OJ_NAME="HZNUOJ";
static $OJ_ADMIN="root@localhost";
static $OJ_DATA = "/var/hznuoj/data";
static $OJ_ONLINE=false;
static $OJ_LANG="en";
static $OJ_SIM=true;
static $OJ_DICT=true;
static $OJ_LANGMASK=979967; //1mC 2mCPP 4mPascal 8mJava 16mRuby 32mBash 1008 for security reason to mask all other language 221184
static $OJ_EDITE_AREA=true; //true: syntax highlighting is active
static $OJ_AUTO_SHARE=true; //true: One can view all AC submit if he/she has ACed it onece.
static $OJ_CSS="hoj.css";
static $OJ_SAE=false; //using sina application engine
static $OJ_VCODE = false; // 是否开启验证码
static $OJ_APPENDCODE = true; // 是否开启补全代码(用于C语言教学)
static $OJ_MEMCACHE=false;
static $OJ_MEMSERVER="127.0.0.1";
static $OJ_MEMPORT=11211;
static $OJ_TEMPLATE="hznu";
if(isset($_GET['tp'])) $OJ_TEMPLATE=$_GET['tp'];
static $OJ_LOGIN_MOD="hustoj";
static $OJ_RANK_LOCK_PERCENT=0.2; // 封榜
static $OJ_SHOW_DIFF=false;
static $OJ_TEST_RUN = true;
static $OJ_OPENID_PWD = '8a367fe87b1e406ea8e94d7d508dcf01';
static $OJ_FORBIDDEN = false; //比赛中选用,是否禁止其它无关页面的访问
static $OJ_MONITOR = false; //比赛中选用,是否监听广播
static $ICON_PATH = "image/hznuoj.ico";
static $GOLD_RATE = 0.10; // 金牌比例
static $SILVER_RATE = 0.20; // 银牌比例
static $BRONZE_RATE = 0.30; // 铜牌比例
static $BORDER = 500000;
static $LOGIN_DEFUNCT = false;
static $VIDEO_SUBMIT_TIME=10;// can see video after
/* Email configuration */
static $SMTP_SERVER = "smtp.exmail.qq.com";
static $SMTP_SERVER_PORT = 25;
static $SMTP_USER = "";
static $SMTP_PASS = "";
?>