commit 4f1ebe9b8530ac3207e0538723ad268cf17487e4
parent c76b3f06983d4775defdfa89fac6352d18f67476
Author: MTRNord <mtrnord1@gmail.com>
Date: Tue, 3 Feb 2015 12:45:06 +0100
new try
Diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/api.php b/api.php
@@ -8,9 +8,10 @@ if (!file_exists('core/config/connect.db.inc.php')) {
header("Location:".$root."install/index.php");
}else{
$request = $_SERVER['REQUEST_URI'];
- if (($pos = strpos($request, "v1/")) !== FALSE) {
+ if (($pos = strpos($request, "api/v1/")) !== FALSE) {
$Api = substr($request, $pos+1);
}
+ echo $request;
echo $pos;
echo $Api;
//header("HTTP/1.1 301 Moved Permanently");