修改常量名及移除个人信息

This commit is contained in:
Too-Naive 2017-04-06 13:00:17 +08:00 committed by Too-Naive
parent 7d1c1cc82a
commit ee06930872
5 changed files with 15 additions and 15 deletions

View File

@ -2,11 +2,11 @@
return [ return [
'profile' => [ 'profile' => [
'oj-name' => 'Universal Online Judge', 'oj-name' => 'Universal Online Judge',
'oj-name-small' => 'UOJ', 'oj-name-short' => 'UOJ',
'administrator' => 'vfleaking', 'administrator' => 'admin',
'admin-email' => 'vfleaking@163.com', 'admin-email' => 'admin@uoj',
'qq-group' => '197293072', 'qq-group' => '',
'ICP-license' => '鄂ICP备14016048号' 'ICP-license' => ''
], ],
'database' => [ 'database' => [
'database' => 'app_uoj233', 'database' => 'app_uoj233',

View File

@ -5,7 +5,7 @@
</header> </header>
<section> <section>
<header> <header>
<h4>1. 什么是<?= UOJConfig::$data['profile']['oj-name-small'] ?></h4> <h4>1. 什么是<?= UOJConfig::$data['profile']['oj-name-short'] ?></h4>
</header> </header>
<p> <a href="http://uoj.ac/blog/4">http://uoj.ac/blog/4</a> </p> <p> <a href="http://uoj.ac/blog/4">http://uoj.ac/blog/4</a> </p>
</section> </section>
@ -13,12 +13,12 @@
<header> <header>
<h4>2. 注册后怎么上传头像</h4> <h4>2. 注册后怎么上传头像</h4>
</header> </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> <p>快使用Gravatar吧 Gravatar地址<a href="https://cn.gravatar.com/">https://cn.gravatar.com/</a>。进去后注册个帐号然后与邮箱绑定并上传头像就ok啦</p>
</section> </section>
<section> <section>
<header> <header>
<h4>3. <?= UOJConfig::$data['profile']['oj-name-small'] ?>的测评环境</h4> <h4>3. <?= UOJConfig::$data['profile']['oj-name-short'] ?>的测评环境</h4>
</header> </header>
<p>测评环境是 Ubuntu Linux 14.04 LTS x64。</p> <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> <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> <header>
<h4>4. 递归 10<sup>7</sup> 层怎么没爆栈啊</h4> <h4>4. 递归 10<sup>7</sup> 层怎么没爆栈啊</h4>
</header> </header>
<p>没错就是这样!除非是特殊情况,<?= UOJConfig::$data['profile']['oj-name-small'] ?>测评程序时的栈大小与该题的空间限制是相等的!</p> <p>没错就是这样!除非是特殊情况,<?= UOJConfig::$data['profile']['oj-name-short'] ?>测评程序时的栈大小与该题的空间限制是相等的!</p>
</section> </section>
<section> <section>
<header> <header>

View File

@ -20,14 +20,14 @@
$password = $user["password"]; $password = $user["password"];
$oj-name = UOJConfig::$data['profile']['oj-name']; $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)); $sufs = base64url_encode($user['username'] . "." . md5($user['username'] . "+" . $password));
$url = HTML::url("/reset-password", array('params' => array('p' => $sufs))); $url = HTML::url("/reset-password", array('params' => array('p' => $sufs)));
$html = <<<EOD $html = <<<EOD
<base target="_blank" /> <base target="_blank" />
<p>{$user['username']}您好,</p> <p>{$user['username']}您好,</p>
<p>您刚刚启用了{$oj-name-small}密码找回功能,请进入下面的链接重设您的密码:</p> <p>您刚刚启用了{$oj-name-short}密码找回功能,请进入下面的链接重设您的密码:</p>
<p><a href="$url">$url</a></p> <p><a href="$url">$url</a></p>
<p>{$oj-name}</p> <p>{$oj-name}</p>
@ -39,7 +39,7 @@ EOD;
$mailer = UOJMail::noreply(); $mailer = UOJMail::noreply();
$mailer->addAddress($user['email'], $user['username']); $mailer->addAddress($user['email'], $user['username']);
$mailer->Subject = $oj-name-small."密码找回"; $mailer->Subject = $oj-name-short."密码找回";
$mailer->msgHTML($html); $mailer->msgHTML($html);
if (!$mailer->send()) { if (!$mailer->send()) {
error_log($mailer->ErrorInfo); error_log($mailer->ErrorInfo);

View File

@ -23,7 +23,7 @@
$PageMainTitle = UOJConfig::$data['profile']['oj-name']; $PageMainTitle = UOJConfig::$data['profile']['oj-name'];
} }
if (!isset($PageMainTitleOnSmall)) { if (!isset($PageMainTitleOnSmall)) {
$PageMainTitleOnSmall = UOJConfig::$data['profile']['oj-name-small']; $PageMainTitleOnSmall = UOJConfig::$data['profile']['oj-name-short'];
} }
if (!isset($ShowPageHeader)) { if (!isset($ShowPageHeader)) {
$ShowPageHeader = true; $ShowPageHeader = true;
@ -37,7 +37,7 @@
<?php if (isset($_GET['locale'])): ?> <?php if (isset($_GET['locale'])): ?>
<meta name="robots" content="noindex, nofollow" /> <meta name="robots" content="noindex, nofollow" />
<?php endif ?> <?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> <script type="text/javascript">uojHome = '<?= HTML::url('/') ?>'</script>

View File

@ -17,7 +17,7 @@
<head> <head>
<meta charset="utf-8"> <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-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" /> <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />