rpicms

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

commit e55c2be87238606865673185ff245534af18fbe6
parent 5c11fab53dd8cad074572eb6203cea3d771303c6
Author: MTRNord <mtrnord1@gmail.com>
Date:   Tue,  3 Feb 2015 15:52:18 +0100

now subdirs should work

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

diff --git a/api.php b/api.php @@ -13,9 +13,6 @@ if ($root_3[1] == 'core') { }else{ $root = $root_1 . '/' . $root_3[1]; } -echo "$root_1"; -echo "$root_2"; -var_dump($root_3); $check = !file_exists($root . 'core/config/connect.db.inc.php'); echo $check; if (!file_exists('core/config/connect.db.inc.php')) { @@ -43,7 +40,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:" . $root_3[1] . "/core/api/v1/api.php" . $Api['PATH_INFO']); } ?> \ No newline at end of file