rpicms

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

commit 57c91ea0123ad442ffbaf4f4aa334437e1633b92
parent d24defc8c29493ec413e371335f5e78a8443d2a7
Author: MTRNord <mtrnord1@gmail.com>
Date:   Tue,  3 Feb 2015 15:47:40 +0100

I saw the problem :D It won't work if you call it not direct

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

diff --git a/api.php b/api.php @@ -13,7 +13,10 @@ if ($root_3[1] == 'core') { }else{ $root = $root_1 . '/' . $root_3[1]; } -$check = !file_exists('core/config/connect.db.inc.php'); +echo "$root_1"; +echo "$root_2"; +echo "$root_3"; +$check = !file_exists($root . 'core/config/connect.db.inc.php'); echo $check; if (!file_exists('core/config/connect.db.inc.php')) { header("HTTP/1.1 301 Moved Permanently"); @@ -40,7 +43,7 @@ if (!file_exists('core/config/connect.db.inc.php')) { //header("HTTP/1.1 301 Moved Permanently"); - header("Location:core/api/v1/api.php" . $Api['PATH_INFO']); + //header("Location:/core/api/v1/api.php" . $Api['PATH_INFO']); } ?> \ No newline at end of file