X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Fconfig.php;h=536cae8378f270cbbf68cbc011ebff999c7ccba8;hp=644925084c15df31741f7d77b89068b68cd9c988;hb=5b498995f1792ba5972d782b63cd5cb044727c21;hpb=09c13e4c494c7a9630679748524d94ffd2ce325c diff --git a/inc/config.php b/inc/config.php index 644925084c..536cae8378 100644 --- a/inc/config.php +++ b/inc/config.php @@ -52,7 +52,7 @@ if (function_exists('date_default_timezone_set')) { define('VERSION', "v0.2.1"); define('AUTHOR' , "Roland Häder"); define('TITLE', "MXChange - Mail Exchange"); -define('COPY', "© 2003 - 2008, by Roland Häder"); +define('COPY', "© 2003 - 2008, by Roland Häder"); // CFG: ERROR_REPORTING @error_reporting(0); @@ -84,10 +84,10 @@ define('MAIN_TITLE', "Your mail-exchanger title"); // CFG: SLOGAN define('SLOGAN', "Your cool slogan here"); -// Auto-detection... -$URL = "http://".getenv('SERVER_NAME').dirname($_SERVER['PHP_SELF']); +// Auto-detection... (patched by "Stelzi" aka. profi-concept, thanks again!) +$URL = "http://".getenv('SERVER_NAME') . str_replace("\\", "/", dirname($_SERVER['PHP_SELF'])); while (substr($URL, -1, 1) == "/") { $URL = substr($URL, 0, -1); } -$PATH = substr(dirname(__FILE__), 0, -3); +$PATH = str_replace("\\", "/", substr(dirname(__FILE__), 0, -3)); // CFG: HOST-URL (without trailing '/' !) define('URL', $URL);