commit c76b3f06983d4775defdfa89fac6352d18f67476 parent 336374cc89d24700dca53da9f9a62b02d65ee2ea Author: MTRNord <mtrnord1@gmail.com> Date: Tue, 3 Feb 2015 12:42:38 +0100 I need to debug a littlething Diffstat:
| M | api.php | | | 6 | ++++-- |
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/api.php b/api.php @@ -11,8 +11,10 @@ if (!file_exists('core/config/connect.db.inc.php')) { if (($pos = strpos($request, "v1/")) !== FALSE) { $Api = substr($request, $pos+1); } - header("HTTP/1.1 301 Moved Permanently"); - header("Location:api/v1/api.php/$Api"); + echo $pos; + echo $Api; + //header("HTTP/1.1 301 Moved Permanently"); + //header("Location:api/v1/api.php/$Api"); } ?> \ No newline at end of file