mirror of
https://github.com/lrsjng/h5ai.git
synced 2025-05-28 14:04:45 -04:00
Some comments.
This commit is contained in:
parent
63115432ce
commit
5f27518852
2 changed files with 6 additions and 4 deletions
|
@ -77,6 +77,7 @@ function load_commented_json($file) {
|
||||||
return json_decode($str, true);
|
return json_decode($str, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* unused
|
||||||
function merge_config($a, $b) {
|
function merge_config($a, $b) {
|
||||||
|
|
||||||
$result = array_merge(array(), $a);
|
$result = array_merge(array(), $a);
|
||||||
|
@ -87,5 +88,6 @@ function merge_config($a, $b) {
|
||||||
|
|
||||||
return $result;
|
return $result;
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
|
|
||||||
?>
|
?>
|
|
@ -1,7 +1,7 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
|
||||||
// bootstrap
|
/* Bootstrap */
|
||||||
|
|
||||||
function normalize_path($path, $trailing_slash = false) {
|
function normalize_path($path, $trailing_slash = false) {
|
||||||
|
|
||||||
|
@ -20,19 +20,19 @@ function normalized_require_once($lib) {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// load libs
|
/* 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
|
/* Init */
|
||||||
|
|
||||||
$app = new App(APP_ABS_PATH, APP_ABS_HREF, ABS_HREF);
|
$app = new App(APP_ABS_PATH, APP_ABS_HREF, ABS_HREF);
|
||||||
|
|
||||||
|
|
||||||
// run
|
/* Run */
|
||||||
|
|
||||||
if (array_key_exists("action", $_REQUEST)) {
|
if (array_key_exists("action", $_REQUEST)) {
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue