-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- 部分页面布局栅格化完毕 - 导航栏页脚重新布局 - 提示信息重构
- Loading branch information
Showing
86 changed files
with
2,234 additions
and
2,097 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,3 @@ | ||
<span>JMSU OnlineJudge开放测试中 如在使用中出现问题请查看首页公告与管理员联系</span><br /> | ||
<div class="alert alert-danger alert-dismissible fade show text-center"> | ||
JMSU OnlineJudge提醒您:<b>勤洗手 不聚众 开窗通风 正确佩戴口罩 注意个人卫生</b> 论坛开放注册中! <a class="alert-link" href="https://bbs.jmsu.xyz/">点击访问</a> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,47 +1,46 @@ | ||
<?php | ||
require_once("admin-header.php"); | ||
if(!(isset($_SESSION[$OJ_NAME.'_'.'administrator']))){ | ||
echo "<a href='../loginpage.php'>Please Login First!</a>"; | ||
exit(1); | ||
if (!(isset($_SESSION[$OJ_NAME . '_' . 'administrator']))) { | ||
echo "<a href='../loginpage.php'>Please Login First!</a>"; | ||
exit(1); | ||
} | ||
|
||
echo "<hr>"; | ||
echo "<center><h3>$MSG_SETMESSAGE</h3></center>"; | ||
|
||
if(isset($_POST['do'])){ | ||
require_once("../include/check_post_key.php"); | ||
if (isset($_POST['do'])) { | ||
require_once("../include/check_post_key.php"); | ||
|
||
$fp = fopen($OJ_SAE?"saestor://web/msg.txt":"msg.txt","w"); | ||
$msg = $_POST['msg']; | ||
$fp = fopen($OJ_SAE ? "saestor://web/msg.txt" : "msg.txt", "w"); | ||
$msg = $_POST['msg']; | ||
|
||
$msg = str_replace("<p>", "", $msg); | ||
$msg = str_replace("</p>", "<br />", $msg); | ||
$msg = str_replace(",", ",", $msg); | ||
// $msg = str_replace("<p>", "", $msg); | ||
// $msg = str_replace("</p>", "<br />", $msg); | ||
// $msg = str_replace(",", ",", $msg); | ||
|
||
if(get_magic_quotes_gpc()){ | ||
$title = stripslashes($title); | ||
} | ||
if (get_magic_quotes_gpc()) { | ||
$title = stripslashes($title); | ||
} | ||
|
||
$msg = RemoveXSS($msg); | ||
fputs($fp,$msg); | ||
fclose($fp); | ||
echo "Update At ".date('Y-m-d h:i:s'); | ||
//$msg = RemoveXSS($msg); | ||
fputs($fp, $msg); | ||
fclose($fp); | ||
echo "Update At " . date('Y-m-d h:i:s'); | ||
} | ||
|
||
$msg = file_get_contents($OJ_SAE?"saestor://web/msg.txt":"msg.txt"); | ||
$msg = file_get_contents($OJ_SAE ? "saestor://web/msg.txt" : "msg.txt"); | ||
|
||
include("kindeditor.php"); | ||
?> | ||
|
||
<div class="container"> | ||
<form action='setmsg.php' method='post'> | ||
<textarea name='msg' rows=25 class="kindeditor" ><?php echo $msg?></textarea><br> | ||
<input type='hidden' name='do' value='do'> | ||
<center><input type='submit' value='Save'></center> | ||
如果升级无法修改公告,发送“修改公告”到微信公众号onlinejudge看解决方案。<br> | ||
if this does not work, try run "sudo chown -R www-data /home/judge/src/web " in terminal. | ||
<?php require_once("../include/set_post_key.php");?> | ||
</form> | ||
<form action='setmsg.php' method='post'> | ||
<textarea name='msg' rows=5 class="form-control"><?php echo $msg ?></textarea><br> | ||
<input type='hidden' name='do' value='do'> | ||
<center><input type='submit' value='Save'></center> | ||
if this does not work, try run "sudo chown -R www-data /home/judge/src/web " in terminal. | ||
<?php require_once("../include/set_post_key.php"); ?> | ||
</form> | ||
</div> | ||
|
||
<?php require_once('../oj-footer.php'); ?> |
Oops, something went wrong.