81 lines
2.2 KiB
PHP
81 lines
2.2 KiB
PHP
<?php
|
|
ini_set("memory_limit", "1024M"); //set this bigger to import big files.
|
|
ini_set("max_execution_time", "600");
|
|
require_once("../include/db_info.inc.php");
|
|
require_once ("../include/my_func.inc.php");
|
|
?>
|
|
<!DOCTYPE html>
|
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
|
<link rel=stylesheet href='../include/hoj.css' type='text/css'>
|
|
<style>
|
|
@font-face {
|
|
font-family: 'Sarasa Mono SC Local';
|
|
src: local('等距更纱黑体 SC'),
|
|
local('Sarasa Mono SC'),
|
|
url('../template/syzoj/fonts/SarasaMonoSC-Regular.ttf') format('truetype');
|
|
font-weight: 400;
|
|
font-style: normal;
|
|
font-display: swap;
|
|
}
|
|
|
|
:root {
|
|
--hustoj-admin-font-family: 'Sarasa Mono SC Local', '等距更纱黑体 SC', 'Sarasa Mono SC', 'Sarasa Fixed SC', 'Sarasa Gothic SC', Consolas, 'Cascadia Mono', 'JetBrains Mono', 'Courier New', monospace;
|
|
--hustoj-admin-font-size: 24px;
|
|
--hustoj-admin-heading-size: 24px;
|
|
--hustoj-admin-subheading-size: 24px;
|
|
--hustoj-admin-line-height: 1.6;
|
|
}
|
|
|
|
body,
|
|
input,
|
|
textarea,
|
|
select,
|
|
button,
|
|
table,
|
|
pre,
|
|
code,
|
|
.btn,
|
|
.ui.button,
|
|
.ui.input input,
|
|
.ui.form textarea,
|
|
.ui.form select,
|
|
.ui.label,
|
|
.ui.segment,
|
|
.ui.message,
|
|
.ui.table {
|
|
font-family: var(--hustoj-admin-font-family) !important;
|
|
font-size: var(--hustoj-admin-font-size) !important;
|
|
line-height: var(--hustoj-admin-line-height) !important;
|
|
}
|
|
|
|
h1,
|
|
h2,
|
|
h3,
|
|
.h-head,
|
|
.h2-head {
|
|
font-size: var(--hustoj-admin-heading-size) !important;
|
|
}
|
|
|
|
h4,
|
|
h5,
|
|
h6 {
|
|
font-size: var(--hustoj-admin-subheading-size) !important;
|
|
}
|
|
</style>
|
|
<script src="../template/syzoj/jquery.min.js"></script>
|
|
<script>
|
|
$("document").ready(function (){
|
|
$("form").append("<div id='csrf' />");
|
|
$("#csrf").load("../csrf.php");
|
|
});
|
|
|
|
</script>
|
|
<?php if (!(isset($_SESSION[$OJ_NAME.'_'.'administrator'])||isset($_SESSION[$OJ_NAME.'_'.'contest_creator'])||isset($_SESSION[$OJ_NAME.'_'.'problem_editor'])||isset($_SESSION[$OJ_NAME.'_'.'password_setter']))){
|
|
echo "<a href='../loginpage.php'>Please Login First!</a>";
|
|
exit(1);
|
|
}
|
|
require_once("../template/$OJ_TEMPLATE/css.php");
|
|
if(file_exists("../lang/$OJ_LANG.php")) require_once("../lang/$OJ_LANG.php");
|
|
?>
|
|
<iframe src="../session.php" height=0px width=0px ></iframe>
|