mirror of
https://github.com/lrsjng/h5ai.git
synced 2025-04-11 08:02:45 +02:00
Some comments.
This commit is contained in:
parent
0f7e01a82f
commit
63115432ce
@ -1,5 +1,8 @@
|
||||
<?php
|
||||
|
||||
|
||||
// bootstrap
|
||||
|
||||
function normalize_path($path, $trailing_slash = false) {
|
||||
|
||||
$path = str_replace("\\", "/", $path);
|
||||
@ -16,12 +19,21 @@ function normalized_require_once($lib) {
|
||||
require_once(APP_ABS_PATH . $lib);
|
||||
}
|
||||
|
||||
|
||||
// load libs
|
||||
|
||||
normalized_require_once("/server/php/inc/util.php");
|
||||
normalized_require_once("/server/php/inc/App.php");
|
||||
normalized_require_once("/server/php/inc/Item.php");
|
||||
|
||||
|
||||
// init
|
||||
|
||||
$app = new App(APP_ABS_PATH, APP_ABS_HREF, ABS_HREF);
|
||||
|
||||
|
||||
// run
|
||||
|
||||
if (array_key_exists("action", $_REQUEST)) {
|
||||
|
||||
header("Content-type: application/json;charset=utf-8");
|
||||
|
Loading…
x
Reference in New Issue
Block a user