Watch 1 Star 0 Fork 0

QuestOJ / QuestOJMIT

Join us
Explore and code with more than 2 million developers,Free private repositories !:)
Sign up
Nothing here. spread retract

Clone or download
index.php 720 Bytes
Copy Edit Web IDE Raw Blame History
limstash authored 2019-12-29 21:22 . (cli) insert and delete problem
<?php
require $_SERVER['DOCUMENT_ROOT'] . '/app/libs/uoj-lib.php';
if (file_exists(UOJContext::documentRoot()."/app/.lock")) {
become503Page();
}
require UOJContext::documentRoot().'/app/route.php';
require UOJContext::documentRoot().'/app/controllers/subdomain/blog/route.php';
include UOJContext::documentRoot().'/app/controllers'.call_user_func(function() {
$route = Route::dispatch();
$q_pos = strpos($route['action'], '?');
if ($q_pos === false) {
$path = $route['action'];
} else {
parse_str(substr($route['action'], $q_pos + 1), $vars);
$_GET += $vars;
$path = substr($route['action'], 0, $q_pos);
}
if (isset($route['onload'])) {
call_user_func($route['onload']);
}
return $path;
});

Comment ( 0 )

Sign in for post a comment

1
https://gitee.com/QuestOJ/QuestOJ.git
git@gitee.com:QuestOJ/QuestOJ.git
QuestOJ
QuestOJ
QuestOJ
master

Help Search