mirror of
https://github.com/lrsjng/h5ai.git
synced 2025-07-31 10:30:15 +02:00
Remove timers for now.
This commit is contained in:
@@ -157,9 +157,7 @@ class App {
|
|||||||
|
|
||||||
$cache = array();
|
$cache = array();
|
||||||
$folder = Item::get($this, CURRENT_PATH, $cache);
|
$folder = Item::get($this, CURRENT_PATH, $cache);
|
||||||
time_log("f2");
|
|
||||||
$items = $folder->get_content($cache);
|
$items = $folder->get_content($cache);
|
||||||
time_log("f3");
|
|
||||||
uasort($items, array("Item", "cmp"));
|
uasort($items, array("Item", "cmp"));
|
||||||
|
|
||||||
$html = "<table>";
|
$html = "<table>";
|
||||||
|
@@ -19,30 +19,18 @@ normalized_require_once("class-archive");
|
|||||||
normalized_require_once("class-item");
|
normalized_require_once("class-item");
|
||||||
normalized_require_once("class-thumb");
|
normalized_require_once("class-thumb");
|
||||||
|
|
||||||
time_log(" 0");
|
|
||||||
setup();
|
setup();
|
||||||
time_log(" 1");
|
|
||||||
|
|
||||||
$app = new App();
|
$app = new App();
|
||||||
|
|
||||||
time_log(" 2");
|
|
||||||
// err_log('setup', $app->get_setup());
|
|
||||||
// time_log(" 3");
|
|
||||||
|
|
||||||
|
|
||||||
if (has_request_param("action")) {
|
if (has_request_param("action")) {
|
||||||
|
|
||||||
header("Content-type: application/json;charset=utf-8");
|
header("Content-type: application/json;charset=utf-8");
|
||||||
time_log("a1");
|
|
||||||
$api = new Api($app);
|
$api = new Api($app);
|
||||||
time_log("a2");
|
|
||||||
$api->apply();
|
$api->apply();
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
header("Content-type: text/html;charset=utf-8");
|
header("Content-type: text/html;charset=utf-8");
|
||||||
time_log("i1");
|
|
||||||
define("FALLBACK", $app->get_fallback());
|
define("FALLBACK", $app->get_fallback());
|
||||||
time_log("i2");
|
|
||||||
normalized_require_once("page");
|
normalized_require_once("page");
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user