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:
MascoSkray 2017-04-25 12:30:03 +08:00
parent e4b674ffce
commit 39acf1b05e
No known key found for this signature in database
GPG Key ID: 6ABABD8325167A2E
13 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -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');

View File

@ -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';