rpicms

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

commit 190a97cbbd797b176ce454ab47485e45cc585f77
parent f59a303fd8ddcf9cf1ccf751d905157da639249a
Author: MTRNord <mtrnord1@gmail.com>
Date:   Tue,  3 Feb 2015 12:37:23 +0100

code cleanup

Diffstat:
Mapi.php | 5++---
1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/api.php b/api.php @@ -1,7 +1,6 @@ <?php header("Cache-Control: no-cache, must-revalidate, no-store"); -//$root = "http://".$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']; -echo $root; + $check = !file_exists('core/config/connect.db.inc.php'); echo $check; if (!file_exists('core/config/connect.db.inc.php')) { @@ -10,7 +9,7 @@ if (!file_exists('core/config/connect.db.inc.php')) { }else{ $request = $_SERVER['REQUEST_URI']; if (($pos = strpos($request, "v1/")) !== FALSE) { - $Api = substr($data, $pos+1); + $Api = substr($request, $pos+1); } header("HTTP/1.1 301 Moved Permanently"); header("Location:api/v1/api.php/$Api");