mirror of
https://github.com/renbaoshuo/S2OJ.git
synced 2024-11-22 12:58:40 +00:00
微调变量名,主页面导航栏名称修复
This commit is contained in:
parent
85de04ff6c
commit
521b2719fd
@ -24,9 +24,9 @@ $config = [
|
||||
'profile' => [
|
||||
'oj-name' => 'Universal Online Judge',
|
||||
'oj-name-short' => 'UOJ',
|
||||
'administrator' => 'admin',
|
||||
'admin-email' => 'admin@uoj',
|
||||
'qq-group' => '',
|
||||
'administrator' => 'root',
|
||||
'admin-email' => 'admin@local_uoj.ac',
|
||||
'QQ-group' => '',
|
||||
'ICP-license' => ''
|
||||
],
|
||||
'database' => [
|
||||
|
@ -3,9 +3,9 @@ return [
|
||||
'profile' => [
|
||||
'oj-name' => 'Universal Online Judge',
|
||||
'oj-name-short' => 'UOJ',
|
||||
'administrator' => 'admin',
|
||||
'admin-email' => 'admin@uoj',
|
||||
'qq-group' => '',
|
||||
'administrator' => 'root',
|
||||
'admin-email' => 'admin@local_uoj.ac',
|
||||
'QQ-group' => '',
|
||||
'ICP-license' => ''
|
||||
],
|
||||
'database' => [
|
||||
|
@ -60,8 +60,8 @@
|
||||
<ul>
|
||||
<li>私信联系<?= UOJConfig::$data['profile']['administrator'] ?>。</li>
|
||||
<li>邮件联系<?= UOJConfig::$data['profile']['admin-email'] ?>。</li>
|
||||
<?php if (UOJConfig::$data['profile']['qq-group']!=''): ?>
|
||||
<li>你也可以进QQ群水水,群号是<?= UOJConfig::$data['profile']['qq-group'] ?>。</li>
|
||||
<?php if (UOJConfig::$data['profile']['QQ-group']!=''): ?>
|
||||
<li>你也可以进QQ群水水,群号是<?= UOJConfig::$data['profile']['QQ-group'] ?>。</li>
|
||||
<?php endif ?>
|
||||
</ul>
|
||||
</section>
|
||||
|
@ -20,14 +20,14 @@
|
||||
$password = $user["password"];
|
||||
|
||||
$oj_name = UOJConfig::$data['profile']['oj-name'];
|
||||
$oj_name-short = UOJConfig::$data['profile']['oj-name-short'];
|
||||
$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-short}密码找回功能,请进入下面的链接重设您的密码:</p>
|
||||
<p>您刚刚启用了{$oj_name_short}密码找回功能,请进入下面的链接重设您的密码:</p>
|
||||
<p><a href="$url">$url</a></p>
|
||||
<p>{$oj_name}</p>
|
||||
|
||||
|
@ -20,7 +20,7 @@
|
||||
<base target="_blank" />
|
||||
|
||||
<p>{$myUser['username']}您好,</p>
|
||||
<p>您的svn密码是:{$myUser['svn_password']}</p>
|
||||
<p>您的SVN密码是:{$myUser['svn_password']}</p>
|
||||
<p>{$oj_name}</p>
|
||||
|
||||
<style type="text/css">
|
||||
@ -31,7 +31,7 @@ EOD;
|
||||
|
||||
$mailer = UOJMail::noreply();
|
||||
$mailer->addAddress($myUser['email'], $myUser['username']);
|
||||
$mailer->Subject = "svn密码";
|
||||
$mailer->Subject = "SVN密码";
|
||||
$mailer->msgHTML($html);
|
||||
if ($mailer->send()) {
|
||||
echo 'good';
|
||||
@ -161,16 +161,16 @@ EOD;
|
||||
<label class="col-sm-3 control-label">SVN地址</label>
|
||||
<div class="col-sm-9">
|
||||
<div class="form-control-static">
|
||||
<div type="" class="btn-info btn-xs pull-right">您的svn密码:{$myUser['svn_password']}</div>
|
||||
<div type="" class="btn-info btn-xs pull-right">您的SVN密码:{$myUser['svn_password']}</div>
|
||||
<p><a>svn://{$http_host}/problem/{$problem['id']}</a></p>
|
||||
</div>
|
||||
</div>
|
||||
<label class="col-sm-3 control-label">zip上传数据</label>
|
||||
<label class="col-sm-3 control-label">ZIP上传数据</label>
|
||||
<div class="col-sm-9">
|
||||
<div class="form-control-static">
|
||||
<row>
|
||||
<button type="button" style="width:30%" class="btn btn-primary" data-toggle="modal" data-target="#UploadDataModal">上传数据</button>
|
||||
<button type="submit" style="width:30%" id="button-submit-data" name="submit-data" value="data" class="btn btn-danger">与svn仓库同步</button>
|
||||
<button type="submit" style="width:30%" id="button-submit-data" name="submit-data" value="data" class="btn btn-danger">与SVN仓库同步</button>
|
||||
</row>
|
||||
</div>
|
||||
</div>
|
||||
@ -180,7 +180,7 @@ EOD;
|
||||
|
||||
<script type="text/javascript">
|
||||
$('#button-getsvn').click(function(){
|
||||
if (!confirm("确定要发送你的svn密码到${myUser['email']}吗")) {
|
||||
if (!confirm("确定要发送你的SVN密码到${myUser['email']}吗")) {
|
||||
return;
|
||||
}
|
||||
$.post('${_SERVER['REQUEST_URI']}', {
|
||||
@ -189,7 +189,7 @@ $('#button-getsvn').click(function(){
|
||||
if (res == "good") {
|
||||
BootstrapDialog.show({
|
||||
title : "操作成功",
|
||||
message : "svn密码已经发送至您的邮箱,请查收。",
|
||||
message : "SVN密码已经发送至您的邮箱,请查收。",
|
||||
type : BootstrapDialog.TYPE_SUCCESS,
|
||||
buttons: [{
|
||||
label: '好的',
|
||||
|
@ -6,7 +6,7 @@
|
||||
<span class="icon-bar"></span>
|
||||
<span class="icon-bar"></span>
|
||||
</button>
|
||||
<a class="navbar-brand" href="<?= HTML::url('/') ?>">UOJ</a>
|
||||
<a class="navbar-brand" href="<?= HTML::url('/') ?>"><?= UOJConfig::$data['profile']['oj-name-short'] ?></a>
|
||||
</div>
|
||||
<div class="navbar-collapse collapse">
|
||||
<ul class="nav navbar-nav">
|
||||
|
Loading…
Reference in New Issue
Block a user