X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Fconfig.php;h=963738bfcbe3508a7beb209ea3e2e31609500a2b;hp=897b03aa862db2b203a9effa43cae9dddc7173b3;hb=b8c86fa12322603c24a88ea2b0fd3dbeba612752;hpb=a8798885d7a610ff5fc87cbfa36fca9ee7509952 diff --git a/inc/config.php b/inc/config.php index 897b03aa86..963738bfcb 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); @@ -99,10 +99,10 @@ define('PATH', $PATH); define('WEBMASTER', "you@some-hoster.tld.invalid"); // CFG: INSTALLED -define('mxchange_installed', false); +define('mxchange_installed', true); // CFG: ADMIN-SETUP -define('admin_registered', false); +define('admin_registered', true); // CFG: FRAMESET define('frameset_active', false); @@ -110,6 +110,18 @@ define('frameset_active', false); // CFG: DEBUG-MODE (if enabled all mails will be *displayed* and *not* send!) define('DEBUG_MODE', 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); + +// CFG: DEBUG-MONTHLY (comment in to test monthly reset, comment out to not test) +//define('DEBUG_MONTHLY', true); + +// 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); @@ -118,11 +130,11 @@ $MySQL = array( // CFG: MYSQL-HOST 'host' => "localhost", // CFG: MYSQL-DBASE - 'dbase' => "db", + 'dbase' => "mxchange", // CFG: MYSQL-LOGIN - 'login' => "user", + 'login' => "root", // CFG: MYSQL-PASSWORD - 'password' => "pass", + 'password' => "ab57dk90", ); // CFG: MYSQL-PREIFX @@ -139,7 +151,7 @@ define('LEAD_EXPIRY_TIME' , (30*24*60*60)); // == 30 days // CFG: SMTP-HOSTNAME define('SMTP_HOSTNAME', ""); // CFG: SMTP-USER -define('SMTP_USER' , ""); +define('SMTP_USER', ""); // CFG: SMTP-PASSWORD define('SMTP_PASSWORD', ""); @@ -150,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"); // ?>