diff index.php @ 124:6766250a0baa

Support for parameters as directory structure.
author Tom Fredrik Blenning Klaussen <bfg@bfgconsult.no>
date Fri, 29 Dec 2017 19:59:22 +0100
parents 7a9c45b53866
children ee5f98a0bc93
line wrap: on
line diff
--- a/index.php	Thu Dec 28 19:43:24 2017 +0100
+++ b/index.php	Fri Dec 29 19:59:22 2017 +0100
@@ -23,7 +23,10 @@
 }
 
 try {
-  $input = new InputParser(basePath() . "/master.xml", $cache);
+  $base=basePath();
+  $base=$_SERVER['CONTEXT_DOCUMENT_ROOT'];
+  $target=$base . "/master.xml";
+  $input = new InputParser($target, $cache);
   $input->display();
 }
 catch (Exception $e) {
@@ -31,4 +34,4 @@
 }
 /// @endcond
 
-?>
\ No newline at end of file
+?>