From 6c00a8e669f006624d72cbdaaaf2f5ef8a4c8dc2 Mon Sep 17 00:00:00 2001 From: Lars Jung Date: Sat, 27 Oct 2012 04:29:55 +0200 Subject: [PATCH] Moves init code to index file. --- src/_h5ai/server/php/inc/init.php | 44 ------------------------------ src/_h5ai/server/php/index.php | 45 ++++++++++++++++++++++++++++++- 2 files changed, 44 insertions(+), 45 deletions(-) delete mode 100644 src/_h5ai/server/php/inc/init.php diff --git a/src/_h5ai/server/php/inc/init.php b/src/_h5ai/server/php/inc/init.php deleted file mode 100644 index b5643a0c..00000000 --- a/src/_h5ai/server/php/inc/init.php +++ /dev/null @@ -1,44 +0,0 @@ -apply(); - - json_fail(100, "unsupported request"); - -} else { - - header("Content-type: text/html"); - - $HREF = $app->get_app_abs_href(); - $FALLBACK = $app->get_no_js_fallback(); - - normalized_require_once("/server/php/inc/page.php"); -} - -?> \ No newline at end of file diff --git a/src/_h5ai/server/php/index.php b/src/_h5ai/server/php/index.php index dd3bda2d..aca10b8f 100644 --- a/src/_h5ai/server/php/index.php +++ b/src/_h5ai/server/php/index.php @@ -1 +1,44 @@ - \ No newline at end of file +apply(); + + json_fail(100, "unsupported request"); + +} else { + + header("Content-type: text/html;charset=utf-8"); + + $HREF = $app->get_app_abs_href(); + $FALLBACK = $app->get_no_js_fallback(); + + normalized_require_once("/server/php/inc/page.php"); +} + +?> \ No newline at end of file