]> git.mxchange.org Git - mailer.git/blobdiff - inc/config.php
More fixes for what/action deprecation in modules.php
[mailer.git] / inc / config.php
index 644925084c15df31741f7d77b89068b68cd9c988..4cfa57bbbf36aee8a0d990951e82ed04981c2783 100644 (file)
@@ -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', "&copy; 2003 - 2008, by <A href=\"http://www.mxchange.org\" target=\"_blank\" rel=\"external\" title=\"{!TITLE!} {!VERSION!}\">Roland H&auml;der</A>");
+define('COPY', "&copy; 2003 - 2008, by Roland H&auml;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);
@@ -162,7 +162,7 @@ define('SSL_COOKIES', false);
 define('ENABLE_BACKLINK', true);
 
 // Connect to the MySQL database...
-require_once(PATH."inc/mysql-connect.php");
+require(constant('PATH')."inc/mysql-connect.php");
 
 //
 ?>