commit d066e7406e61ff2cd0ad7fc55b9e5ef47f113458 parent f2c283b8a3ebdbac0c480e6e18e35f5404c4cd43 Author: MTRNord <mtrnord1@gmail.com> Date: Tue, 3 Feb 2015 13:22:45 +0100 good idea :D Diffstat:
| M | api.php | | | 9 | +++++---- |
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/api.php b/api.php @@ -19,10 +19,11 @@ if (!file_exists('core/config/connect.db.inc.php')) { header("HTTP/1.1 301 Moved Permanently"); header("Location:".$root."install/index.php"); }else{ - $request = $_SERVER['REQUEST_URI']; - $Api = substr($request, strrpos($request, 'v1/') + 3); - header("HTTP/1.1 301 Moved Permanently"); - header("Location:api/v1/api.php/$Api"); + //$request = $_SERVER['REQUEST_URI']; + //$Api = substr($request, strrpos($request, 'v1/') + 3); + $Api = func_get_args(); + header("HTTP/1.1 301 Moved Permanently"); + header("Location:api/v1/api.php/$Api"); } ?> \ No newline at end of file