rpicms

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

commit f2c283b8a3ebdbac0c480e6e18e35f5404c4cd43
parent 4515f0971c55c8ed710fd05f9f8523978d4db008
Author: MTRNord <mtrnord1@gmail.com>
Date:   Tue,  3 Feb 2015 13:11:41 +0100

normally this should work :/

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

diff --git a/api.php b/api.php @@ -13,11 +13,6 @@ if ($root_3[1] == 'core') { }else{ $root = $root_1 . '/' . $root_3[1]; } -echo $root_1; -echo "<br>"; -var_dump($root_2); -echo "<br>"; -var_dump($root_3); $check = !file_exists('core/config/connect.db.inc.php'); echo $check; if (!file_exists('core/config/connect.db.inc.php')) { @@ -26,8 +21,8 @@ if (!file_exists('core/config/connect.db.inc.php')) { }else{ $request = $_SERVER['REQUEST_URI']; $Api = substr($request, strrpos($request, 'v1/') + 3); - //header("HTTP/1.1 301 Moved Permanently"); - //header("Location:$root/api/v1/api.php/$Api"); + header("HTTP/1.1 301 Moved Permanently"); + header("Location:api/v1/api.php/$Api"); } ?> \ No newline at end of file