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: DEBUG-MODE (if enabled all mails will be *displayed* and *not* send!)
define('DEBUG_MODE', false);
// CFG: MYSQL-HOST
'host' => "localhost",
// CFG: MYSQL-DBASE
- 'dbase' => "db",
+ 'dbase' => "mxchange3",
// CFG: MYSQL-LOGIN
- 'login' => "user",
+ 'login' => "root",
// CFG: MYSQL-PASSWORD
- 'password' => "pass",
+ 'password' => "Y4g31N6",
);
// CFG: MYSQL-PREIFX
// CFG: SMTP-HOSTNAME
define('SMTP_HOSTNAME', "");
// CFG: SMTP-USER
-define('SMTP_USER' , "");
+define('SMTP_USER', "");
// CFG: SMTP-PASSWORD
define('SMTP_PASSWORD', "");
}
// Version number
-$EXT_VERSION = "0.1.9";
+$EXT_VERSION = "0.2.0";
// Auto-set extension version
if (empty($EXT_VER)) $EXT_VER = $EXT_VERSION;
// Version history array (add more with , "0.1" and so on)
-$EXT_VER_HISTORY = array("0.0", "0.0.1", "0.0.2", "0.0.3", "0.0.4", "0.0.5", "0.0.6", "0.0.7", "0.0.8", "0.0.9", "0.1.0", "0.1.1", "0.1.2", "0.1.3", "0.1.4", "0.1.5", "0.1.6", "0.1.7", "0.1.8", "0.1.9");
+$EXT_VER_HISTORY = array("0.0", "0.0.1", "0.0.2", "0.0.3", "0.0.4", "0.0.5", "0.0.6", "0.0.7", "0.0.8", "0.0.9", "0.1.0", "0.1.1", "0.1.2", "0.1.3", "0.1.4", "0.1.5", "0.1.6", "0.1.7", "0.1.8", "0.1.9", "0.2.0");
switch ($EXT_LOAD_MODE)
{
case "0.1.9": // SQL queries for v0.1.9
$SQLs[] = "ALTER TABLE "._MYSQL_PREFIX."_config ADD mailid_error_redirect ENUM('index', 'reject') NOT NULL DEFAULT 'index'";
+ // Update notes (these will be set as task text!)
+ $UPDATE_NOTES = "Bei fehlerhafter Mail während der Bestätigung kann wahlweise zur Hauptseite weitergeleitet oder auf die eingestellte Ablehnungsseite umgeleitet werden.";
+ break;
+
+ case "0.2.0": // SQL queries for v0.2.0
+ $SQLs[] = "ALTER TABLE `"._MYSQL_PREFIX."_config` CHANGE `mailid_error_redirect` `mailid_error_redirect` ENUM( 'INDEX', 'REJECT' ) NOT NULL DEFAULT 'INDEX'";
+
// Update notes (these will be set as task text!)
$UPDATE_NOTES = "Bei fehlerhafter Mail während der Bestätigung kann wahlweise zur Hauptseite weitergeleitet oder auf die eingestellte Ablehnungsseite umgeleitet werden.";
break;
// Repay deleted mails constants
define('ADMIN_CFG_REPAY_POINTS_REPAY', "Dem Mitglied gutschreiben");
define('ADMIN_CFG_REPAY_POINTS_JACKPOT', "In den Jackpot legen");
-define('ADMIN_CFG_REPAY_POINTS_NEVER', "Nicht gutschreiben (verfällt dann)");
+define('ADMIN_CFG_REPAY_POINTS_SHRED', "Nicht gutschreiben (verfällt dann)");
define('ADMIN_REPAY_ON_DELETE_MODE', "Wie sollen {!POINTS!} von gelöschten Mails verbucht werden?");
//
case "REPAY":
define('_CFG_REPAY_POINTS_REPAY' , " selected=\"selected\"");
define('_CFG_REPAY_POINTS_JACKPOT', "");
- define('_CFG_REPAY_POINTS_NONE' , "");
+ define('_CFG_REPAY_POINTS_SHRED' , "");
break;
case "JACKPOT":
define('_CFG_REPAY_POINTS_REPAY' , "");
define('_CFG_REPAY_POINTS_JACKPOT', " selected=\"selected\"");
- define('_CFG_REPAY_POINTS_NONE' , "");
+ define('_CFG_REPAY_POINTS_SHRED' , "");
break;
- case "NONE":
+ case "SHRED":
define('_CFG_REPAY_POINTS_REPAY' , "");
define('_CFG_REPAY_POINTS_JACKPOT', "");
- define('_CFG_REPAY_POINTS_NONE' , " selected=\"selected\"");
+ define('_CFG_REPAY_POINTS_SHRED' , " selected=\"selected\"");
break;
}
define('_CFG_SHOW_TIMINGS_N', ' checked');
}
- if ($_CONFIG['mailid_error_redirect'] == 'index') {
+ if ($_CONFIG['mailid_error_redirect'] == 'INDEX') {
define('_CFG_MAILID_REDIRECT_INDEX', ' checked');
define('_CFG_MAILID_REDIRECT_REJECT', "");
} else {
// Error code is set?
if (!empty($msg)) {
switch ($_CONFIG['mailid_error_redirect']) {
- case "index": // Redirect to index page
+ case "INDEX": // Redirect to index page
LOAD_URL("modules.php?module=index&msg=".$msg);
break;
- case "reject": // Redirect to rejection page
+ case "REJECT": // Redirect to rejection page
LOAD_URL($_CONFIG['reject_url']);
break;
}
<TD width="10" class="seperator"> </TD>
<TD align="center" width="275">
<SELECT name="repay_deleted_mails" class="admin_select" size="1">
- <OPTION value="repay"{--_CFG_REPAY_POINTS_REPAY--}">{--ADMIN_CFG_REPAY_POINTS_REPAY--}</OPTION>
- <OPTION value="jackpot"{--_CFG_REPAY_POINTS_JACKPOT--}">{--ADMIN_CFG_REPAY_POINTS_JACKPOT--}</OPTION>
- <OPTION value="never"{--_CFG_REPAY_POINTS_NEVER--}">{--ADMIN_CFG_REPAY_POINTS_NEVER--}</OPTION>
+ <OPTION value="REPAY"{--_CFG_REPAY_POINTS_REPAY--}">{--ADMIN_CFG_REPAY_POINTS_REPAY--}</OPTION>
+ <OPTION value="JACKPOT"{--_CFG_REPAY_POINTS_JACKPOT--}">{--ADMIN_CFG_REPAY_POINTS_JACKPOT--}</OPTION>
+ <OPTION value="SHRED"{--_CFG_REPAY_POINTS_SHRED--}">{--ADMIN_CFG_REPAY_POINTS_SHRED--}</OPTION>
</SELECT>
</TD>
<TD width="10" class="seperator"> </TD>
<TD width="10" class="seperator"> </TD>
<TD align="right">{--ADMIN_OPTION_SHOW_TIMINGS--}:</TD>
<TD width="10" class="seperator"> </TD>
- <TD><SPAN class="nobr"> <INPUT type="radio"
- name="mailid_error_redirect" value="Y"{--_CFG_SHOW_TIMINGS_Y--}> {--YES--}<BR>
- <INPUT type="radio" name="mailid_error_redirect" value="N"{--_CFG_SHOW_TIMINGS_N--}> {--NO--}
+ <TD><SPAN class="nobr">
+ <INPUT type="radio" name="show_timings" value="Y"{--_CFG_SHOW_TIMINGS_Y--} /> {--YES--}<BR>
+ <INPUT type="radio" name="show_timings" value="N"{--_CFG_SHOW_TIMINGS_N--} /> {--NO--}
</SPAN></TD>
<TD width="10" class="seperator"> </TD>
</TR>
<TD align="right">{--ADMIN_OPTION_MAILID_REDIRECT--}:</TD>
<TD width="10" class="seperator"> </TD>
<TD><SPAN class="nobr"> <INPUT type="radio"
- name="mailid_error_redirect" value="index"{--_CFG_MAILID_REDIRECT_INDEX--}> {--ADMIN_CONFIG_MAILID_REDIRECT_INDEX--}<BR>
- <INPUT type="radio" name="mailid_error_redirect" value="reject"{--_CFG_MAILID_REDIRECT_REJECT--}> {--ADMIN_CONFIG_MAILID_REDIRECT_REJECT--}
+ name="mailid_error_redirect" value="INDEX"{--_CFG_MAILID_REDIRECT_INDEX--}> {--ADMIN_CONFIG_MAILID_REDIRECT_INDEX--}<BR>
+ <INPUT type="radio" name="mailid_error_redirect" value="REJECT"{--_CFG_MAILID_REDIRECT_REJECT--}> {--ADMIN_CONFIG_MAILID_REDIRECT_REJECT--}
</SPAN></TD>
<TD width="10" class="seperator"> </TD>
</TR>