mirror of
https://github.com/renbaoshuo/S2OJ.git
synced 2024-11-08 14:48:41 +00:00
style: move all php libs to a folder
The php lib files are in the app directory root. Move it to a new directory so that can be tidy.
This commit is contained in:
parent
e4b674ffce
commit
39acf1b05e
@ -2,7 +2,7 @@
|
||||
|
||||
$_SERVER['DOCUMENT_ROOT'] = dirname(__DIR__);
|
||||
|
||||
require $_SERVER['DOCUMENT_ROOT'] . '/app/uoj-lib.php';
|
||||
require $_SERVER['DOCUMENT_ROOT'] . '/app/libs/uoj-lib.php';
|
||||
|
||||
// TODO: more beautiful argv parser
|
||||
|
||||
|
@ -10,7 +10,7 @@
|
||||
$REQUIRE_LIB[$name] = '';
|
||||
}
|
||||
function requirePHPLib($name) { // uoj php lib
|
||||
require $_SERVER['DOCUMENT_ROOT'].'/app/uoj-'.$name.'-lib.php';
|
||||
require $_SERVER['DOCUMENT_ROOT'].'/app/libs/uoj-'.$name.'-lib.php';
|
||||
}
|
||||
|
||||
requirePHPLib('validate');
|
@ -2,7 +2,7 @@
|
||||
|
||||
Session_Start();
|
||||
|
||||
require $_SERVER['DOCUMENT_ROOT'] . '/app/uoj-lib.php';
|
||||
require $_SERVER['DOCUMENT_ROOT'] . '/app/libs/uoj-lib.php';
|
||||
|
||||
require UOJContext::documentRoot().'/app/route.php';
|
||||
require UOJContext::documentRoot().'/app/controllers/subdomain/blog/route.php';
|
||||
|
Loading…
Reference in New Issue
Block a user