Some comments.

This commit is contained in:
Lars Jung 2013-07-10 20:44:54 +02:00
parent 0f7e01a82f
commit 63115432ce

View File

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