commit aee2a8aaf07629e0558439e3c45b29ef23957d4b parent 6fd12acaecb89734925e16bf3b433281af2d45a5 Author: MTRNord <mtrnord1@gmail.com> Date: Tue, 3 Feb 2015 15:40:24 +0100 why is this looping? Diffstat:
| M | api.php | | | 7 | +++---- |
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/api.php b/api.php @@ -17,7 +17,7 @@ $check = !file_exists('core/config/connect.db.inc.php'); echo $check; if (!file_exists('core/config/connect.db.inc.php')) { header("HTTP/1.1 301 Moved Permanently"); - header("Location:".$root."install/index.php"); + header("Location:install/index.php"); }else{ //$request = $_SERVER['REQUEST_URI']; //$Api = substr($request, strrpos($request, 'v1/') + 3); @@ -40,9 +40,8 @@ if (!file_exists('core/config/connect.db.inc.php')) { print_r($Api); - header("HTTP/1.1 301 Moved Permanently"); - - header("Location:".$root."api/v1/api.php" . $Api['PATH_INFO']); + //header("HTTP/1.1 301 Moved Permanently"); + //header("Location:api/v1/api.php" . $Api['PATH_INFO']); } ?> \ No newline at end of file