X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Fconfig.php;h=c645e2e263cf3a6d8935606b22bd1980f5097f87;hp=41abd2952453a1fba7bd409202b2722c05b9d38c;hb=397eb5dee2611cfaa1ff494d73e6785b88109cd6;hpb=a69aa088bc83e105e496f22fdff1378076eceb0b diff --git a/inc/config.php b/inc/config.php index 41abd29524..c645e2e263 100644 --- a/inc/config.php +++ b/inc/config.php @@ -34,7 +34,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); } @@ -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); @@ -110,15 +110,20 @@ define('frameset_active', false); // CFG: DEBUG-MODE (if enabled all mails will be *displayed* and *not* send!) define('DEBUG_MODE', false); -// When we are not installing -if (!defined('mxchange_installing')) define('mxchange_installing', false); +// CFG: DEBUG-MAIL (turn this on if you need to debug mails, only affects if DEBUG_MODE is true) +//define('DEBUG_MAIL', true); + +// CFG: DEBUG-RESET (comment in to test daily reset, comment out to not test) +//define('DEBUG_RESET', true); -// Language stuff (default is german) -require_once(PATH."inc/language.php"); +// CFG: DEBUG-MONTHLY (comment in to test monthly reset, comment out to not test) +//define('DEBUG_MONTHLY', true); -// We need general functions and database stuff here -require_once(PATH."inc/functions.php"); -require_once(PATH."inc/mysql-manager.php"); +// CFG: DEBUG-WEEKLY (comment in to test weekly reset, comment out to not test) +//define('DEBUG_WEEKLY', true); + +// When we are not installing +if (!defined('mxchange_installing')) define('mxchange_installing', false); // Your MySQL data (we don't like M$ SQL ;-) ) $MySQL = array( @@ -157,7 +162,7 @@ define('SSL_COOKIES', false); define('ENABLE_BACKLINK', true); // Connect to the MySQL database... -require_once(PATH."inc/mysql-connect.php"); +LOAD_INC_ONCE("inc/mysql-connect.php"); // ?>