Skip to content

3. 设置

Jimmy Zhang edited this page Jun 3, 2016 · 3 revisions
  1. /inc/ojsettings.php

$oj_name = 'CWOJ' //设置OJ名称
$oj_copy = 'CWOJ Team' //设置OJ版权信息
$web_ver = 'xxx' //网页端版本
$daemon_ver = 'xxx' //评测端版本
$require_auth = 1 //0代表不需登录即可访问OJ,1代表必须先登录才能访问OJ。
$require_confirm = 0 //0代表新注册成员无需经过管理员确认,1代表新注册成员必须经过管理员确认。
date_default_timezone_set("PRC"); //PHP时区设置。
$daystart = 6 //自动采用日间模式的开始时间(小时,24小时制)。
$nightstart = 21 //自动采用夜间模式的开始时间(小时,24小时制)。
$num_404 = 2 //404页面图片总数(/assets/res/下)。
$num_403 = 1 //403页面图片总数(/assets/res/下)。
$news_num=7 //首页展示的新闻条数。
$contact_email = 'info@cwoj.tk'; //login.php中展示的联系邮箱。

  1. /inc/functions.php

function postmail下请按照phpmailer规范配置邮箱以正常使用发送找回密码邮件功能。

Clone this wiki locally