]> git.mxchange.org Git - mailer.git/blobdiff - inc/config.php
Renamed
[mailer.git] / inc / config.php
index 8f6656178d363ddbf71f41021631a37da6a58450..dfc866fb738637492467e72e92f173053a36bdc4 100644 (file)
@@ -39,7 +39,7 @@
 // Some security stuff...
 if (!defined('__SECURITY'))
 {
-       $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php";
+       $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), '/inc') + 4) . '/security.php';
        require($INC);
 }
 
@@ -90,9 +90,9 @@ define('MAIN_TITLE', "Your mail-exchanger title");
 define('SLOGAN', "Your cool slogan here");
 
 // 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 = str_replace("\\", "/", substr(dirname(__FILE__), 0, -3));
+$URL = "http://".getenv('SERVER_NAME') . str_replace("\\", '/', dirname($_SERVER['PHP_SELF']));
+while (substr($URL, -1, 1) == '/') { $URL = substr($URL, 0, -1); }
+$PATH = str_replace("\\", '/', substr(dirname(__FILE__), 0, -3));
 
 // CFG: HOST-URL (without trailing '/' !)
 define('URL', $URL);