mirror of
https://github.com/renbaoshuo/S2OJ.git
synced 2024-11-22 06:58:41 +00:00
fix: style
This commit is contained in:
parent
df203c3375
commit
410631075e
@ -52,12 +52,12 @@
|
||||
};
|
||||
$time_form->succ_href="/contests";
|
||||
$time_form->runAtServer();
|
||||
?>
|
||||
?>
|
||||
<?php echoUOJPageHeader('添加比赛') ?>
|
||||
<h1 class="page-header">添加比赛</h1>
|
||||
<div class="tab-pane active" id="tab-time">
|
||||
<?php
|
||||
$time_form->printHTML();
|
||||
?>
|
||||
?>
|
||||
</div>
|
||||
<?php echoUOJPageFooter() ?>
|
||||
|
@ -44,7 +44,7 @@ EOD;
|
||||
'table_classes' => ['table', 'table-hover'],
|
||||
'page_len' => 100
|
||||
];
|
||||
?>
|
||||
?>
|
||||
<?php echoUOJPageHeader(UOJLocale::get('announcements')) ?>
|
||||
<h3>公告</h3>
|
||||
<?php echoLongTable(array('blogs.id', 'poster', 'title', 'post_time', 'zan', 'level'), 'important_blogs, blogs', 'is_hidden = 0 and important_blogs.blog_id = blogs.id', 'order by level desc, important_blogs.blog_id desc', $header, 'echoBlogCell', $config); ?>
|
||||
|
@ -12,4 +12,4 @@
|
||||
}
|
||||
|
||||
redirectTo(HTML::blog_url($blog['poster'], '/post/'.$_GET['id']));
|
||||
?>
|
||||
?>
|
||||
|
@ -29,7 +29,7 @@
|
||||
EOD;
|
||||
$config = array();
|
||||
$config['table_classes'] = array('table', 'table-hover');
|
||||
?>
|
||||
?>
|
||||
<?php echoUOJPageHeader(UOJLocale::get('blogs')) ?>
|
||||
<?php if (Auth::check()): ?>
|
||||
<div class="float-right">
|
||||
|
@ -58,11 +58,11 @@
|
||||
if (isset($_POST['change'])) {
|
||||
die(handlePost());
|
||||
}
|
||||
?>
|
||||
?>
|
||||
<?php
|
||||
$REQUIRE_LIB['dialog'] = '';
|
||||
$REQUIRE_LIB['md5'] = '';
|
||||
?>
|
||||
?>
|
||||
<?php echoUOJPageHeader(UOJLocale::get('modify my profile')) ?>
|
||||
<h2 class="page-header"><?= UOJLocale::get('modify my profile') ?></h2>
|
||||
<form id="form-update" class="form-horizontal">
|
||||
|
@ -64,5 +64,5 @@
|
||||
}
|
||||
$cnt = $row['zan'];
|
||||
}
|
||||
?>
|
||||
?>
|
||||
<?= getClickZanBlock($type, $id, $cnt, $cur) ?>
|
@ -447,7 +447,7 @@ EOD;
|
||||
}
|
||||
|
||||
$page_header = HTML::stripTags($contest['name']) . ' - ';
|
||||
?>
|
||||
?>
|
||||
<?php echoUOJPageHeader(HTML::stripTags($contest['name']) . ' - ' . $tabs_info[$cur_tab]['name'] . ' - ' . UOJLocale::get('contests::contest')) ?>
|
||||
<div class="text-center">
|
||||
<h1><?= $contest['name'] ?></h1>
|
||||
|
@ -166,7 +166,7 @@
|
||||
$time_form->runAtServer();
|
||||
$managers_form->runAtServer();
|
||||
$problems_form->runAtServer();
|
||||
?>
|
||||
?>
|
||||
<?php echoUOJPageHeader(HTML::stripTags($contest['name']) . ' - 比赛管理') ?>
|
||||
<h1 class="page-header" align="center"><?=$contest['name']?> 管理</h1>
|
||||
<ul class="nav nav-tabs mb-3" role="tablist">
|
||||
@ -199,7 +199,7 @@
|
||||
$row_id++;
|
||||
echo '<tr>', '<td>', $row_id, '</td>', '<td>', getUserLink($row['username']), '</td>', '</tr>';
|
||||
}
|
||||
?>
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
<p class="text-center">命令格式:命令一行一个,+mike表示把mike加入管理者,-mike表示把mike从管理者中移除</p>
|
||||
@ -222,7 +222,7 @@
|
||||
$problem_config_str = isset($contest['extra_config']["problem_{$problem['id']}"]) ? $contest['extra_config']["problem_{$problem['id']}"] : 'sample';
|
||||
echo '<tr>', '<td>', $problem['id'], '</td>', '<td>', getProblemLink($problem), ' ', "[$problem_config_str]", '</td>', '</tr>';
|
||||
}
|
||||
?>
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
<p class="text-center">命令格式:命令一行一个,+233表示把题号为233的试题加入比赛,-233表示把题号为233的试题从比赛中移除</p>
|
||||
|
@ -106,7 +106,7 @@
|
||||
$unregister_form->runAtServer();
|
||||
}
|
||||
}
|
||||
?>
|
||||
?>
|
||||
<?php echoUOJPageHeader(HTML::stripTags($contest['name']) . ' - ' . UOJLocale::get('contests::contest registrants')) ?>
|
||||
|
||||
<h1 class="text-center"><?= $contest['name'] ?></h1>
|
||||
@ -173,5 +173,5 @@
|
||||
}
|
||||
)
|
||||
);
|
||||
?>
|
||||
?>
|
||||
<?php echoUOJPageFooter() ?>
|
||||
|
@ -28,7 +28,7 @@
|
||||
$register_form->succ_href = "/contests";
|
||||
|
||||
$register_form->runAtServer();
|
||||
?>
|
||||
?>
|
||||
<?php echoUOJPageHeader(HTML::stripTags($contest['name']) . ' - 报名') ?>
|
||||
<h1 class="page-header">比赛规则</h1>
|
||||
<ul>
|
||||
|
@ -48,7 +48,7 @@ EOD;
|
||||
echo '<td>', '<div class="text-left">'.$click_zan_block.'</div>', '</td>';
|
||||
echo '</tr>';
|
||||
}
|
||||
?>
|
||||
?>
|
||||
<?php echoUOJPageHeader(UOJLocale::get('contests')) ?>
|
||||
<h4><?= UOJLocale::get('contests::current or upcoming contests') ?></h4>
|
||||
<?php
|
||||
@ -81,7 +81,7 @@ $('#contest-countdown').countdown($rest_second, function() {
|
||||
</div>
|
||||
EOD;
|
||||
}
|
||||
?>
|
||||
?>
|
||||
|
||||
<h4><?= UOJLocale::get('contests::ended contests') ?></h4>
|
||||
<?php
|
||||
@ -98,5 +98,5 @@ EOD;
|
||||
}
|
||||
)
|
||||
);
|
||||
?>
|
||||
?>
|
||||
<?php echoUOJPageFooter() ?>
|
||||
|
@ -53,4 +53,4 @@
|
||||
header("X-Sendfile: $file_name");
|
||||
header("Content-type: $mimetype");
|
||||
header("Content-Disposition: attachment; filename=$download_name");
|
||||
?>
|
||||
?>
|
||||
|
@ -7,7 +7,7 @@
|
||||
}
|
||||
|
||||
echoUOJPageHeader(UOJLocale::get('help'));
|
||||
?>
|
||||
?>
|
||||
<article>
|
||||
<header>
|
||||
<h2 class="page-header">常见问题及其解答(FAQ)</h2>
|
||||
|
@ -51,7 +51,7 @@ EOD;
|
||||
$forgot_form->submit_button_config['align'] = 'offset';
|
||||
|
||||
$forgot_form->runAtServer();
|
||||
?>
|
||||
?>
|
||||
<?php echoUOJPageHeader('找回密码') ?>
|
||||
<h2 class="page-header">找回密码</h2>
|
||||
<h4>请输入需要找回密码的用户名:</h4>
|
||||
|
@ -97,7 +97,7 @@
|
||||
};
|
||||
$delete_user_form->runAtServer();
|
||||
}
|
||||
?>
|
||||
?>
|
||||
|
||||
<?php echoUOJPageHeader(UOJLocale::get('groups')) ?>
|
||||
|
||||
|
@ -41,7 +41,7 @@
|
||||
|
||||
echo '</tr>';
|
||||
}
|
||||
?>
|
||||
?>
|
||||
|
||||
<?php echoUOJPageHeader(UOJLocale::get('groups')) ?>
|
||||
|
||||
@ -81,6 +81,6 @@ EOD;
|
||||
'head_pagination' => true
|
||||
)
|
||||
);
|
||||
?>
|
||||
?>
|
||||
|
||||
<?php echoUOJPageFooter() ?>
|
||||
|
@ -60,10 +60,10 @@
|
||||
$styler->show_small_tip = false;
|
||||
}
|
||||
}
|
||||
?>
|
||||
?>
|
||||
<?php
|
||||
$REQUIRE_LIB['shjs'] = "";
|
||||
?>
|
||||
?>
|
||||
<?php echoUOJPageHeader(UOJLocale::get('problems::hack').' #'.$hack['id']) ?>
|
||||
|
||||
<?php echoHackListOnlyOne($hack, array(), $myUser) ?>
|
||||
|
@ -48,7 +48,7 @@
|
||||
$cond = '1';
|
||||
}
|
||||
|
||||
?>
|
||||
?>
|
||||
<?php echoUOJPageHeader(UOJLocale::get('hacks')) ?>
|
||||
<div class="d-none d-sm-block">
|
||||
<?php if ($myUser != null): ?>
|
||||
@ -105,5 +105,5 @@
|
||||
</div>
|
||||
<?php
|
||||
echoHacksList($cond, 'order by id desc', array('judge_time_hidden' => ''), $myUser);
|
||||
?>
|
||||
?>
|
||||
<?php echoUOJPageFooter() ?>
|
||||
|
@ -1,7 +1,7 @@
|
||||
<?php
|
||||
$blogs = DB::selectAll("select blogs.id, title, poster, post_time from important_blogs, blogs where is_hidden = 0 and important_blogs.blog_id = blogs.id order by level desc, important_blogs.blog_id desc limit 5");
|
||||
$countdowns = DB::selectAll("select * from countdowns order by endtime asc limit 5")
|
||||
?>
|
||||
?>
|
||||
<?php echoUOJPageHeader(UOJConfig::$data['profile']['oj-name-short']) ?>
|
||||
<div class="row">
|
||||
<div class="col-sm-12 col-md-9">
|
||||
|
@ -40,4 +40,4 @@
|
||||
header("X-Sendfile: $file_name");
|
||||
header("Content-type: $mimetype");
|
||||
header("Content-Disposition: attachment; filename=$download_name");
|
||||
?>
|
||||
?>
|
||||
|
@ -209,4 +209,4 @@
|
||||
}
|
||||
|
||||
echo json_encode($submission);
|
||||
?>
|
||||
?>
|
||||
|
@ -18,4 +18,4 @@
|
||||
}
|
||||
|
||||
die("ok");
|
||||
?>
|
||||
?>
|
||||
|
@ -49,10 +49,10 @@
|
||||
unset($_SESSION['phrase']);
|
||||
die();
|
||||
}
|
||||
?>
|
||||
?>
|
||||
<?php
|
||||
$REQUIRE_LIB['md5'] = '';
|
||||
?>
|
||||
?>
|
||||
<?php echoUOJPageHeader(UOJLocale::get('login')) ?>
|
||||
<h2 class="page-header"><?= UOJLocale::get('login') ?></h2>
|
||||
<form id="form-login" class="form-horizontal" method="post">
|
||||
|
@ -1,7 +1,7 @@
|
||||
<?php
|
||||
crsf_defend();
|
||||
Auth::logout();
|
||||
?>
|
||||
?>
|
||||
|
||||
<script type="text/javascript">
|
||||
var prevUrl = document.referrer;
|
||||
|
@ -214,11 +214,11 @@ EOD
|
||||
$custom_test_form->submit_button_config['text'] = UOJLocale::get('problems::run');
|
||||
$custom_test_form->runAtServer();
|
||||
}
|
||||
?>
|
||||
?>
|
||||
<?php
|
||||
$REQUIRE_LIB['mathjax'] = '';
|
||||
$REQUIRE_LIB['shjs'] = '';
|
||||
?>
|
||||
?>
|
||||
<?php echoUOJPageHeader(HTML::stripTags($problem['title']) . ' - ' . UOJLocale::get('problems::problem')) ?>
|
||||
<?php
|
||||
$limit = getUOJConf("/var/uoj_data/{$problem['id']}/problem.conf");
|
||||
@ -226,7 +226,7 @@ EOD
|
||||
$memory_limit = $limit['memory_limit'];
|
||||
|
||||
$problem_uploader = $limit['poster'] ?: $problem['uploader'];
|
||||
?>
|
||||
?>
|
||||
<div class="row d-flex justify-content-center">
|
||||
<span class="badge badge-secondary mr-1">时间限制:<?=$time_limit!=null?"$time_limit s":"N/A"?></span>
|
||||
<span class="badge badge-secondary mr-1">空间限制:<?=$memory_limit!=null?"$memory_limit MB":"N/A"?></span>
|
||||
|
@ -615,10 +615,10 @@ EOD
|
||||
$rejudge_form->runAtServer();
|
||||
$rejudgege97_form->runAtServer();
|
||||
$info_form->runAtServer();
|
||||
?>
|
||||
?>
|
||||
<?php
|
||||
$REQUIRE_LIB['dialog'] = '';
|
||||
?>
|
||||
?>
|
||||
<?php echoUOJPageHeader(HTML::stripTags($problem['title']) . ' - 数据 - 题目管理') ?>
|
||||
<h1 class="page-header" align="center">#<?=$problem['id']?> : <?=$problem['title']?> 管理</h1>
|
||||
<ul class="nav nav-tabs" role="tablist">
|
||||
|
@ -34,7 +34,7 @@
|
||||
);
|
||||
|
||||
$managers_form->runAtServer();
|
||||
?>
|
||||
?>
|
||||
<?php echoUOJPageHeader(HTML::stripTags($problem['title']) . ' - 管理者 - 题目管理') ?>
|
||||
<h1 class="page-header" align="center">#<?=$problem['id']?> : <?=$problem['title']?> 管理</h1>
|
||||
<ul class="nav nav-tabs" role="tablist">
|
||||
@ -59,7 +59,7 @@
|
||||
$row_id++;
|
||||
echo '<tr>', '<td>', $row_id, '</td>', '<td>', getUserLink($row['username']), '</td>', '</tr>';
|
||||
}
|
||||
?>
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
<p class="text-center">命令格式:命令一行一个,+mike表示把mike加入管理者,-mike表示把mike从管理者中移除</p>
|
||||
|
@ -143,7 +143,7 @@ EOD;
|
||||
|
||||
$div_classes = array('table-responsive');
|
||||
$table_classes = array('table', 'table-bordered', 'table-hover', 'table-striped');
|
||||
?>
|
||||
?>
|
||||
<?php echoUOJPageHeader(UOJLocale::get('problems')) ?>
|
||||
<div class="row">
|
||||
<div class="col-sm-4">
|
||||
@ -201,5 +201,5 @@ $('#input-show_submit_mode').click(function() {
|
||||
}
|
||||
|
||||
echo $pag->pagination();
|
||||
?>
|
||||
?>
|
||||
<?php echoUOJPageFooter() ?>
|
||||
|
@ -53,7 +53,7 @@
|
||||
};
|
||||
|
||||
$problem_editor->runAtServer();
|
||||
?>
|
||||
?>
|
||||
<?php echoUOJPageHeader(HTML::stripTags($problem['title']) . ' - 编辑 - 题目管理') ?>
|
||||
<h1 class="page-header" align="center">#<?=$problem['id']?> : <?=$problem['title']?> 管理</h1>
|
||||
<ul class="nav nav-tabs" role="tablist">
|
||||
|
@ -61,10 +61,10 @@
|
||||
}
|
||||
|
||||
$submissions_sort_by_choice = !isset($_COOKIE['submissions-sort-by-code-length']) ? 'time' : 'tot_size';
|
||||
?>
|
||||
?>
|
||||
<?php
|
||||
$REQUIRE_LIB['morris'] = "";
|
||||
?>
|
||||
?>
|
||||
<?php echoUOJPageHeader(HTML::stripTags($problem['title']) . ' - ' . UOJLocale::get('problems::statistics')) ?>
|
||||
|
||||
<h1 class="page-header text-center"><?= $problem['title'] ?> <?= UOJLocale::get('problems::statistics') ?></h1>
|
||||
|
@ -13,7 +13,7 @@
|
||||
} else {
|
||||
become404Page();
|
||||
}
|
||||
?>
|
||||
?>
|
||||
<?php echoUOJPageHeader($title) ?>
|
||||
<?php echoRanklist($config) ?>
|
||||
<?php echoUOJPageFooter() ?>
|
||||
|
@ -59,11 +59,11 @@
|
||||
}
|
||||
die();
|
||||
}
|
||||
?>
|
||||
?>
|
||||
<?php
|
||||
$REQUIRE_LIB['md5'] = '';
|
||||
$REQUIRE_LIB['dialog'] = '';
|
||||
?>
|
||||
?>
|
||||
<?php echoUOJPageHeader(UOJLocale::get('register')) ?>
|
||||
<h2 class="page-header"><?= UOJLocale::get('register') ?></h2>
|
||||
<form id="form-register" class="form-horizontal">
|
||||
|
@ -29,11 +29,11 @@
|
||||
if (isset($_POST['reset'])) {
|
||||
die(resetPassword());
|
||||
}
|
||||
?>
|
||||
?>
|
||||
<?php
|
||||
$REQUIRE_LIB['dialog'] = '';
|
||||
$REQUIRE_LIB['md5'] = '';
|
||||
?>
|
||||
?>
|
||||
<?php echoUOJPageHeader('更改密码') ?>
|
||||
<h2 class="page-header">更改密码</h2>
|
||||
<form id="form-reset" class="form-horizontal">
|
||||
|
@ -4,7 +4,7 @@
|
||||
if (!Auth::check()) {
|
||||
become403Page(UOJLocale::get('need login'));
|
||||
}
|
||||
?>
|
||||
?>
|
||||
<?php echoUOJPageHeader('关于我') ?>
|
||||
|
||||
<?php if (UOJContext::user()['username'] != 'vfleaking'): ?>
|
||||
|
@ -31,7 +31,7 @@
|
||||
|
||||
requireLib('mathjax');
|
||||
requireLib('shjs');
|
||||
?>
|
||||
?>
|
||||
<?php echoUOJPageHeader('日志') ?>
|
||||
|
||||
<div class="row">
|
||||
|
@ -140,11 +140,11 @@
|
||||
'tail' => 'order by id asc',
|
||||
'page_len' => 20
|
||||
));
|
||||
?>
|
||||
?>
|
||||
<?php
|
||||
$REQUIRE_LIB['mathjax'] = '';
|
||||
$REQUIRE_LIB['shjs'] = '';
|
||||
?>
|
||||
?>
|
||||
<?php echoUOJPageHeader(HTML::stripTags($blog['title']) . ' - 博客') ?>
|
||||
<?php echoBlog($blog, array('show_title_only' => isset($_GET['page']) && $_GET['page'] != 1)) ?>
|
||||
<h2>评论 <span class="glyphicon glyphicon-comment"></span></h2>
|
||||
|
@ -22,7 +22,7 @@
|
||||
$delete_form->succ_href = "/archive";
|
||||
|
||||
$delete_form->runAtServer();
|
||||
?>
|
||||
?>
|
||||
<?php echoUOJPageHeader('删除博客 - ' . HTML::stripTags($blog['title'])) ?>
|
||||
<h3>您真的要删除博客 <?= $blog['title'] ?> 吗?该操作不可逆!</h3>
|
||||
<?php $delete_form->printHTML(); ?>
|
||||
|
@ -67,7 +67,7 @@
|
||||
};
|
||||
|
||||
$blog_editor->runAtServer();
|
||||
?>
|
||||
?>
|
||||
<?php echoUOJPageHeader('写博客') ?>
|
||||
<div class="text-right">
|
||||
<a href="http://uoj.ac/blog/7">这玩意儿怎么用?</a>
|
||||
|
@ -10,11 +10,11 @@
|
||||
'tail' => 'order by post_time desc limit 5',
|
||||
'echo_full' => true
|
||||
));
|
||||
?>
|
||||
?>
|
||||
<?php
|
||||
$REQUIRE_LIB['mathjax'] = '';
|
||||
$REQUIRE_LIB['shjs'] = '';
|
||||
?>
|
||||
?>
|
||||
<?php echoUOJPageHeader(UOJContext::user()['username'] . '的博客') ?>
|
||||
|
||||
<div class="row">
|
||||
|
@ -1,7 +1,6 @@
|
||||
<?php
|
||||
|
||||
call_user_func(function() { // to prevent variable scope leak
|
||||
|
||||
Route::pattern('id', '[1-9][0-9]{0,9}');
|
||||
Route::pattern('blog_username', '[a-zA-Z0-9_\-]{1,20}');
|
||||
|
||||
|
@ -16,4 +16,4 @@
|
||||
$page_config['PageTitle'] = HTML::stripTags($blog['title']) . ' - 幻灯片';
|
||||
$page_config['content'] = $blog['content'];
|
||||
uojIncludeView('slide', $page_config);
|
||||
?>
|
||||
?>
|
||||
|
@ -66,7 +66,7 @@
|
||||
};
|
||||
|
||||
$blog_editor->runAtServer();
|
||||
?>
|
||||
?>
|
||||
<?php echoUOJPageHeader('写幻灯片') ?>
|
||||
<div class="text-right">
|
||||
<a href="http://uoj.ac/blog/75">这玩意儿怎么用?</a>
|
||||
|
@ -132,10 +132,10 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
?>
|
||||
?>
|
||||
<?php
|
||||
$REQUIRE_LIB['shjs'] = "";
|
||||
?>
|
||||
?>
|
||||
<?php echoUOJPageHeader(UOJLocale::get('problems::submission').' #'.$submission['id']) ?>
|
||||
<?php echoSubmissionsListOnlyOne($submission, array(), $myUser) ?>
|
||||
|
||||
|
@ -37,7 +37,7 @@
|
||||
} else {
|
||||
$cond = '1';
|
||||
}
|
||||
?>
|
||||
?>
|
||||
<?php echoUOJPageHeader(UOJLocale::get('submissions')) ?>
|
||||
<div class="d-none d-sm-block">
|
||||
<?php if ($myUser != null): ?>
|
||||
@ -87,5 +87,5 @@
|
||||
</div>
|
||||
<?php
|
||||
echoSubmissionsList($cond, 'order by id desc', array('judge_time_hidden' => ''), $myUser);
|
||||
?>
|
||||
?>
|
||||
<?php echoUOJPageFooter() ?>
|
||||
|
@ -535,11 +535,11 @@ EOD;
|
||||
if (!isset($tabs_info[$cur_tab])) {
|
||||
become404Page();
|
||||
}
|
||||
?>
|
||||
?>
|
||||
<?php
|
||||
requireLib('shjs');
|
||||
requireLib('morris');
|
||||
?>
|
||||
?>
|
||||
<?php echoUOJPageHeader('系统管理') ?>
|
||||
<div class="row">
|
||||
<div class="col-sm-3">
|
||||
|
@ -10,7 +10,7 @@
|
||||
$username = $_GET['username'];
|
||||
|
||||
$REQUIRE_LIB['github_contribution_graph'] = '';
|
||||
?>
|
||||
?>
|
||||
<?php if (validateUsername($username) && ($user = queryUser($username))): ?>
|
||||
<?php echoUOJPageHeader($user['username'] . ' - ' . UOJLocale::get('user profile')) ?>
|
||||
<?php
|
||||
|
@ -81,26 +81,26 @@
|
||||
return json_encode($ret);
|
||||
}
|
||||
|
||||
/*
|
||||
function deleteMsg($msgId) {
|
||||
/*
|
||||
function deleteMsg($msgId) {
|
||||
return 1;
|
||||
$str = <<<EOD
|
||||
select * from user_msg
|
||||
where id = $msgId
|
||||
and read_time is null
|
||||
EOD;
|
||||
select * from user_msg
|
||||
where id = $msgId
|
||||
and read_time is null
|
||||
EOD;
|
||||
$result = DB::query($str);
|
||||
if (DB::fetch($result)) {
|
||||
$str = <<<EOD
|
||||
delete from user_msg
|
||||
where id = $msgId
|
||||
EOD;
|
||||
delete from user_msg
|
||||
where id = $msgId
|
||||
EOD;
|
||||
DB::query($str);
|
||||
return 1;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
*/
|
||||
}
|
||||
*/
|
||||
|
||||
if (isset($_POST['user_msg'])) {
|
||||
die(handleMsgPost());
|
||||
@ -109,7 +109,7 @@ EOD;
|
||||
} elseif (isset($_GET['getHistory'])) {
|
||||
die(getHistory());
|
||||
}
|
||||
?>
|
||||
?>
|
||||
|
||||
<?php echoUOJPageHeader('私信') ?>
|
||||
|
||||
|
@ -22,7 +22,7 @@ EOD;
|
||||
echo '<td>'.$msg['send_time'].'</td>';
|
||||
echo '</tr>';
|
||||
}
|
||||
?>
|
||||
?>
|
||||
<?php echoUOJPageHeader('系统消息') ?>
|
||||
<h2>系统消息</h2>
|
||||
<?php echoLongTable(array('*'), 'user_system_msg', "receiver='" . Auth::id() . "'", 'order by id desc', $header_row, 'echoSysMsg', array('table_classes' => array('table'))) ?>
|
||||
|
@ -356,4 +356,4 @@
|
||||
error_log('hack successfully but sync failed.');
|
||||
}
|
||||
}
|
||||
?>
|
||||
?>
|
||||
|
@ -818,4 +818,4 @@ EOD;
|
||||
};
|
||||
return $form;
|
||||
}
|
||||
?>
|
||||
?>
|
||||
|
@ -183,4 +183,4 @@
|
||||
|
||||
DB::update("update problems set ac_num = (select count(*) from submissions where problem_id = problems.id and score = 100), submit_num = (select count(*) from submissions where problem_id = problems.id) where id = $problem_id");
|
||||
}
|
||||
?>
|
||||
?>
|
||||
|
@ -33,4 +33,4 @@
|
||||
UOJLocale::setLocale($_GET['locale']);
|
||||
}
|
||||
UOJLocale::requireModule('basic');
|
||||
?>
|
||||
?>
|
||||
|
@ -13,7 +13,7 @@
|
||||
$extra_text = $blog['is_hidden'] ? '<span class="text-muted">[已隐藏]</span> ' : '';
|
||||
|
||||
$blog_type = $blog['type'] == 'B' ? 'post' : 'slide';
|
||||
?>
|
||||
?>
|
||||
<h2><?= $extra_text ?><a class="header-a" href="<?= HTML::blog_url(UOJContext::userid(), '/post/'.$blog['id']) ?>"><?= $blog['title'] ?></a></h2>
|
||||
<div><?= $blog['post_time'] ?> <strong>By</strong> <?= getUserLink($blog['poster']) ?></div>
|
||||
<?php if (!$show_title_only): ?>
|
||||
|
@ -2,7 +2,7 @@
|
||||
if (!isset($ShowPageFooter)) {
|
||||
$ShowPageFooter = true;
|
||||
}
|
||||
?>
|
||||
?>
|
||||
</div>
|
||||
<?php if ($ShowPageFooter): ?>
|
||||
<div class="uoj-footer">
|
||||
|
@ -28,7 +28,7 @@
|
||||
if (!isset($ShowPageHeader)) {
|
||||
$ShowPageHeader = true;
|
||||
}
|
||||
?>
|
||||
?>
|
||||
<!DOCTYPE html>
|
||||
<html lang="<?= UOJLocale::locale() ?>">
|
||||
<head>
|
||||
|
@ -11,7 +11,7 @@
|
||||
if (!isset($slide_config['theme'])) {
|
||||
$slide_config['theme'] = 'moon';
|
||||
}
|
||||
?>
|
||||
?>
|
||||
<!DOCTYPE html>
|
||||
<html lang="zh-cn">
|
||||
<head>
|
||||
|
Loading…
Reference in New Issue
Block a user