comparison 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
comparison
equal deleted inserted replaced
123:8678ce12d533 124:6766250a0baa
21 if (DEBUG_LEVEL >= VERBOSITY_DEBUG) { 21 if (DEBUG_LEVEL >= VERBOSITY_DEBUG) {
22 var_dump($_SERVER); 22 var_dump($_SERVER);
23 } 23 }
24 24
25 try { 25 try {
26 $input = new InputParser(basePath() . "/master.xml", $cache); 26 $base=basePath();
27 $base=$_SERVER['CONTEXT_DOCUMENT_ROOT'];
28 $target=$base . "/master.xml";
29 $input = new InputParser($target, $cache);
27 $input->display(); 30 $input->display();
28 } 31 }
29 catch (Exception $e) { 32 catch (Exception $e) {
30 errorPage($e, StatusCodes::HTTP_INTERNAL_SERVER_ERROR); 33 errorPage($e, StatusCodes::HTTP_INTERNAL_SERVER_ERROR);
31 } 34 }