commit 6e87f4bd99a20d0e5e1d59dae1df136a550026fc
parent 320aa3359ee42d24922fa81648a900d980fa46bb
Author: MTRNord <mtrnord1@gmail.com>
Date: Sat, 13 Dec 2014 20:28:38 +0100
It seems to be impossible...
Diffstat:
1 file changed, 2 insertions(+), 9 deletions(-)
diff --git a/core/backend/admin/blog/newpost.php b/core/backend/admin/blog/newpost.php
@@ -8,16 +8,9 @@ $currentdir = getcwd();
$root_2 = str_replace($root_1, '', $currentdir);
echo $root_2;
#$root_3 = preg_match('~/(.*?)]/~', $root_2, $root);
-
-$First = "/";
-$Second = "/";
-
-$Firstpos=strpos($root_2, $First);
-$Secondpos=strpos($root_2, $Second);
-
-$root = substr($root_2 , $Firstpos, $Secondpos);
+preg_match_all("//((?:.(?!/))*)/s", $$root_2, $root);
echo " x ";
-echo $root;
+echo $root[0];
include('/core/config/variables.config.php');
################