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... (patched by "Stelzi" aka. profi-concept, thanks again!)
$URL = "http://".getenv('SERVER_NAME') . str_replace("\\", "/", dirname($_SERVER['PHP_SELF']));
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);
// CFG: DEBUG-MAIL (turn this on if you need to debug mails, only affects if DEBUG_MODE is true)
//define('DEBUG_MAIL', true);
// 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', "MyISAM");
+define('_TABLE_TYPE', "InnoDB");
// CFG: DATABASE-TYPE
define('_DB_TYPE', "mysql3");
// CFG: SMTP-HOSTNAME
define('SMTP_HOSTNAME', "");
// CFG: SMTP-USER
-define('SMTP_USER' , "");
+define('SMTP_USER', "");
// CFG: SMTP-PASSWORD
define('SMTP_PASSWORD', "");
// Create email link to admins's account
function ADMINS_CREATE_EMAIL_LINK ($email, $mod="admin") {
- $locked = " AND `status`='CONFIRMED'";
- if (IS_ADMIN()) $locked = "";
if (strpos("@", $email) > 0) {
// Create email link
$result = SQL_QUERY_ESC("SELECT id
FROM `{!_MYSQL_PREFIX!}_admins`
-WHERE email='%s'".$locked." LIMIT 1",
- array($email), __FUNCTION__, __LINE__);
+WHERE email='%s' LIMIT 1",
+ array($email), __FUNCTION__, __LINE__);
- // Is there an entry?
+ // Is there an entry?
if (SQL_NUMROWS($result) == 1) {
// Load userid
list($uid) = SQL_FETCHROW($result);
// Free memory
SQL_FREERESULT($result);
- } elseif (bigintval($email) > 0) {
+ } elseif ((is_int($email)) && ($email > 0)) {
// Direct ID given
$email = "{!URL!}/modules.php?module=".$mod."&what=admins_contct&admin=".bigintval($email);
}