rpicms

A CMS for the Raspberry Pi
git clone git://archive.git.mtrnord.blog/RpicmsTeam/rpicms.git
Log | Files | Refs | README | LICENSE

commit 02793befb5d003ede26adb9f799504312521a4c9
parent a3875348074845f71a5e9c0b7ae2d8538f0f1f31
Author: MTRNord <mtrnord1@gmail.com>
Date:   Tue,  3 Feb 2015 12:54:07 +0100

new try

Diffstat:
Mapi.php | 4+---
1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/api.php b/api.php @@ -8,9 +8,7 @@ if (!file_exists('core/config/connect.db.inc.php')) { header("Location:".$root."install/index.php"); }else{ $request = $_SERVER['REQUEST_URI']; - if (($pos = strpos($request, "/")) !== FALSE) { - $Api = substr($request, $pos+1); - } + $Api = substr($request, strrpos($request, 'v1/') + 1); echo $request; echo "</br>"; echo $pos;