commit 211b21ac74c1668debe4d0cc7de82479f749a811
parent 4154213f93b00cdc1eab9e3956733168172d962f
Author: MTRNord <mtrnord1@gmail.com>
Date: Tue, 3 Feb 2015 13:58:19 +0100
new try
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/api.php b/api.php
@@ -21,8 +21,8 @@ if (!file_exists('core/config/connect.db.inc.php')) {
}else{
//$request = $_SERVER['REQUEST_URI'];
//$Api = substr($request, strrpos($request, 'v1/') + 3);
- $Api = func_get_args();
- var_dump($Api);
+ $Api = $_SERVER['QUERY_STRING'];
+ echo "$Api";
//header("HTTP/1.1 301 Moved Permanently");
//header("Location:api/v1/api.php/$Api");
}