rpicms

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

commit b056d3654d3e913010db837bbba8046b00be7ab3
parent c6f971d266c61472d175da9de7e35d98ffc02c9e
Author: MTRNord <mtrnord1@gmail.com>
Date:   Sat, 13 Dec 2014 20:23:20 +0100

next version :D

Diffstat:
Mcore/backend/admin/blog/newpost.php | 13+++++++++++--
1 file changed, 11 insertions(+), 2 deletions(-)

diff --git a/core/backend/admin/blog/newpost.php b/core/backend/admin/blog/newpost.php @@ -7,9 +7,18 @@ $root_1 = realpath($_SERVER["DOCUMENT_ROOT"]); $currentdir = getcwd(); $root_2 = str_replace($root_1, '', $currentdir); echo $root_2; -$root_3 = preg_match('~/(.*?)]/~', $root_2, $root); +#$root_3 = preg_match('~/(.*?)]/~', $root_2, $root); +$String = [modid=256]; + +$First = "/"; +$Second = "/"; + +$Firstpos=strpos($String, $First); +$Secondpos=strpos($String, $Second); + +$root = substr($String , $Firstpos, $Secondpos); echo " x "; -print_r($root); +echo $root; include('/core/config/variables.config.php'); ################