X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Fconfig.php;h=7e53a75b8964539c9ff0366a8646e7ac0378ff79;hp=97a49d396e1bb6536232dba013bb55732ebc1a58;hb=414570c5081d337bb6c28dcf521bd8bca02f69e7;hpb=75ad748a68473ace540251427a74fb781b1145e9 diff --git a/inc/config.php b/inc/config.php index 97a49d396e..7e53a75b89 100644 --- a/inc/config.php +++ b/inc/config.php @@ -10,7 +10,12 @@ * -------------------------------------------------------------------- * * Kurzbeschreibung : Ihre Konfigurationsdaten (MySQL) * * -------------------------------------------------------------------- * - * * + * $Revision:: 856 $ * + * $Date:: 2009-03-06 20:24:32 +0100 (Fr, 06. Mär 2009) $ * + * $Tag:: 0.2.1-FINAL $ * + * $Author:: stelzi $ * + * Needs to be in all Files and every File needs "svn propset * + * svn:keywords Date Revision" (autoprobset!) at least!!!!!! * * -------------------------------------------------------------------- * * Copyright (c) 2003 - 2008 by Roland Haeder * * For more information visit: http://www.mxchange.org * @@ -34,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); } @@ -52,7 +57,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); @@ -79,15 +84,15 @@ define('WRITE_FOOTER', true); define('OUTPUT_MODE', "render"); // CFG: MAIN_TITLE -define('MAIN_TITLE', "Your mail-exchanger title"); +define('MAIN_TITLE', "Firebox-Tauscher"); // CFG: SLOGAN -define('SLOGAN', "Your cool slogan here"); +define('SLOGAN', "Development-Mailer zum Testen"); -// 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); @@ -96,45 +101,53 @@ define('URL', $URL); define('PATH', $PATH); // CFG: WEBMASTER -define('WEBMASTER', "you@some-hoster.tld.invalid"); +define('WEBMASTER', "quix0r@firebox.lan"); // 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); // CFG: DEBUG-MODE (if enabled all mails will be *displayed* and *not* send!) -define('DEBUG_MODE', false); +define('DEBUG_MODE', true); -// 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( // 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 define('_MYSQL_PREFIX', "mxchange"); +// CFG: TABLE-TYPE +define('_TABLE_TYPE', "InnoDB"); + // CFG: DATABASE-TYPE define('_DB_TYPE', "mysql3"); @@ -143,8 +156,11 @@ define('LEAD_CODE_ENABLED', true); define('LEAD_EXPIRY_TIME' , (30*24*60*60)); // == 30 days // SMTP-Subsystem (keep all empty to use legacy mail() command!) +// CFG: SMTP-HOSTNAME define('SMTP_HOSTNAME', ""); -define('SMTP_USER' , ""); +// CFG: SMTP-USER +define('SMTP_USER', ""); +// CFG: SMTP-PASSWORD define('SMTP_PASSWORD', ""); // SSL cookies? (enable only if you have SSL, URLs will begin with https://) @@ -154,7 +170,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"); // ?>