rpicms

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

commit ead413d16bedf521efc51037f5be7b0dbdfdf8b0
parent 3eedee50e3e5ac8eca043aa677bf67f03144aa1d
Author: MTRNord <mtrnord1@gmail.com>
Date:   Sat, 13 Dec 2014 19:47:38 +0100

try to figure out what the project root is (php slef can't do this well)

Diffstat:
Mcore/backend/admin/blog/newpost.php | 7++++---
1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/core/backend/admin/blog/newpost.php b/core/backend/admin/blog/newpost.php @@ -1,7 +1,8 @@ <?php -$root = realpath($_SERVER["DOCUMENT_ROOT"]); -echo $root . "\n"; -echo getcwd() . "\n"; +$root_1 = realpath($_SERVER["DOCUMENT_ROOT"]); +$currentdir = getcwd(); +$root_2 = trim($currentdir, $root); +echo $root_2 echo get_include_path(); include('/core/config/variables.config.php');