mirror of
https://github.com/renbaoshuo/S2OJ.git
synced 2024-11-08 14:18:40 +00:00
修改常量名及移除个人信息
This commit is contained in:
parent
7d1c1cc82a
commit
ee06930872
@ -2,11 +2,11 @@
|
||||
return [
|
||||
'profile' => [
|
||||
'oj-name' => 'Universal Online Judge',
|
||||
'oj-name-small' => 'UOJ',
|
||||
'administrator' => 'vfleaking',
|
||||
'admin-email' => 'vfleaking@163.com',
|
||||
'qq-group' => '197293072',
|
||||
'ICP-license' => '鄂ICP备14016048号'
|
||||
'oj-name-short' => 'UOJ',
|
||||
'administrator' => 'admin',
|
||||
'admin-email' => 'admin@uoj',
|
||||
'qq-group' => '',
|
||||
'ICP-license' => ''
|
||||
],
|
||||
'database' => [
|
||||
'database' => 'app_uoj233',
|
||||
|
@ -5,7 +5,7 @@
|
||||
</header>
|
||||
<section>
|
||||
<header>
|
||||
<h4>1. 什么是<?= UOJConfig::$data['profile']['oj-name-small'] ?></h4>
|
||||
<h4>1. 什么是<?= UOJConfig::$data['profile']['oj-name-short'] ?></h4>
|
||||
</header>
|
||||
<p>见 <a href="http://uoj.ac/blog/4">http://uoj.ac/blog/4</a>。 </p>
|
||||
</section>
|
||||
@ -13,12 +13,12 @@
|
||||
<header>
|
||||
<h4>2. 注册后怎么上传头像</h4>
|
||||
</header>
|
||||
<p><?= UOJConfig::$data['profile']['oj-name-small'] ?>不提供头像存储服务。每到一个网站都要上传一个头像挺烦的对不对?我们支持Gravatar,请使用Gravatar吧!Gravatar是一个全球的头像存储服务,你的头像将会与你的电子邮箱绑定。在各大网站比如各种Wordpress还有各种OJ比如Vijos、Contest Hunter上,只要你电子邮箱填对了,那么你的头像也就立即能显示了!</p>
|
||||
<p><?= UOJConfig::$data['profile']['oj-name-short'] ?>不提供头像存储服务。每到一个网站都要上传一个头像挺烦的对不对?我们支持Gravatar,请使用Gravatar吧!Gravatar是一个全球的头像存储服务,你的头像将会与你的电子邮箱绑定。在各大网站比如各种Wordpress还有各种OJ比如Vijos、Contest Hunter上,只要你电子邮箱填对了,那么你的头像也就立即能显示了!</p>
|
||||
<p>快使用Gravatar吧! Gravatar地址:<a href="https://cn.gravatar.com/">https://cn.gravatar.com/</a>。进去后注册个帐号然后与邮箱绑定并上传头像,就ok啦!</p>
|
||||
</section>
|
||||
<section>
|
||||
<header>
|
||||
<h4>3. <?= UOJConfig::$data['profile']['oj-name-small'] ?>的测评环境</h4>
|
||||
<h4>3. <?= UOJConfig::$data['profile']['oj-name-short'] ?>的测评环境</h4>
|
||||
</header>
|
||||
<p>测评环境是 Ubuntu Linux 14.04 LTS x64。</p>
|
||||
<p>C++的编译器是 g++ 4.8.4,编译命令:<code>g++ code.cpp -o code -lm -O2 -DONLINE_JUDGE</code>。如果选择C++11会在编译命令后面添加<code>-std=c++11</code>。</p>
|
||||
@ -32,7 +32,7 @@
|
||||
<header>
|
||||
<h4>4. 递归 10<sup>7</sup> 层怎么没爆栈啊</h4>
|
||||
</header>
|
||||
<p>没错就是这样!除非是特殊情况,<?= UOJConfig::$data['profile']['oj-name-small'] ?>测评程序时的栈大小与该题的空间限制是相等的!</p>
|
||||
<p>没错就是这样!除非是特殊情况,<?= UOJConfig::$data['profile']['oj-name-short'] ?>测评程序时的栈大小与该题的空间限制是相等的!</p>
|
||||
</section>
|
||||
<section>
|
||||
<header>
|
||||
|
@ -20,14 +20,14 @@
|
||||
$password = $user["password"];
|
||||
|
||||
$oj-name = UOJConfig::$data['profile']['oj-name'];
|
||||
$oj-name-small = UOJConfig::$data['profile']['oj-name-small'];
|
||||
$oj-name-short = UOJConfig::$data['profile']['oj-name-short'];
|
||||
$sufs = base64url_encode($user['username'] . "." . md5($user['username'] . "+" . $password));
|
||||
$url = HTML::url("/reset-password", array('params' => array('p' => $sufs)));
|
||||
$html = <<<EOD
|
||||
<base target="_blank" />
|
||||
|
||||
<p>{$user['username']}您好,</p>
|
||||
<p>您刚刚启用了{$oj-name-small}密码找回功能,请进入下面的链接重设您的密码:</p>
|
||||
<p>您刚刚启用了{$oj-name-short}密码找回功能,请进入下面的链接重设您的密码:</p>
|
||||
<p><a href="$url">$url</a></p>
|
||||
<p>{$oj-name}</p>
|
||||
|
||||
@ -39,7 +39,7 @@ EOD;
|
||||
|
||||
$mailer = UOJMail::noreply();
|
||||
$mailer->addAddress($user['email'], $user['username']);
|
||||
$mailer->Subject = $oj-name-small."密码找回";
|
||||
$mailer->Subject = $oj-name-short."密码找回";
|
||||
$mailer->msgHTML($html);
|
||||
if (!$mailer->send()) {
|
||||
error_log($mailer->ErrorInfo);
|
||||
|
@ -23,7 +23,7 @@
|
||||
$PageMainTitle = UOJConfig::$data['profile']['oj-name'];
|
||||
}
|
||||
if (!isset($PageMainTitleOnSmall)) {
|
||||
$PageMainTitleOnSmall = UOJConfig::$data['profile']['oj-name-small'];
|
||||
$PageMainTitleOnSmall = UOJConfig::$data['profile']['oj-name-short'];
|
||||
}
|
||||
if (!isset($ShowPageHeader)) {
|
||||
$ShowPageHeader = true;
|
||||
@ -37,7 +37,7 @@
|
||||
<?php if (isset($_GET['locale'])): ?>
|
||||
<meta name="robots" content="noindex, nofollow" />
|
||||
<?php endif ?>
|
||||
<title><?= isset($PageTitle) ? $PageTitle : UOJConfig::$data['profile']['oj-name-small'] ?> - <?= $PageMainTitle ?></title>
|
||||
<title><?= isset($PageTitle) ? $PageTitle : UOJConfig::$data['profile']['oj-name-short'] ?> - <?= $PageMainTitle ?></title>
|
||||
|
||||
<script type="text/javascript">uojHome = '<?= HTML::url('/') ?>'</script>
|
||||
|
||||
|
@ -17,7 +17,7 @@
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
|
||||
<title><?= isset($PageTitle) ? $PageTitle : UOJConfig::$data['profile']['oj-name-small'] ?> - <?= isset($PageMainTitle) ? $PageMainTitle : UOJConfig::$data['profile']['oj-name'] ?></title>
|
||||
<title><?= isset($PageTitle) ? $PageTitle : UOJConfig::$data['profile']['oj-name-short'] ?> - <?= isset($PageMainTitle) ? $PageMainTitle : UOJConfig::$data['profile']['oj-name'] ?></title>
|
||||
|
||||
<meta name="apple-mobile-web-app-capable" content="yes" />
|
||||
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
|
||||
|
Loading…
Reference in New Issue
Block a user