mirror of
https://github.com/lrsjng/h5ai.git
synced 2025-05-31 15:28:19 -04:00
Some comments.
This commit is contained in:
parent
0f7e01a82f
commit
63115432ce
1 changed files with 12 additions and 0 deletions
|
@ -1,5 +1,8 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
|
||||||
|
// bootstrap
|
||||||
|
|
||||||
function normalize_path($path, $trailing_slash = false) {
|
function normalize_path($path, $trailing_slash = false) {
|
||||||
|
|
||||||
$path = str_replace("\\", "/", $path);
|
$path = str_replace("\\", "/", $path);
|
||||||
|
@ -16,12 +19,21 @@ function normalized_require_once($lib) {
|
||||||
require_once(APP_ABS_PATH . $lib);
|
require_once(APP_ABS_PATH . $lib);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// load libs
|
||||||
|
|
||||||
normalized_require_once("/server/php/inc/util.php");
|
normalized_require_once("/server/php/inc/util.php");
|
||||||
normalized_require_once("/server/php/inc/App.php");
|
normalized_require_once("/server/php/inc/App.php");
|
||||||
normalized_require_once("/server/php/inc/Item.php");
|
normalized_require_once("/server/php/inc/Item.php");
|
||||||
|
|
||||||
|
|
||||||
|
// init
|
||||||
|
|
||||||
$app = new App(APP_ABS_PATH, APP_ABS_HREF, ABS_HREF);
|
$app = new App(APP_ABS_PATH, APP_ABS_HREF, ABS_HREF);
|
||||||
|
|
||||||
|
|
||||||
|
// run
|
||||||
|
|
||||||
if (array_key_exists("action", $_REQUEST)) {
|
if (array_key_exists("action", $_REQUEST)) {
|
||||||
|
|
||||||
header("Content-type: application/json;charset=utf-8");
|
header("Content-type: application/json;charset=utf-8");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue