commit 196c482954301a7a515c82048f301ba3a540ce1b
parent f50a790300ff7494bfb7553ed84916833f007370
Author: MTRNord <mtrnord1@gmail.com>
Date: Tue, 3 Feb 2015 14:03:24 +0100
this should be the right one :D
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/api.php b/api.php
@@ -21,7 +21,7 @@ if (!file_exists('core/config/connect.db.inc.php')) {
}else{
//$request = $_SERVER['REQUEST_URI'];
//$Api = substr($request, strrpos($request, 'v1/') + 3);
- $Api = $_SERVER['QUERY_STRING'];
+ $Api = $_SERVER['PATH_INFO'];
print_r($Api);
//header("HTTP/1.1 301 Moved Permanently");
//header("Location:api/v1/api.php/$Api");