mirror of
https://github.com/lrsjng/h5ai.git
synced 2025-08-11 07:44:23 +02:00
Some comments.
This commit is contained in:
@@ -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");
|
||||||
|
Reference in New Issue
Block a user