diff options
-rw-r--r-- | engine/lib/configuration.php | 12 | ||||
-rw-r--r-- | mod/test/index.php | 9 |
2 files changed, 15 insertions, 6 deletions
diff --git a/engine/lib/configuration.php b/engine/lib/configuration.php index 6b2bfbb49..138b4b796 100644 --- a/engine/lib/configuration.php +++ b/engine/lib/configuration.php @@ -33,10 +33,10 @@ if (empty($CONFIG->wwwroot)) {
$CONFIG->wwwroot = "http://" . $_SERVER['SERVER_NAME'];
- /*if (strripos($_SERVER['DOCUMENT_ROOT'],"/") < (strlen($_SERVER['DOCUMENT_ROOT']) - 1)) {
- $CONFIG->wwwroot .= "/";
- }*/ - + if (strripos($_SERVER['DOCUMENT_ROOT'],"/") < (strlen($_SERVER['DOCUMENT_ROOT']) - 1)) {
+ //$CONFIG->wwwroot .= "/";
+ } + /* $request = $_SERVER['REQUEST_URI']; if (strripos($request,"/") < (strlen($request) - 1)) { @@ -45,8 +45,8 @@ } $CONFIG->wwwroot .= $request; -
- //$CONFIG->wwwroot .= str_replace($_SERVER['DOCUMENT_ROOT'],"",$CONFIG->path); + */
+ $CONFIG->wwwroot .= str_replace($_SERVER['DOCUMENT_ROOT'],"",$CONFIG->path); }
diff --git a/mod/test/index.php b/mod/test/index.php new file mode 100644 index 000000000..e502ae790 --- /dev/null +++ b/mod/test/index.php @@ -0,0 +1,9 @@ +<?php
+
+ require_once("../../engine/start.php");
+
+ global $CONFIG;
+
+ var_export($CONFIG);
+
+?>
\ No newline at end of file |