inc/extensions/network/mode-setup.php svneol=native#text/plain
inc/extensions/order/.htaccess svneol=native#text/plain
inc/extensions/order/mode-update.php svneol=native#text/plain
+inc/extensions/register/.htaccess svneol=native#text/plain
+inc/extensions/register/mode-update.php svneol=native#text/plain
inc/extensions/sponsor/.htaccess svneol=native#text/plain
inc/extensions/sponsor/mode-setup.php svneol=native#text/plain
inc/extensions/sql_patches/.htaccess svneol=native#text/plain
./inc/extensions/network/mode-setup.php:48: * @TODO Yoo!Media: What is LayerAd compared to Layer click? *
./inc/extensions/network/mode-setup.php:94:// @TODO network_type_handler is an internal name and needs documentation
./inc/extensions/order/mode-update.php:43:// @TODO Remove double-tab from all lines
+./inc/extensions/register/mode-update.php:43:// @TODO Remove double tabs from all lines
./inc/extensions/sponsor/mode-setup.php:43:// @TODO Remove double tabs from all lines
./inc/extensions/sql_patches/mode-update.php:43:// @TODO Remove double tabs from all lines
./inc/extensions/user/mode-update.php:43:// @TODO Remove double tabs from all lines
./inc/header.php:66:// @TODO Find a way to not use direct module comparison
./inc/install-functions.php:446: // @TODO Comparing with DEFAULT_MAIN_TITLE doesn't work
./inc/install-functions.php:97: // @TODO DEACTIVATED: changeDataInLocalConfigurationFile('OUTPUT-MODE', "setConfigEntry('OUTPUT_MODE', '", "');", postRequestElement('omode'), 0);
-./inc/language/de.php:1162: // @TODO Rewrite these two constants
-./inc/language/de.php:1178: // @TODO Rewrite these three constants
+./inc/language/de.php:1161: // @TODO Rewrite these two constants
+./inc/language/de.php:1177: // @TODO Rewrite these three constants
./inc/language/de.php:46: // @TODO Please sort these language elements
-./inc/language/de.php:749:// @TODO Are these constants longer used?
+./inc/language/de.php:748:// @TODO Are these constants longer used?
./inc/language-functions.php:254: // @TODO These are all valid languages, again hard-coded
./inc/language/install_de.php:142: // @TODO Move this to e.g. ext-smtp
./inc/language/newsletter_de.php:13: * @TODO This language file is completely out-dated, please do no *
-./inc/language/order_de.php:70: // @TODO Find better text
+./inc/language/order_de.php:71: // @TODO Find better text
./inc/language/rallye_de.php:13: * @TODO Naming convention not applied for language strings *
./inc/language/refback_de.php:51: // @TODO Rewrite these constants to one
./inc/libs/admins_functions.php:537: // @TODO This can be, somehow, rewritten
./inc/modules/member/what-logout.php:17: * @TODO Rewrite the code to a filter *
./inc/modules/member/what-logout.php:52: // @TODO Move this in a filter, e.g. member_logout
./inc/modules/member/what-mydata.php:82: // @TODO Move this to a function (for better EL code)
-./inc/modules/member/what-order.php:463: // @TODO Rewrite this to a filter
+./inc/modules/member/what-order.php:464: // @TODO Rewrite this to a filter
+./inc/modules/member/what-order.php:72: // @TODO Try to move out url_tlock to a filter for extra SQL statements
./inc/modules/member/what-payout.php:208: // @TODO Rewrite this to a filter
./inc/modules/member/what-points.php:61:// @TODO Should we rewrite this to a filter?
./inc/modules/member/what-rallyes.php:99: // @TODO Reactivate this: $content['admin'] = '<a href="{%url=modules.php?module=index&what=impressum&id=' . $content['admin_id'] . '%}">' . $content['login'] . '</a>';
./inc/template-functions.php:1103: // @TODO Deprecate this thing
./inc/template-functions.php:1114: // @TODO Deprecate this thing
./inc/template-functions.php:1236: // @TODO This can be easily moved out after the merge from EL branch to this is complete
-./inc/template-functions.php:1285: // @TODO Add a little more infos here
-./inc/template-functions.php:1666:// @TODO Lame description for this function
-./inc/template-functions.php:1688: // @TODO Move this in a filter
+./inc/template-functions.php:1291: // @TODO Add a little more infos here
+./inc/template-functions.php:1672:// @TODO Lame description for this function
+./inc/template-functions.php:1694: // @TODO Move this in a filter
./inc/template-functions.php:209: * @TODO On some pages this is buggy
./inc/template-functions.php:298: // @TODO Remove these sanity checks if all is fine
./inc/template-functions.php:747: // @TODO $userid is deprecated and should be removed from loadEmailTemplate() and replaced with $content[userid] in all templates
-./inc/wrapper-functions.php:3275: // @TODO Find a way to not use direct module comparison
+./inc/wrapper-functions.php:3215: // @TODO Find a way to not use direct module comparison
./inc/wrapper-functions.php:566:// @TODO Do some more sanity check here
./inc/xml-functions.php:240: // @TODO Handle characters
./mailid.php:123: // @TODO Rewrite this to a filter/function
} // END - if
// Version number
-setThisExtensionVersion('0.4.1');
+setThisExtensionVersion('0.4.2');
// Version history array (add more with , '0.0.1' and so on)
-setExtensionVersionHistory(array('0.0.0', '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', '0.2.1', '0.2.2', '0.2.3', '0.2.4', '0.2.5', '0.2.6', '0.2.7', '0.2.8', '0.2.9', '0.3.0', '0.3.1', '0.3.2', '0.3.3', '0.3.4', '0.3.5', '0.3.6', '0.3.7', '0.3.8', '0.3.9', '0.4.0', '0.4.1'));
+setExtensionVersionHistory(array('0.0.0', '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', '0.2.1', '0.2.2', '0.2.3', '0.2.4', '0.2.5', '0.2.6', '0.2.7', '0.2.8', '0.2.9', '0.3.0', '0.3.1', '0.3.2', '0.3.3', '0.3.4', '0.3.5', '0.3.6', '0.3.7', '0.3.8', '0.3.9', '0.4.0', '0.4.1', '0.4.2'));
// Keep this extension always active!
setExtensionAlwaysActive('Y');
// Update notes
setExtensionUpdateNotes("Rückschriften bei Auto-Löschungen werden nun über die Tabelle <strong>{OPEN_CONFIG}_MYSQL_PREFIX{CLOSE_CONFIG}_points_data</strong> verwaltet.");
break;
+
+ case '0.4.2': // SQL queries for v0.4.2
+ addConfigAddSql('auto_purge', 'BIGINT(20) UNSIGNED NOT NULL DEFAULT ' . (getOneDay()*14));
+ addConfigAddSql('auto_purge_active', "ENUM('Y','N') NOT NULL DEFAULT 'Y'");
+
+ // Update notes
+ setExtensionUpdateNotes("Konfiguration in diese Erweiterung verschoben.");
+ break;
} // END - switch
break;
} // END - if
// Version number
-setThisExtensionVersion('0.5.8');
+setThisExtensionVersion('0.5.9');
// Version history array (add more with , '0.0.1' and so on)
-setExtensionVersionHistory(array('0.0.0', '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', '0.2.1', '0.2.2', '0.2.3', '0.2.4', '0.2.5', '0.2.6', '0.2.7', '0.2.8', '0.2.9', '0.3.0', '0.3.1', '0.3.2', '0.3.3', '0.3.4', '0.3.5', '0.3.6', '0.3.7', '0.3.8', '0.3.9', '0.4.0', '0.4.1', '0.4.2', '0.4.3', '0.4.4', '0.4.5', '0.4.6', '0.4.7', '0.4.8', '0.4.9', '0.5.0', '0.5.1', '0.5.2', '0.5.3', '0.5.4', '0.5.5', '0.5.6', '0.5.7', '0.5.8'));
+setExtensionVersionHistory(array('0.0.0', '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', '0.2.1', '0.2.2', '0.2.3', '0.2.4', '0.2.5', '0.2.6', '0.2.7', '0.2.8', '0.2.9', '0.3.0', '0.3.1', '0.3.2', '0.3.3', '0.3.4', '0.3.5', '0.3.6', '0.3.7', '0.3.8', '0.3.9', '0.4.0', '0.4.1', '0.4.2', '0.4.3', '0.4.4', '0.4.5', '0.4.6', '0.4.7', '0.4.8', '0.4.9', '0.5.0', '0.5.1', '0.5.2', '0.5.3', '0.5.4', '0.5.5', '0.5.6', '0.5.7', '0.5.8', '0.5.9'));
switch (getExtensionMode()) {
case 'setup': // Do stuff when installation is running
} // END - if
// Version number
-setThisExtensionVersion('0.2.9');
+setThisExtensionVersion('0.3.0');
// Version history array (add more with , '0.0.1' and so on)
-setExtensionVersionHistory(array('0.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', '0.2.1', '0.2.2', '0.2.3', '0.2.4', '0.2.5', '0.2.6', '0.2.7', '0.2.8', '0.2.9'));
+setExtensionVersionHistory(array('0.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', '0.2.1', '0.2.2', '0.2.3', '0.2.4', '0.2.5', '0.2.6', '0.2.7', '0.2.8', '0.2.9', '0.3.0'));
// Keep this extension always active!
setExtensionAlwaysActive('Y');
// Update notes (these will be set as task text!)
setExtensionUpdateNotes("Anzahl Zeichen für <strong>wordwrap()</strong>-Aufruf hinzugefügt.");
break;
+
+ case '0.3.0': // SQL queries for v0.3.0
+ addConfigAddSql('check_double_email', "ENUM('Y','N') NOT NULL DEFAULT 'Y'");
+ addConfigAddSql('admin_notify', "ENUM('Y','N') NOT NULL DEFAULT 'Y'");
+ addConfigAddSql('activate_xchange', 'BIGINT(20) UNSIGNED NOT NULL DEFAULT 100');
+
+ // Update notes (these will be set as task text!)
+ setExtensionUpdateNotes("Konfiguration aus allgemeiner <strong>tables.sql</strong> zu dieser Erweiterung verschoben.");
+ break;
} // END - switch
break;
// Add config SQLs
addConfigAddSql('profile_update', 'BIGINT(20) UNSIGNED NOT NULL DEFAULT 15768000');
addConfigChangeSql('send_prof_update', 'send_profile_update', "ENUM('Y','N') NOT NULL DEFAULT 'Y'");
+ addConfigAddSql('send_prof_update', "ENUM('Y','N') NOT NULL DEFAULT 'Y'");
addConfigAddSql('resend_profile_update', 'BIGINT(20) UNSIGNED NOT NULL DEFAULT 172800');
+ addConfigAddSql('profile_lock', 'BIGINT(20) UNSIGNED NOT NULL DEFAULT 86400');
// Admin menu
addAdminMenuSql('setup','config_profile','Mitgliedsprofile','Einstellungen für Mitgliedprofile.',14);
} // END - if
// Version number
-setThisExtensionVersion('0.5.7');
+setThisExtensionVersion('0.5.8');
// Version history array (add more with , '0.0.1' and so on)
-setExtensionVersionHistory(array('0.0.0', '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', '0.2.1', '0.2.2', '0.2.3', '0.2.4', '0.2.5', '0.2.6', '0.2.7', '0.2.8', '0.2.9', '0.3.0', '0.3.1', '0.3.2', '0.3.3', '0.3.4', '0.3.5', '0.3.6', '0.3.7', '0.3.8', '0.3.9', '0.4.0', '0.4.1', '0.4.2', '0.4.3', '0.4.4', '0.4.5', '0.4.6', '0.4.7', '0.4.8', '0.4.9', '0.5.0', '0.5.1', '0.5.2', '0.5.3', '0.5.4', '0.5.5', '0.5.6', '0.5.7'));
+setExtensionVersionHistory(array('0.0.0', '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', '0.2.1', '0.2.2', '0.2.3', '0.2.4', '0.2.5', '0.2.6', '0.2.7', '0.2.8', '0.2.9', '0.3.0', '0.3.1', '0.3.2', '0.3.3', '0.3.4', '0.3.5', '0.3.6', '0.3.7', '0.3.8', '0.3.9', '0.4.0', '0.4.1', '0.4.2', '0.4.3', '0.4.4', '0.4.5', '0.4.6', '0.4.7', '0.4.8', '0.4.9', '0.5.0', '0.5.1', '0.5.2', '0.5.3', '0.5.4', '0.5.5', '0.5.6', '0.5.7', '0.5.8'));
switch (getExtensionMode()) {
case 'setup': // Do stuff when installation is running
break;
case 'update': // Update an extension
- switch (getCurrentExtensionVersion()) {
- case '0.1.0': // SQL queries for v0.1.0
- addDropTableSql('must_register');
- addCreateTableSql('must_register', "
-`id` BIGINT(20) UNSIGNED NOT NULL AUTO_INCREMENT,
-`field_name` VARCHAR(255) NOT NULL DEFAULT '',
-`field_required` ENUM('Y','N') NOT NULL DEFAULT 'Y',
-PRIMARY KEY (`id`)",
- 'Data which fields the user must fill out');
-
- // Add all entries as required (DO NOT DELETE THEM FROM DATABASE!)
- addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_must_register` (`field_name`, `field_required`) VALUES ('surname', 'Y')");
- addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_must_register` (`field_name`, `field_required`) VALUES ('family', 'Y')");
- addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_must_register` (`field_name`, `field_required`) VALUES ('street_nr', 'Y')");
- addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_must_register` (`field_name`, `field_required`) VALUES ('cntry', 'Y')");
- addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_must_register` (`field_name`, `field_required`) VALUES ('zip', 'Y')");
- addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_must_register` (`field_name`, `field_required`) VALUES ('city', 'Y')");
-
- // Add admin menu
- addAdminMenuSql('setup','config_register','Pflichtfelder','Stellen Sie hier die Pflichtfelder sowohl im Anmeldeformular, als auch im Mitgliedsbereich unter <strong>Profildaten ändern</strong> ein.', 12);
-
- // Update notes (these will be set as task text!)
- setExtensionUpdateNotes("Einstellbare Pflichtfelder hinzugefügt.");
- break;
-
- case '0.1.1': // SQL queries for v0.1.1
- // Update notes (these will be set as task text!)
- setExtensionUpdateNotes("Veraltetes Update entfernt.");
- break;
-
- case '0.1.3': // SQL queries for v0.1.3
- // Update notes (these will be set as task text!)
- setExtensionUpdateNotes("Standard Referral-Id kann per Admin-Bereich eingestellt werden (war vorher nur in modules.php und index.php direkt eingebbar.)");
- break;
-
- case '0.1.4': // SQL queries for v0.1.4
- // Update notes (these will be set as task text!)
- setExtensionUpdateNotes("Wegen des Theme-Supportes hat sich die URL zur CSS-Datei geändert.");
- break;
-
- case '0.1.5': // SQL queries for v0.1.5
- // Update notes (these will be set as task text!)
- setExtensionUpdateNotes("Konfiguration der Pflichtangaben ausgelagert in Template");
- break;
-
- case '0.1.6': // SQL queries for v0.1.6
- // Update notes (these will be set as task text!)
- setExtensionUpdateNotes("Fehler beseitigt, wenn error_reporting=E_ALL gesetzt ist.");
- break;
-
- case '0.1.7': // SQL queries for v0.1.7
- // Update notes (these will be set as task text!)
- setExtensionUpdateNotes("Fehler beseitigt, wenn error_reporting=E_ALL gesetzt ist.");
- break;
-
- case '0.1.8': // SQL queries for v0.1.8
- // Update notes (these will be set as task text!)
- setExtensionUpdateNotes("Fehler beseitigt, wenn error_reporting=E_ALL gesetzt ist.");
- break;
-
- case '0.1.9': // SQL queries for v0.1.9
- // Update notes (these will be set as task text!)
- setExtensionUpdateNotes("Pflichtfelder wieder eingebaut (waren irgentwie ausgebaut???)");
- break;
-
- case '0.2.0': // SQL queries for v0.2.0
- // Update notes (these will be set as task text!)
- setExtensionUpdateNotes("Problem mit Speicherung der Einstellungen beseitigt.");
- break;
-
- case '0.2.1': // SQL queries for v0.2.1
- // Update notes (these will be set as task text!)
- setExtensionUpdateNotes("Menüpunkte im Gast-/Mitgliedsbereich können nicht mehr aufgerufen werden, wenn die Erweiterung deaktiviert ist.");
- break;
-
- case '0.2.2': // SQL queries for v0.2.2
- // Update notes (these will be set as task text!)
- setExtensionUpdateNotes("Sämtliche Sperren bei eingeloggten Admin deaktiviert.");
- break;
-
- case '0.2.3': // SQL queries for v0.2.3
- // Update notes (these will be set as task text!)
- setExtensionUpdateNotes("Cookie <u>refid</u> aus Anmeldeformular entfernt.");
- break;
-
- case '0.2.4': // SQL queries for v0.2.4
- // Update notes (these will be set as task text!)
- setExtensionUpdateNotes("Design "Solid-Business" eingebaut.");
- break;
-
- case '0.2.5': // SQL queries for v0.2.5
- // Update notes (these will be set as task text!)
- setExtensionUpdateNotes("Seit <strong>Patch 340</strong> überflüssige HTML-Tags entfernt.");
- break;
-
- case '0.2.6': // SQL queries for v0.2.6
- // Update notes (these will be set as task text!)
- setExtensionUpdateNotes("IP-Nummer und Browserbezeichnung wird in Admin-Mails eingesetzt.");
- break;
-
- case '0.2.7': // SQL queries for v0.2.7
- // Update notes (these will be set as task text!)
- setExtensionUpdateNotes("Referral-Id wird endlich korrekt gesetzt.");
- break;
-
- case '0.2.8': // SQL queries for v0.2.8
- // Update notes (these will be set as task text!)
- setExtensionUpdateNotes("Parse error in <u>what-register.php</u> beseitigt.");
- break;
-
- case '0.2.9': // SQL queries for v0.2.9
- // Update notes (these will be set as task text!)
- setExtensionUpdateNotes("Anrede "Firma" hinzugefügt.");
- break;
-
- case '0.3.0': // SQL queries for v0.3.0
- // Update notes (these will be set as task text!)
- setExtensionUpdateNotes("Wörter <strong>{?mt_word?}</strong>, <strong>{?mt_word2?}</strong> und <strong>{?mt_word3?}</strong> sind austauschbar.");
- break;
-
- case '0.3.1': // SQL queries for v0.3.1
- // Update notes (these will be set as task text!)
- setExtensionUpdateNotes("Email-Adresse wird vor dem Speichern auf Gültigkeit hin getestet.");
- break;
-
- case '0.3.2': // SQL queries for v0.3.2
- // Update notes (these will be set as task text!)
- setExtensionUpdateNotes("Einbindung der Erweiterung <strong>country</strong>, die Sie sich noch optional von <strike>meiner Seite herunterladen</strike> müssen.<br />
-<br />
-<strong>Wichtig: Laden Sie noch das Template <strong>guest_register.tpl</strong> mit hoch, welches unter templates/".getLanguage()."/html/guest/ zu finden ist!</strong>");
- break;
-
- case '0.3.3': // SQL queries for v0.3.3
- // Update notes (these will be set as task text!)
- setExtensionUpdateNotes("Es werden dem Mitglied nur aktivierte Ländercodes zur Auswahl angeboten.");
- break;
-
- case '0.3.4': // SQL queries for v0.3.4
- // Update notes (these will be set as task text!)
- setExtensionUpdateNotes("Auf Grund der Integration der neue Erweiterung <strong>country</strong> in die Anmeldephase klappte die Anmeldung nicht. Die dazu nütige Verknüpfung ist nun eingebaut und die Anmeldung klappt wieder. Vielen Dank nochmals an den Bug-Reporter (Fehlermelder)!");
- break;
-
- case '0.3.5': // SQL queries for v0.3.5
- // Update notes (these will be set as task text!)
- setExtensionUpdateNotes("Design wird nach Anmeldung auch endlich im Mitgliedsmenü übernommen.");
- break;
-
- case '0.3.6': // SQL queries for v0.3.6
- // Update notes (these will be set as task text!)
- setExtensionUpdateNotes("Fehlermeldung <strong>Fatal error: Call to undefined function: get_theme() in /../../guest/what-register.php on line 190</strong> beseitigt.");
- break;
-
- case '0.3.7': // SQL queries for v0.3.7
- // Update notes (these will be set as task text!)
- setExtensionUpdateNotes("Fehlermeldung <strong>Fatal error: Call to undefined function: get_curr_theme<u>e</u>() in /../../guest/what-register.php on line 190</strong> beseitigt.");
- break;
-
- case '0.3.8': // SQL queries for v0.3.8
- // Update notes (these will be set as task text!)
- setExtensionUpdateNotes("Weitere SQL-Befehle abgesichert.");
- break;
-
- case '0.3.9': // SQL queries for v0.3.9
- // Update notes (these will be set as task text!)
- setExtensionUpdateNotes("Abspeichern von Einstellungen repariert.");
- break;
-
- case '0.4.0': // SQL queries for v0.4.0
- // Update notes (these will be set as task text!)
- setExtensionUpdateNotes("Abspeichern von Einstellungen repariert.");
- break;
-
- case '0.4.1': // SQL queries for v0.4.1
- // Update notes (these will be set as task text!)
- setExtensionUpdateNotes("Vorbereitung auf die neue Mediendaten v0.0.4.");
- break;
-
- case '0.4.2': // SQL queries for v0.4.2
- addConfigAddSql('register_default', "ENUM('Y','N') NOT NULL DEFAULT 'N'");
-
- // Update notes (these will be set as task text!)
- setExtensionUpdateNotes("Bei der Anmeldung kann die Standard-Auswahl zwischen Ja/Nein umgeschaltet werden. Das Ändern des Templates <strong>templates/".getLanguage()."/html/guest/guest_register.tpl</strong> ist nicht mehr nötig.");
- break;
-
- case '0.4.3': // SQL queries for v0.4.3
- // Update notes (these will be set as task text!)
- setExtensionUpdateNotes("Parser-Error in <strong>inc/modules/guest/what-register.php</strong> beseitigt.");
- break;
-
- case '0.4.4': // SQL queries for v0.4.4
- // Update notes (these will be set as task text!)
- setExtensionUpdateNotes("Anmeldefehler (EMail-Adresse war immer ein Ausrufezeichen) beseitigt.");
- break;
-
- case '0.4.5': // SQL queries for v0.4.5
- // Update notes (these will be set as task text!)
- setExtensionUpdateNotes("if-Anweisungen auf Funktion <strong>empty()</strong> umgestellt.");
- break;
-
- case '0.4.6': // SQL queries for v0.4.6
- // Update notes (these will be set as task text!)
- setExtensionUpdateNotes("Einstellung nach {?POINTS?}-Einstellungen verlagert.");
- break;
-
- case '0.4.7': // SQL queries for v0.4.7
- // Update notes (these will be set as task text!)
- setExtensionUpdateNotes("<strong>setSession()</strong> mit @-Zeichen gegen ungewollte Ausgaben abgesichert.");
- break;
-
- case '0.4.8': // SQL queries for v0.4.8
- // Update notes (these will be set as task text!)
- setExtensionUpdateNotes("Hash-Erstellung von <strong>md5()</strong> auf bessere Funktion <strong>generateHash()</strong> umgestellt.");
- break;
-
- case '0.4.9': // SQL queries for v0.4.9
- // Update notes (these will be set as task text!)
- setExtensionUpdateNotes("Problem mit nicht anzeigbaren Kategorien in der Anmeldung beseitigt.");
- break;
-
- case '0.5.0': // SQL queries for v0.5.0
- // Update notes (these will be set as task text!)
- setExtensionUpdateNotes("Fehlermeldung <span class=\"bad\"><strong>Fatal error:</strong> Call to undefined function registerGenerateCategoryTable() in <strong>{?PATH?}/inc/modules/guest/what-register.php</strong> on line <strong>434</strong></span> beseitigt.");
- break;
-
- case '0.5.1': // SQL queries for v0.5.1
- // Update notes (these will be set as task text!)
- setExtensionUpdateNotes("Mail-Template <strong>register-member.tpl</strong> gefixt. Danke an <a href=\"http://forum.mxchange.org/profile-59.html\" target=\"_blank\" title=\"Mitgliedsprofil aufrufen\">wliepe</a> für die Fehlerfindung!");
- break;
-
- case '0.5.2': // SQL queries for v0.5.2
- // Update notes (these will be set as task text!)
- setExtensionUpdateNotes("Fehlerhinweis bei deaktivierter Erweiterung verbessert.");
- break;
-
- case '0.5.3': // SQL queries for v0.5.3
- // Register a filter
- registerFilter(__FILE__, __LINE__, 'register_must_fillout', 'REGISTER_MUST_FILLOUT', FALSE, TRUE, isExtensionDryRun());
-
- // Run these SQLs
- addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_must_register` (`field_name`, `field_required`) VALUES ('gender','Y')");
- addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_must_register` (`field_name`, `field_required`) VALUES ('email','Y')");
- addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_must_register` (`field_name`, `field_required`) VALUES ('birthday','Y')");
- addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_must_register` (`field_name`, `field_required`) VALUES ('marker','Y')");
-
- // Update notes (these will be set as task text!)
- setExtensionUpdateNotes("Filter <strong>register_must_fillout</strong> hinzugefügt, weitere Felder in <span class=\"bad\">{?_MYSQL_PREFIX?}_must_register</span> eingefügt.");
- break;
-
- case '0.5.4': // SQL queries for v0.5.4
- addAdminMenuSql('setup', 'config_register2', 'Anmeldeformular', 'Stellen Sie ein, wie viel Kategorien der Gast bei der Anmeldung mindestens einstellen muss. Diese Einstellung gilt nachher auch im Mitgliedsbereich!', 8);
-
- // Update notes (these will be set as task text!)
- setExtensionUpdateNotes("Weiteren Menüpunkt aus <strong>menu-{?DEFAULT_LANG?} heraus geholt.");
- break;
-
- case '0.5.5': // SQL queries for v0.5.5
- addConfigAddSql('register_generate_password_empty', "ENUM('Y','N') NOT NULL DEFAULT 'Y'");
-
- // Update notes (these will be set as task text!)
- setExtensionUpdateNotes("Weiteren Menüpunkt aus <strong>menu-{?DEFAULT_LANG?} heraus geholt.");
- break;
-
- case '0.5.6': // SQL queries for v0.5.6
- // Register points data
- registerExtensionPointsData('register_welcome', 'points', 'LOCKED', 'DIRECT');
-
- // Update notes
- setExtensionUpdateNotes("Anmeldewillkommensgutschrift wird nun über die Tabelle <strong>{OPEN_CONFIG}_MYSQL_PREFIX{CLOSE_CONFIG}_points_data</strong> verwaltet.");
- break;
-
- case '0.5.7': // SQL queries for v0.5.7
- // Register a filter
- registerFilter(__FILE__, __LINE__, 'pre_user_registration', 'PRE_USER_REGISTRATION_GENERIC', FALSE, TRUE, isExtensionDryRun());
-
- // Register points data
- registerExtensionPointsData('referral_bonus', 'points', 'LOCKED', 'DIRECT');
- registerExtensionPointsData('referral_bonus_ref', 'points', 'LOCKED', 'DIRECT');
-
- // Update notes
- setExtensionUpdateNotes("Anmeldeformular komplett auf drei Filter umgestrickt (mehr dazu siehe Wiki) und weitere Verwendungszwecke registriert.");
- break;
- } // END - switch
break;
case 'modify': // When the extension got modified
addConfigAddSql('order_multi_page', "ENUM('Y','N') NOT NULL DEFAULT 'Y'");
// Update notes (these will be set as task text!)
- setExtensionUpdateNotes("Spalte wird nun in dieser Erweiterung hinzugefügt (vorher: allgemeine <strong>tables.sql</strong>).");
+ setExtensionUpdateNotes("Konfiguration wird nun in dieser Erweiterung hinzugefügt (vorher: allgemeine <strong>tables.sql</strong>).");
+ break;
+
+ case '0.5.9': // SQL queries for v0.5.9
+ addConfigChangeSql('unconfirmed', 'max_unconfirmed', 'BIGINT(20) UNSIGNED NOT NULL DEFAULT 100');
+ addConfigAddSql('max_unconfirmed', 'BIGINT(20) UNSIGNED NOT NULL DEFAULT 100');
+ addConfigChangeSql('autosend_active', 'autosend_member_mails', "ENUM('Y','N') NOT NULL DEFAULT 'N'");
+ addConfigAddSql('autosend_member_mails', "ENUM('Y','N') NOT NULL DEFAULT 'N'");
+ addConfigChangeSql('max_tlength', 'max_text_length', 'BIGINT(20) UNSIGNED NOT NULL DEFAULT 1000');
+ addConfigAddSql('max_text_length', 'BIGINT(20) UNSIGNED NOT NULL DEFAULT 1000');
+
+ // Update notes (these will be set as task text!)
+ setExtensionUpdateNotes("Konfiguration wird nun in dieser Erweiterung hinzugefügt (vorher: allgemeine <strong>tables.sql</strong>).");
break;
} // END - switch
--- /dev/null
+Deny from all
--- /dev/null
+<?php
+/************************************************************************
+ * Mailer v0.2.1-FINAL Start: 01/23/2013 *
+ * =================== Last change: 01/23/2013 *
+ * *
+ * -------------------------------------------------------------------- *
+ * File : mode-update.php *
+ * -------------------------------------------------------------------- *
+ * Short description : Swapped out registration system for new members *
+ * -------------------------------------------------------------------- *
+ * Kurzbeschreibung : Ausgelagertes Anmeldesystem fuer Mitglieder *
+ * -------------------------------------------------------------------- *
+ * $Revision:: $ *
+ * $Date:: $ *
+ * $Tag:: 0.2.1-FINAL $ *
+ * $Author:: $ *
+ * -------------------------------------------------------------------- *
+ * Copyright (c) 2003 - 2009 by Roland Haeder *
+ * Copyright (c) 2009 - 2012 by Mailer Developer Team *
+ * For more information visit: http://mxchange.org *
+ * *
+ * This program is free software; you can redistribute it and/or modify *
+ * it under the terms of the GNU General Public License as published by *
+ * the Free Software Foundation; either version 2 of the License, or *
+ * (at your option) any later version. *
+ * *
+ * This program is distributed in the hope that it will be useful, *
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of *
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
+ * GNU General Public License for more details. *
+ * *
+ * You should have received a copy of the GNU General Public License *
+ * along with this program; if not, write to the Free Software *
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, *
+ * MA 02110-1301 USA *
+ ************************************************************************/
+
+// Some security stuff...
+if (!defined('__SECURITY')) {
+ die();
+} // END - if
+
+// @TODO Remove double tabs from all lines
+ switch (getCurrentExtensionVersion()) {
+ case '0.1.0': // SQL queries for v0.1.0
+ addDropTableSql('must_register');
+ addCreateTableSql('must_register', "
+`id` BIGINT(20) UNSIGNED NOT NULL AUTO_INCREMENT,
+`field_name` VARCHAR(255) NOT NULL DEFAULT '',
+`field_required` ENUM('Y','N') NOT NULL DEFAULT 'Y',
+PRIMARY KEY (`id`)",
+ 'Data which fields the user must fill out');
+
+ // Add all entries as required (DO NOT DELETE THEM FROM DATABASE!)
+ addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_must_register` (`field_name`, `field_required`) VALUES ('surname', 'Y')");
+ addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_must_register` (`field_name`, `field_required`) VALUES ('family', 'Y')");
+ addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_must_register` (`field_name`, `field_required`) VALUES ('street_nr', 'Y')");
+ addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_must_register` (`field_name`, `field_required`) VALUES ('cntry', 'Y')");
+ addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_must_register` (`field_name`, `field_required`) VALUES ('zip', 'Y')");
+ addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_must_register` (`field_name`, `field_required`) VALUES ('city', 'Y')");
+
+ // Add admin menu
+ addAdminMenuSql('setup','config_register','Pflichtfelder','Stellen Sie hier die Pflichtfelder sowohl im Anmeldeformular, als auch im Mitgliedsbereich unter <strong>Profildaten ändern</strong> ein.', 12);
+
+ // Update notes (these will be set as task text!)
+ setExtensionUpdateNotes("Einstellbare Pflichtfelder hinzugefügt.");
+ break;
+
+ case '0.1.1': // SQL queries for v0.1.1
+ // Update notes (these will be set as task text!)
+ setExtensionUpdateNotes("Veraltetes Update entfernt.");
+ break;
+
+ case '0.1.3': // SQL queries for v0.1.3
+ // Update notes (these will be set as task text!)
+ setExtensionUpdateNotes("Standard Referral-Id kann per Admin-Bereich eingestellt werden (war vorher nur in modules.php und index.php direkt eingebbar.)");
+ break;
+
+ case '0.1.4': // SQL queries for v0.1.4
+ // Update notes (these will be set as task text!)
+ setExtensionUpdateNotes("Wegen des Theme-Supportes hat sich die URL zur CSS-Datei geändert.");
+ break;
+
+ case '0.1.5': // SQL queries for v0.1.5
+ // Update notes (these will be set as task text!)
+ setExtensionUpdateNotes("Konfiguration der Pflichtangaben ausgelagert in Template");
+ break;
+
+ case '0.1.6': // SQL queries for v0.1.6
+ // Update notes (these will be set as task text!)
+ setExtensionUpdateNotes("Fehler beseitigt, wenn error_reporting=E_ALL gesetzt ist.");
+ break;
+
+ case '0.1.7': // SQL queries for v0.1.7
+ // Update notes (these will be set as task text!)
+ setExtensionUpdateNotes("Fehler beseitigt, wenn error_reporting=E_ALL gesetzt ist.");
+ break;
+
+ case '0.1.8': // SQL queries for v0.1.8
+ // Update notes (these will be set as task text!)
+ setExtensionUpdateNotes("Fehler beseitigt, wenn error_reporting=E_ALL gesetzt ist.");
+ break;
+
+ case '0.1.9': // SQL queries for v0.1.9
+ // Update notes (these will be set as task text!)
+ setExtensionUpdateNotes("Pflichtfelder wieder eingebaut (waren irgentwie ausgebaut???)");
+ break;
+
+ case '0.2.0': // SQL queries for v0.2.0
+ // Update notes (these will be set as task text!)
+ setExtensionUpdateNotes("Problem mit Speicherung der Einstellungen beseitigt.");
+ break;
+
+ case '0.2.1': // SQL queries for v0.2.1
+ // Update notes (these will be set as task text!)
+ setExtensionUpdateNotes("Menüpunkte im Gast-/Mitgliedsbereich können nicht mehr aufgerufen werden, wenn die Erweiterung deaktiviert ist.");
+ break;
+
+ case '0.2.2': // SQL queries for v0.2.2
+ // Update notes (these will be set as task text!)
+ setExtensionUpdateNotes("Sämtliche Sperren bei eingeloggten Admin deaktiviert.");
+ break;
+
+ case '0.2.3': // SQL queries for v0.2.3
+ // Update notes (these will be set as task text!)
+ setExtensionUpdateNotes("Cookie <u>refid</u> aus Anmeldeformular entfernt.");
+ break;
+
+ case '0.2.4': // SQL queries for v0.2.4
+ // Update notes (these will be set as task text!)
+ setExtensionUpdateNotes("Design "Solid-Business" eingebaut.");
+ break;
+
+ case '0.2.5': // SQL queries for v0.2.5
+ // Update notes (these will be set as task text!)
+ setExtensionUpdateNotes("Seit <strong>Patch 340</strong> überflüssige HTML-Tags entfernt.");
+ break;
+
+ case '0.2.6': // SQL queries for v0.2.6
+ // Update notes (these will be set as task text!)
+ setExtensionUpdateNotes("IP-Nummer und Browserbezeichnung wird in Admin-Mails eingesetzt.");
+ break;
+
+ case '0.2.7': // SQL queries for v0.2.7
+ // Update notes (these will be set as task text!)
+ setExtensionUpdateNotes("Referral-Id wird endlich korrekt gesetzt.");
+ break;
+
+ case '0.2.8': // SQL queries for v0.2.8
+ // Update notes (these will be set as task text!)
+ setExtensionUpdateNotes("Parse error in <u>what-register.php</u> beseitigt.");
+ break;
+
+ case '0.2.9': // SQL queries for v0.2.9
+ // Update notes (these will be set as task text!)
+ setExtensionUpdateNotes("Anrede "Firma" hinzugefügt.");
+ break;
+
+ case '0.3.0': // SQL queries for v0.3.0
+ // Update notes (these will be set as task text!)
+ setExtensionUpdateNotes("Wörter <strong>{?mt_word?}</strong>, <strong>{?mt_word2?}</strong> und <strong>{?mt_word3?}</strong> sind austauschbar.");
+ break;
+
+ case '0.3.1': // SQL queries for v0.3.1
+ // Update notes (these will be set as task text!)
+ setExtensionUpdateNotes("Email-Adresse wird vor dem Speichern auf Gültigkeit hin getestet.");
+ break;
+
+ case '0.3.2': // SQL queries for v0.3.2
+ // Update notes (these will be set as task text!)
+ setExtensionUpdateNotes("Einbindung der Erweiterung <strong>country</strong>, die Sie sich noch optional von <strike>meiner Seite herunterladen</strike> müssen.<br />
+<br />
+<strong>Wichtig: Laden Sie noch das Template <strong>guest_register.tpl</strong> mit hoch, welches unter templates/".getLanguage()."/html/guest/ zu finden ist!</strong>");
+ break;
+
+ case '0.3.3': // SQL queries for v0.3.3
+ // Update notes (these will be set as task text!)
+ setExtensionUpdateNotes("Es werden dem Mitglied nur aktivierte Ländercodes zur Auswahl angeboten.");
+ break;
+
+ case '0.3.4': // SQL queries for v0.3.4
+ // Update notes (these will be set as task text!)
+ setExtensionUpdateNotes("Auf Grund der Integration der neue Erweiterung <strong>country</strong> in die Anmeldephase klappte die Anmeldung nicht. Die dazu nütige Verknüpfung ist nun eingebaut und die Anmeldung klappt wieder. Vielen Dank nochmals an den Bug-Reporter (Fehlermelder)!");
+ break;
+
+ case '0.3.5': // SQL queries for v0.3.5
+ // Update notes (these will be set as task text!)
+ setExtensionUpdateNotes("Design wird nach Anmeldung auch endlich im Mitgliedsmenü übernommen.");
+ break;
+
+ case '0.3.6': // SQL queries for v0.3.6
+ // Update notes (these will be set as task text!)
+ setExtensionUpdateNotes("Fehlermeldung <strong>Fatal error: Call to undefined function: get_theme() in /../../guest/what-register.php on line 190</strong> beseitigt.");
+ break;
+
+ case '0.3.7': // SQL queries for v0.3.7
+ // Update notes (these will be set as task text!)
+ setExtensionUpdateNotes("Fehlermeldung <strong>Fatal error: Call to undefined function: get_curr_theme<u>e</u>() in /../../guest/what-register.php on line 190</strong> beseitigt.");
+ break;
+
+ case '0.3.8': // SQL queries for v0.3.8
+ // Update notes (these will be set as task text!)
+ setExtensionUpdateNotes("Weitere SQL-Befehle abgesichert.");
+ break;
+
+ case '0.3.9': // SQL queries for v0.3.9
+ // Update notes (these will be set as task text!)
+ setExtensionUpdateNotes("Abspeichern von Einstellungen repariert.");
+ break;
+
+ case '0.4.0': // SQL queries for v0.4.0
+ // Update notes (these will be set as task text!)
+ setExtensionUpdateNotes("Abspeichern von Einstellungen repariert.");
+ break;
+
+ case '0.4.1': // SQL queries for v0.4.1
+ // Update notes (these will be set as task text!)
+ setExtensionUpdateNotes("Vorbereitung auf die neue Mediendaten v0.0.4.");
+ break;
+
+ case '0.4.2': // SQL queries for v0.4.2
+ addConfigAddSql('register_default', "ENUM('Y','N') NOT NULL DEFAULT 'N'");
+
+ // Update notes (these will be set as task text!)
+ setExtensionUpdateNotes("Bei der Anmeldung kann die Standard-Auswahl zwischen Ja/Nein umgeschaltet werden. Das Ändern des Templates <strong>templates/".getLanguage()."/html/guest/guest_register.tpl</strong> ist nicht mehr nötig.");
+ break;
+
+ case '0.4.3': // SQL queries for v0.4.3
+ // Update notes (these will be set as task text!)
+ setExtensionUpdateNotes("Parser-Error in <strong>inc/modules/guest/what-register.php</strong> beseitigt.");
+ break;
+
+ case '0.4.4': // SQL queries for v0.4.4
+ // Update notes (these will be set as task text!)
+ setExtensionUpdateNotes("Anmeldefehler (EMail-Adresse war immer ein Ausrufezeichen) beseitigt.");
+ break;
+
+ case '0.4.5': // SQL queries for v0.4.5
+ // Update notes (these will be set as task text!)
+ setExtensionUpdateNotes("if-Anweisungen auf Funktion <strong>empty()</strong> umgestellt.");
+ break;
+
+ case '0.4.6': // SQL queries for v0.4.6
+ // Update notes (these will be set as task text!)
+ setExtensionUpdateNotes("Einstellung nach {?POINTS?}-Einstellungen verlagert.");
+ break;
+
+ case '0.4.7': // SQL queries for v0.4.7
+ // Update notes (these will be set as task text!)
+ setExtensionUpdateNotes("<strong>setSession()</strong> mit @-Zeichen gegen ungewollte Ausgaben abgesichert.");
+ break;
+
+ case '0.4.8': // SQL queries for v0.4.8
+ // Update notes (these will be set as task text!)
+ setExtensionUpdateNotes("Hash-Erstellung von <strong>md5()</strong> auf bessere Funktion <strong>generateHash()</strong> umgestellt.");
+ break;
+
+ case '0.4.9': // SQL queries for v0.4.9
+ // Update notes (these will be set as task text!)
+ setExtensionUpdateNotes("Problem mit nicht anzeigbaren Kategorien in der Anmeldung beseitigt.");
+ break;
+
+ case '0.5.0': // SQL queries for v0.5.0
+ // Update notes (these will be set as task text!)
+ setExtensionUpdateNotes("Fehlermeldung <span class=\"bad\"><strong>Fatal error:</strong> Call to undefined function registerGenerateCategoryTable() in <strong>{?PATH?}/inc/modules/guest/what-register.php</strong> on line <strong>434</strong></span> beseitigt.");
+ break;
+
+ case '0.5.1': // SQL queries for v0.5.1
+ // Update notes (these will be set as task text!)
+ setExtensionUpdateNotes("Mail-Template <strong>register-member.tpl</strong> gefixt. Danke an <a href=\"http://forum.mxchange.org/profile-59.html\" target=\"_blank\" title=\"Mitgliedsprofil aufrufen\">wliepe</a> für die Fehlerfindung!");
+ break;
+
+ case '0.5.2': // SQL queries for v0.5.2
+ // Update notes (these will be set as task text!)
+ setExtensionUpdateNotes("Fehlerhinweis bei deaktivierter Erweiterung verbessert.");
+ break;
+
+ case '0.5.3': // SQL queries for v0.5.3
+ // Register a filter
+ registerFilter(__FILE__, __LINE__, 'register_must_fillout', 'REGISTER_MUST_FILLOUT', FALSE, TRUE, isExtensionDryRun());
+
+ // Run these SQLs
+ addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_must_register` (`field_name`, `field_required`) VALUES ('gender','Y')");
+ addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_must_register` (`field_name`, `field_required`) VALUES ('email','Y')");
+ addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_must_register` (`field_name`, `field_required`) VALUES ('birthday','Y')");
+ addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_must_register` (`field_name`, `field_required`) VALUES ('marker','Y')");
+
+ // Update notes (these will be set as task text!)
+ setExtensionUpdateNotes("Filter <strong>register_must_fillout</strong> hinzugefügt, weitere Felder in <span class=\"bad\">{?_MYSQL_PREFIX?}_must_register</span> eingefügt.");
+ break;
+
+ case '0.5.4': // SQL queries for v0.5.4
+ addAdminMenuSql('setup', 'config_register2', 'Anmeldeformular', 'Stellen Sie ein, wie viel Kategorien der Gast bei der Anmeldung mindestens einstellen muss. Diese Einstellung gilt nachher auch im Mitgliedsbereich!', 8);
+
+ // Update notes (these will be set as task text!)
+ setExtensionUpdateNotes("Weiteren Menüpunkt aus <strong>menu-{?DEFAULT_LANG?} heraus geholt.");
+ break;
+
+ case '0.5.5': // SQL queries for v0.5.5
+ addConfigAddSql('register_generate_password_empty', "ENUM('Y','N') NOT NULL DEFAULT 'Y'");
+
+ // Update notes (these will be set as task text!)
+ setExtensionUpdateNotes("Weiteren Menüpunkt aus <strong>menu-{?DEFAULT_LANG?} heraus geholt.");
+ break;
+
+ case '0.5.6': // SQL queries for v0.5.6
+ // Register points data
+ registerExtensionPointsData('register_welcome', 'points', 'LOCKED', 'DIRECT');
+
+ // Update notes
+ setExtensionUpdateNotes("Anmeldewillkommensgutschrift wird nun über die Tabelle <strong>{OPEN_CONFIG}_MYSQL_PREFIX{CLOSE_CONFIG}_points_data</strong> verwaltet.");
+ break;
+
+ case '0.5.7': // SQL queries for v0.5.7
+ // Register a filter
+ registerFilter(__FILE__, __LINE__, 'pre_user_registration', 'PRE_USER_REGISTRATION_GENERIC', FALSE, TRUE, isExtensionDryRun());
+
+ // Register points data
+ registerExtensionPointsData('referral_bonus', 'points', 'LOCKED', 'DIRECT');
+ registerExtensionPointsData('referral_bonus_ref', 'points', 'LOCKED', 'DIRECT');
+
+ // Update notes
+ setExtensionUpdateNotes("Anmeldeformular komplett auf drei Filter umgestrickt (mehr dazu siehe Wiki) und weitere Verwendungszwecke registriert.");
+ break;
+
+ case '0.5.8': // SQL queries for v0.5.8
+ addConfigAddSql('least_cats', 'TINYINT(3) UNSIGNED NOT NULL DEFAULT 5');
+ addConfigAddSql('display_refid', "ENUM('Y','N') NOT NULL DEFAULT 'Y'");
+ addConfigAddSql('ip_timeout', 'BIGINT(20) UNSIGNED NOT NULL DEFAULT 86400');
+
+ // Update notes
+ setExtensionUpdateNotes("Anmeldewillkommensgutschrift wird nun über die Tabelle <strong>{OPEN_CONFIG}_MYSQL_PREFIX{CLOSE_CONFIG}_points_data</strong> verwaltet.");
+ break;
+ } // END - switch
+
+// [EOF]
+?>
break;
case '0.0.2': // SQL queries for v0.0.2
- addConfigChangeSql('auto_purge', 'auto_purge', 'BIGINT(20) UNSIGNED NOT NULL DEFAULT ' . (getOneDay()*14));
-
// Update notes (these will be set as task text!)
- setExtensionUpdateNotes("In der Tabelle <strong>{?_MYSQL_PREFIX?}_config</strong> musste die Spalte <strong>auto_purge</strong> (autom. Löschen von Bestätigungsmails angepasst werden (war auf dem Testsystem auf TINYINT(4) gesetzt.)");
+ setExtensionUpdateNotes("Nicht mehr verwendetes Update, da nach <strong>ext-autopurge</strong> verschoben.");
break;
case '0.0.3': // SQL queries for v0.0.3
break;
case '0.4.5': // SQL queries for v0.4.5
+ addConfigAddSql('last_daily' , 'TINYINT(2) UNSIGNED ZEROFILL NOT NULL DEFAULT 00');
addConfigAddSql('last_weekly' , 'TINYINT(2) UNSIGNED ZEROFILL NOT NULL DEFAULT 00');
addConfigAddSql('last_monthly', 'TINYINT(2) UNSIGNED ZEROFILL NOT NULL DEFAULT 00');
break;
case '0.7.6': // SQL queries for v0.7.6
- addConfigChangeSql('last_monthly', 'last_monthly', 'TINYINT(2) UNSIGNED ZEROFILL NOT NULL DEFAULT 00');
- addConfigChangeSql('last_weekly' , 'last_weekly' , 'TINYINT(2) UNSIGNED ZEROFILL NOT NULL DEFAULT 00');
+ addConfigChangeSql('last_month', 'last_monthly', 'TINYINT(2) UNSIGNED ZEROFILL NOT NULL DEFAULT 00');
+ addConfigChangeSql('last_week' , 'last_weekly' , 'TINYINT(2) UNSIGNED ZEROFILL NOT NULL DEFAULT 00');
// Update notes (these will be set as task text!)
setExtensionUpdateNotes("Spaltentyp fuer kleine Zahlen sollten auch z.B. TINYINT sein.");
addAdminMenuSql('user', 'list_links', 'Unbestätigte Mails', 'Mit diesem Menüpunkt können Sie die vom Mitglied nicht bestätigten Mails anzeigen.', 8);
addAdminMenuSql('user', 'list_user_cats', 'Kategorien anzeigen', 'Listet die ausgewählten Kategorien eines Mitgliedes auf.', 9);
+// Add dependency to ext-other as pool-user requires it
+addExtensionDependency('other');
+
// [EOF]
?>
// Filter to activate exchange
function FILTER_ACTIVATE_EXCHANGE () {
- // Is the extension 'user' there?
- if ((!isExtensionActive('user')) || (getActivateXchange() == '0')) {
+ // Are the extension ext-user/other there?
+ if ((!isExtensionActive('user')) || (!isExtensionActive('other')) || (getActivateXchange() == '0')) {
// Silently abort here
return FALSE;
} // END - if
'ADMIN_ENTER_POINTS_REGISTER' => "Willkommensgutschrift",
'ADMIN_ENTER_POINTS_REFERRAL' => "Einmalige Referral-Gutschrift",
'CHOOSE_MORE_CATEGORIES' => "Bitte wählen Sie mehr Kategorien aus! Minimum ist: <span class=\"data\">{?least_cats?}</span>",
- 'ADMIN_CONFIG_REJECT_DOUBLE_EMAIL' => "Doppelt angemeldete Email-Adressen ablehnen?",
'ADMIN_EDIT_POINTS' => "Willkommensgutschrift und andere Festbeträge editieren",
// Referral levels (admin/generic)
'ADMIN_CONFIG_CHECK_EMAIL_SUBJECT' => "Sind URLs in der Betreffzeile erlaubt?",
'ADMIN_CONFIG_ORDER_NOTICE' => "Das Auswahlverfahren von Mailempfängern wirkt sich nur auf kleinere Buchungen - mit weniger Empfänger als maximal möglich - aus.",
'ADMIN_CONFIG_ORDER_MULTI_PAGE' => "Soll die Mailbuchungsseite in mehrere aufgeteilt werden? Dies erlaubt den Versand nach Postleitzahl zum Bespielt.",
+ 'ADMIN_CONFIG_AUTOSEND_MEMBER_MAILS' => "Ist der Auto-Versand aktiviert?",
// Admin config - repay options
'ADMIN_CONFIG_REPAY_POINTS_REPAY' => "Dem Mitglied wieder gutschreiben",
// Language constans
addMessages(array(
+ // Admin - configuration
'ADMIN_CONFIG_OTHER_TITLE' => "Sonstige Einstellungen",
'ADMIN_CONFIG_URL_TIME_LOCK' => "Selbe beworbene URL nicht mehr bewerbar (0 = URL sofort erneut buchbar)",
'ADMIN_CONFIG_POOL_MAX_SEND' => "Anzahl zu sendender Mails aus dem Pool",
- 'ADMIN_CONFIG_AUTOSEND_ACTIVE' => "Ist der Auto-Versand aktiviert?",
'ADMIN_CONFIG_NOTIFY_ADMIN' => "Benachrichtigung bei Profiländerung?",
'ADMIN_CONFIG_MAX_ONLINETIME' => "Timeout für Who-is-Online",
'ADMIN_CONFIG_SENDING_TITLE' => "Versand-Optionen",
'ADMIN_CONFIG_INTERNAL_STATS_ENABLED' => "Sollen die internen Statistiken eingeschaltet sein? Das Abschalten dieser Statistiken kann etwas Performance bringen, ist aber für Performancemessungen vorraussetzend.",
'ADMIN_CONFIG_WORD_WRAP' => "Allgemeiner Zeilenumbruch",
'ADMIN_CONFIG_OTHER_NOTICE' => "<strong>Hinweise:</strong> Der allgemeine Zeilenumbruch (in Zeichen angegeben) gilt als Fallback-Einstellung falls der für die Erweiterung spezielle Konfigurationseintrag fehlen sollte. Falls Sie Details wissen wollen, so schauen Sie bitte in der Funktion <strong>getWordWrap()</strong> im Script <strong>inc/wrapper-functions.php</strong> nach.",
+ 'ADMIN_CONFIG_REJECT_DOUBLE_EMAIL' => "Doppelt angemeldete Email-Adressen ablehnen?",
));
// [EOF]
'ADMIN_CONFIG_REGISTER_TITLE' => "Einstellungen am Anmeldeformular",
'ADMIN_CONFIG_LEAST_CATEGORIES' => "Mindestens auszuwählende Kategorieanzahl",
'ADMIN_CONFIG_REGISTER_GENERATE_PASSWORD_EMPTY' => "Soll bei leergelassenem Passwort in der Anmeldung eines per Zufall generiert werden?",
- 'ADMIN_CONFIG_REJECT_DOUBLE_EMAIL' => "Doppelt angemeldete Email-Adressen ablehnen?",
'GUEST_EMAIL_IS_ALREADY_REGISTERED' => "Sie haben sich bereits mit dieser Email-Adresse angemeldet, oder jemand anderes verwendet Ihre. Doppelte Anmeldungen sind bei uns verboten.",
'PRE_USER_REGISTRATION_FAILED' => "Anmeldung fehlgeschlagen: Pre-Filterkette nicht gelaufen! Bitte melden Sie dies beim zuständigen Webmaster.",
return $GLOBALS[__FUNCTION__];
}
+// Getter for 'autosend_member_mails' config entry
+function getAutosendMemberMails () {
+ // Is there cache?
+ if (!isset($GLOBALS[__FUNCTION__])) {
+ // Determine it
+ $GLOBALS[__FUNCTION__] = getConfig('autosend_member_mails');
+ } // END - if
+
+ // Return cache
+ return $GLOBALS[__FUNCTION__];
+}
+
+// Determines whether 'autosend_member_mails' is set to 'Y'
+function isAutosendMemberMailsEnabled () {
+ // Is there cache?
+ if (!isset($GLOBALS[__FUNCTION__])) {
+ // Determine it
+ $GLOBALS[__FUNCTION__] = (getAutosendMemberMails() == 'Y');
+ } // END - if
+
+ // Return cache
+ return $GLOBALS[__FUNCTION__];
+}
+
+// Getter for 'order_max_full' config entry
+function getOrderMaxFull () {
+ // Is there cache?
+ if (!isset($GLOBALS[__FUNCTION__])) {
+ // Determine it
+ $GLOBALS[__FUNCTION__] = getConfig('order_max_full');
+ } // END - if
+
+ // Return cache
+ return $GLOBALS[__FUNCTION__];
+}
+
// Getter for 'order_mode' config entry
function getOrderMode () {
// Is there cache?
return $GLOBALS[__FUNCTION__];
}
+// Getter for 'max_unconfirmed' config entry
+function getMaxUnconfirmed () {
+ // Is there cache?
+ if (!isset($GLOBALS[__FUNCTION__])) {
+ // Determine it
+ $GLOBALS[__FUNCTION__] = getConfig('max_unconfirmed');
+ } // END - if
+
+ // Return cache
+ return $GLOBALS[__FUNCTION__];
+}
+
+// Getter for 'max_text_length' config entry
+function getMaxTextLenngth () {
+ // Is there cache?
+ if (!isset($GLOBALS[__FUNCTION__])) {
+ // Determine it
+ $GLOBALS[__FUNCTION__] = getConfig('max_text_length');
+ } // END - if
+
+ // Return cache
+ return $GLOBALS[__FUNCTION__];
+}
+
// [EOF]
?>
return $GLOBALS[__FUNCTION__];
}
+// "Getter" for max_send
+function getMaxSend () {
+ // Is there cache?
+ if (!isset($GLOBALS[__FUNCTION__])) {
+ // Determine it
+ $GLOBALS[__FUNCTION__] = getConfig('max_send');
+ } // END - if
+
+ // Return cache
+ return $GLOBALS[__FUNCTION__];
+}
+
+// Getter for 'check_double_email'
+function getCheckDoubleEmail () {
+ // Is the cache entry set?
+ if (!isset($GLOBALS[__FUNCTION__])) {
+ // No, so determine it
+ $GLOBALS[__FUNCTION__] = getConfig('check_double_email');
+ } // END - if
+
+ // Return cached entry
+ return $GLOBALS[__FUNCTION__];
+}
+
+// Checks whether 'check_double_email' is 'Y'
+function isCheckDoubleEmailEnabled () {
+ // Is the cache entry set?
+ if (!isset($GLOBALS[__FUNCTION__])) {
+ // No, so determine it
+ $GLOBALS[__FUNCTION__] = (getCheckDoubleEmail() == 'Y');
+ } // END - if
+
+ // Return cached entry
+ return $GLOBALS[__FUNCTION__];
+}
+
+// "Getter" for activate_xchange
+function getActivateXchange () {
+ // Is there cache?
+ if (!isset($GLOBALS[__FUNCTION__])) {
+ // Determine it
+ $GLOBALS[__FUNCTION__] = getConfig('activate_xchange');
+ } // END - if
+
+ // Return cache
+ return $GLOBALS[__FUNCTION__];
+}
+
// [EOF]
?>
//* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'isOkay=' . intval($isOkay) . ',selected=' . $GLOBALS['registration_selected_cats'] . '/' . getLeastCats());
$isOkay = (($isOkay) && ($GLOBALS['registration_selected_cats'] >= getLeastCats()));
- if ((postRequestElement('email') != '!') && (isCheckDoubleEmailEnabled())) {
- // Does the email address already exists in our database?
- if ((isEmailTaken(postRequestElement('email'))) && (!isAdmin())) {
- setPostRequestElement('email', '?');
- //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'User did enter a already used email address.');
- $isOkay = FALSE;
- } // END - if
+ // Check if email is taken, if configured
+ if ((isExtensionInstalledAndNewer('other', '0.3.0')) && (isCheckDoubleEmailEnabled()) && (postRequestElement('email') != '!') && (isEmailTaken(postRequestElement('email'))) && (!isAdmin())) {
+ // Is already used
+ setPostRequestElement('email', '?');
+ //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'User did enter a already used email address.');
+ $isOkay = FALSE;
} // END - if
// Check for IP timeout?
return $GLOBALS[__FUNCTION__];
}
-// Checks whether 'display_refid' is "YES"
+// Checks whether 'display_refid' is "Y"
function isDisplayRefidEnabled () {
// Is the cache entry set?
if (!isset($GLOBALS[__FUNCTION__])) {
return $GLOBALS[__FUNCTION__];
}
+// "Getter" for least_cats
+function getLeastCats () {
+ // Is there cache?
+ if (!isset($GLOBALS[__FUNCTION__])) {
+ // Determine it
+ $GLOBALS[__FUNCTION__] = getConfig('least_cats');
+ } // END - if
+
+ // Return cache
+ return $GLOBALS[__FUNCTION__];
+}
+
// ----------------------------------------------------------------------------
// Template helper functions
// ----------------------------------------------------------------------------
// Data was submitted so we store it
adminSaveSettingsFromPostData();
} else {
- // Output de-/activation selections
- $content['ap_inactive_selection'] = addSelectionBox('yn', getAutopurgeInactive() , 'autopurge_inactive');
- $content['ap_unconfirmed_selection'] = addSelectionBox('yn', getConfig('autopurge_unconfirmed'), 'autopurge_unconfirmed');
- $content['ap_tasks_selection'] = addSelectionBox('yn', getConfig('autopurge_tasks') , 'autopurge_tasks');
- $content['ap_del_mails_selection'] = addSelectionBox('yn', getConfig('ap_del_mails') , 'ap_del_mails');
-
- // Output notification selections
- $content['ap_notify_inactive'] = addSelectionBox('yn', getConfig('ap_in_notify') , 'ap_in_notify');
- $content['ap_notify_unconfirmed'] = addSelectionBox('yn', getConfig('ap_un_notify') , 'ap_un_notify');
- $content['ap_notify_tasks'] = addSelectionBox('yn', getConfig('ap_tasks_notify'), 'ap_tasks_notify');
- $content['ap_notify_del_mails'] = addSelectionBox('yn', getConfig('ap_dm_notify') , 'ap_dm_notify');
-
// Output time selection boxes
$content['ap_in_since'] = createConfigurationTimeSelections('ap_inactive_since' , 'MWDh');
$content['ap_in_time'] = createConfigurationTimeSelections('ap_inactive_time' , 'MWDh');
// Calculate stamps and set calculated stamps
setPostRequestElement('online_timeout' , createEpocheTimeFromSelections('online_timeout' , postRequestArray()));
setPostRequestElement('url_tlock' , createEpocheTimeFromSelections('url_tlock' , postRequestArray()));
- setPostRequestElement('profile_lock' , createEpocheTimeFromSelections('profile_lock' , postRequestArray()));
// Online-Timeout shall be > 0 or your database will crow and crow and crow...
if (!isPostRequestElementSet('online_timeout')) { unsetPostRequestElement('ok'); }
// Chedck other timestamps (which can be zero!)
- if (!isPostRequestElementSet('profile_lock')) { unsetPostRequestElement('ok'); }
if (!isPostRequestElementSet('url_tlock')) { unsetPostRequestElement('ok'); }
// Check other settings
// Time selection boxes
$content['online_timeout'] = createConfigurationTimeSelections('online_timeout' , 'ms');
$content['url_tlock'] = createConfigurationTimeSelections('url_tlock' , 'WDh');
- $content['profile_lock'] = createConfigurationTimeSelections('profile_lock' , 'WDh');
// Prepare more
foreach (array('css_php_direct','css_php_file','css_php_inline','mailid_error_redirect_index','mailid_error_redirect_reject') as $entry) {
adminSaveSettingsFromPostData();
} else {
// Remember stuff in constants
- $content['display_refid'] = addSelectionBox('yn', getDisplayRefid() , 'display_refid');
- $content['ip_timeout'] = createConfigurationTimeSelections('ip_timeout', 'Dhm');
- $content['check_double_email'] = addSelectionBox('yn', getCheckDoubleEmail() , 'check_double_email');
- $content['register_default'] = addSelectionBox('yn', getRegisterDefault() , 'register_default');
- $content['register_generate_password_empty'] = addSelectionBox('yn', getRegisterGeneratePasswordEmpty(), 'register_generate_password_empty');
+ $content['ip_timeout'] = createConfigurationTimeSelections('ip_timeout', 'Dhm');
// Load normal template
loadTemplate('admin_config_register2', FALSE, $content);
// Save settings
adminSaveSettingsFromPostData();
} else {
- // Remember config data in constants for the template
- $content['enable_title_deco'] = addSelectionBox('yn', getConfig('enable_title_deco'), 'enable_title_deco');
- $content['enable_mod_title'] = addSelectionBox('yn', getConfig('enable_mod_title') , 'enable_mod_title' );
- $content['enable_what_title'] = addSelectionBox('yn', getConfig('enable_what_title'), 'enable_what_title');
-
// Load template
- loadTemplate('admin_config_title', FALSE, $content);
+ loadTemplate('admin_config_title');
}
// [EOF]
if (getConfig('mad_count') < $total) {
// Update counter
- updateConfiguration(array('mad_timestamp', 'mad_count'), array(time(), $total));
+ updateConfiguration(array('mad_timestamp', 'mad_count'), array('UNIX_TIMESTAMP()', $total));
} // END - if
// Prepare content
} elseif ((!isEmailValid(postRequestElement('email'))) && (!isAdmin())) {
// Invalid email address!
displayMessage('{--INVALID_EMAIL_ENTERED--}');
- } elseif ((isEmailTaken(postRequestElement('email'))) && (isCheckDoubleEmailEnabled()) && (!isAdmin())) {
+ } elseif ((isExtensionInstalledAndNewer('other', '0.3.0')) && (isCheckDoubleEmailEnabled()) && (!isAdmin()) && (isEmailTaken(postRequestElement('email')))) {
// Email address is already registered
displayMessage('{--MEMBER_EMAIL_IS_ALREADY_REGISTERED--}');
} else {
);
$ALLOWED = getUserData('receive_mails') - getUserData('mail_orders');
-if (getConfig('order_max_full') == 'MAX') $ALLOWED = getUserData('receive_mails');
+if (getOrderMaxFull() == 'MAX') $ALLOWED = getUserData('receive_mails');
// Now check his points amount
$totalPoints = getTotalPoints(getMemberId());
// Continue with the frametester, we first need to store the data temporary in the pool
//
// First we would like to store the data and get it's pool position back...
+ // @TODO Try to move out url_tlock to a filter for extra SQL statements
$result = SQL_QUERY_ESC("SELECT
`id`,
`data_type`
$TEST = str_replace(array(PHP_EOL, chr(13)), array('', ''), postRequestElement('text'));
// Text length within allowed length?
- if (strlen($TEST) > getConfig('max_tlength')) {
+ if (strlen($TEST) > getMaxTextLength()) {
// Text is too long!
$data['url'] = 'modules.php?module=login&what=order&code=' . getCode('OVERLENGTH');
} // END - if
} elseif (postRequestElement('receiver') == '0') {
// Not enougth receivers selected
$data['url'] = 'modules.php?module=login&what=order&code=' . getCode('MORE_RECEIVERS1');
-} elseif (($ALLOWED == '0') && (getConfig('order_max_full') == 'ORDER')) {
+} elseif (($ALLOWED == '0') && (getOrderMaxFull() == 'ORDER')) {
// No more mail orders allowed
displayMessage('{--MEMBER_ORDER_ALLOWED_EXHAUSTED--}');
-} elseif (getTotalUnconfirmedMails(getMemberId()) < getConfig('unconfirmed')) {
+} elseif (getTotalUnconfirmedMails(getMemberId()) < getConfig('max_unconfirmed')) {
// Show only enabled categories to the user ...
$whereStatement = " WHERE `visible`='Y'";
SQL_FREERESULT($result_cats);
// Now we need to load the mail types...
- $result = SQL_QUERY("SELECT `id`, `price`, `payment`, `mail_title` FROM `{?_MYSQL_PREFIX?}_payments` ORDER BY `payment` ASC", __FILE__, __LINE__);
+ $result = SQL_QUERY("SELECT `id`, `price`, `payment`, `mail_title` FROM `{?_MYSQL_PREFIX?}_payments` WHERE `price` > 0 AND `payment` > 0 ORDER BY `payment` ASC", __FILE__, __LINE__);
$payments = array();
if (!SQL_HASZERONUMS($result)) {
$content['total_points'] = $totalPoints;
// Check how many mail orders he has placed today and how many he's allowed to send
- switch (getConfig('order_max_full')) {
+ switch (getOrderMaxFull()) {
case 'MAX': // He is allowed to send as much as possible
$content['order_max_full'] = '{--MEMBER_ORDER_ALLOWED_MAX--}';
break;
break;
default: // Unknown/invalid
- logDebugMessage(__FILE__, __LINE__, sprintf("Unknown order_mas_full config detected.", getConfig('order_max_full')));
+ logDebugMessage(__FILE__, __LINE__, sprintf("Unknown order_mas_full config detected.", getOrderMaxFull()));
$content['order_max_full'] = '{--MEMBER_ORDER_ALLOWED_UNKNOWN--}';
break;
} // END - switch
$type = 'ADMIN';
// Is the auto-send mechanism active or inactive?
- if (getConfig('autosend_active') == 'Y') {
+ if (isAutosendMemberMailsEnabled()) {
// Auto-send is active
$content['admin_autosend'] = '{--ADMIN_AUTOSEND_ACTIVE--}';
$content['member_autosend'] = '{--MEMBER_AUTOSEND_ACTIVE--}';
// Update used points
$add = '';
- if ((isExtensionInstalledAndNewer('order', '0.1.1')) && (getConfig('order_max_full') == 'ORDER')) {
+ if ((isExtensionInstalledAndNewer('order', '0.1.1')) && (getOrderMaxFull() == 'ORDER')) {
$add = ',`mail_orders`=`mail_orders`+1';
} // END - if
if ((isResetModeEnabled()) || (!isHtmlOutputMode())) {
// Skip here
return FALSE;
-} elseif (!isExtensionActive('bonus')) {
- // Abort if extension bonus is not active
+} elseif ((!isExtensionActive('bonus')) || (!isExtensionActive('other'))) {
+ // Abort if extension bonus/other are not active
return FALSE;
}
if ((isResetModeEnabled()) || (!isHtmlOutputMode())) {
// Skip here
return FALSE;
-} elseif (!isExtensionActive('user')) {
- // Abort here if extension user is not active
+} elseif ((!isExtensionActive('user')) || (!isExtensionActive('other'))) {
+ // Abort here if extension user/other are not active
return FALSE;
}
} // END - switch
} // END - if
- // Is there reached the maximum to send mails? || (getConfig('max_send') >= $GLOBALS['pool_cnt'])
- //* DEBUG: */ debugOutput('*L:'.__LINE__.'/'.$GLOBALS['pool_cnt'].'>='.$mailData['target_send'].'/'.getConfig('max_send').'>='.$GLOBALS['pool_cnt'].'/'.$lastSentId.'!='.$mailData['id'].'*');
+ // Is there reached the maximum to send mails? || (getMaxSend() >= $GLOBALS['pool_cnt'])
+ //* DEBUG: */ debugOutput('*L:'.__LINE__.'/'.$GLOBALS['pool_cnt'].'>='.$mailData['target_send'].'/'.getMaxSend().'>='.$GLOBALS['pool_cnt'].'/'.$lastSentId.'!='.$mailData['id'].'*');
if ((($GLOBALS['pool_cnt'] >= $mailData['target_send'])) && ($lastSentId != $mailData['id'])) {
// Prepare content
$content = array(
break;
}
// Is there send maximum mails?
- elseif (($GLOBALS['pool_cnt'] >= getConfig('max_send')) || ($count2 >= getConfig('max_send'))) {
+ elseif (($GLOBALS['pool_cnt'] >= getMaxSend()) || ($count2 >= getMaxSend())) {
// There are some mails left to send for next round, so we reset the status back to NEW (=still not fully delivered)
$add = '';
if ($GLOBALS['pool_cnt'] <= $mailData['target_send']) $add = ',`target_send`=`target_send`-' . $GLOBALS['pool_cnt'];
// Is there cache?
if (!isset($GLOBALS[__FUNCTION__])) {
// Determine it
- $GLOBALS[__FUNCTION__] = (getConfig('admin_notify') == 'Y');
+ $GLOBALS[__FUNCTION__] = ((isExtensionInstalledAndNewer('other', '0.3.0')) && (getConfig('admin_notify') == 'Y'));
} // END - if
// Return cache
return $GLOBALS[__FUNCTION__];
}
-// "Getter" for activate_xchange
-function getActivateXchange () {
- // Is there cache?
- if (!isset($GLOBALS[__FUNCTION__])) {
- // Determine it
- $GLOBALS[__FUNCTION__] = getConfig('activate_xchange');
- } // END - if
-
- // Return cache
- return $GLOBALS[__FUNCTION__];
-}
-
// "Getter" for img_type
function getImgType () {
// Is there cache?
return $GLOBALS[__FUNCTION__];
}
-// "Getter" for least_cats
-function getLeastCats () {
- // Is there cache?
- if (!isset($GLOBALS[__FUNCTION__])) {
- // Determine it
- $GLOBALS[__FUNCTION__] = getConfig('least_cats');
- } // END - if
-
- // Return cache
- return $GLOBALS[__FUNCTION__];
-}
-
// "Getter" for pass_len
function getPassLen () {
// Is there cache?
return $GLOBALS[__FUNCTION__];
}
-// "Getter" for max_send
-function getMaxSend () {
- // Is there cache?
- if (!isset($GLOBALS[__FUNCTION__])) {
- // Determine it
- $GLOBALS[__FUNCTION__] = getConfig('max_send');
- } // END - if
-
- // Return cache
- return $GLOBALS[__FUNCTION__];
-}
-
// "Getter" for mails_page
function getMailsPage () {
// Is there cache?
return $GLOBALS[__FUNCTION__];
}
-// Getter for 'check_double_email'
-function getCheckDoubleEmail () {
- // Is the cache entry set?
- if (!isset($GLOBALS[__FUNCTION__])) {
- // No, so determine it
- $GLOBALS[__FUNCTION__] = getConfig('check_double_email');
- } // END - if
-
- // Return cached entry
- return $GLOBALS[__FUNCTION__];
-}
-
-// Checks whether 'check_double_email' is 'Y'
-function isCheckDoubleEmailEnabled () {
- // Is the cache entry set?
- if (!isset($GLOBALS[__FUNCTION__])) {
- // No, so determine it
- $GLOBALS[__FUNCTION__] = (getCheckDoubleEmail() == 'Y');
- } // END - if
-
- // Return cached entry
- return $GLOBALS[__FUNCTION__];
-}
-
// Getter for 'display_home_in_index'
function getDisplayHomeInIndex () {
// Is the cache entry set?
`pass_len` TINYINT(3) UNSIGNED NOT NULL DEFAULT 5,
`points_register` BIGINT(20) UNSIGNED NOT NULL DEFAULT 0,
`points_ref` BIGINT(20) UNSIGNED NOT NULL DEFAULT 0,
- `least_cats` TINYINT(3) UNSIGNED NOT NULL DEFAULT 5,
- `check_double_email` ENUM('Y','N') NOT NULL DEFAULT 'Y',
- `admin_notify` ENUM('Y','N') NOT NULL DEFAULT 'Y',
`url_tlock` BIGINT(20) UNSIGNED NOT NULL DEFAULT 86400,
- `max_tlength` BIGINT(20) UNSIGNED NOT NULL DEFAULT 1000,
- `autosend_active` ENUM('Y','N') NOT NULL DEFAULT 'N',
- `max_send` TINYINT(3) UNSIGNED NOT NULL DEFAULT 100,
- `auto_purge` TINYINT(3) UNSIGNED NOT NULL DEFAULT 14,
- `auto_purge_active` ENUM('Y','N') NOT NULL DEFAULT 'Y',
- `last_daily` VARCHAR(10) NOT NULL DEFAULT '0',
- `unconfirmed` BIGINT(20) UNSIGNED NOT NULL DEFAULT 100,
- `profile_lock` BIGINT(20) UNSIGNED NOT NULL DEFAULT 86400,
`online_timeout` BIGINT(20) UNSIGNED NOT NULL DEFAULT 1800,
`mad_timestamp` BIGINT(20) UNSIGNED NOT NULL DEFAULT 0,
`mad_count` BIGINT(20) UNSIGNED NOT NULL,
`patch_ctime` VARCHAR(10) NOT NULL DEFAULT '0',
`guest_stats` ENUM('MEMBERS','MODULES','INACTIVE') NOT NULL DEFAULT 'MEMBERS',
`ref_payout` TINYINT(3) UNSIGNED NOT NULL DEFAULT 5,
- `activate_xchange` BIGINT(20) UNSIGNED NOT NULL DEFAULT 100,
- `display_refid` ENUM('Y','N') NOT NULL DEFAULT 'Y',
- `ip_timeout` BIGINT(20) UNSIGNED NOT NULL DEFAULT 86400,
`allow_direct_pay` ENUM('Y','N') NOT NULL DEFAULT 'N',
PRIMARY KEY (`config`)
) ENGINE = {?_TABLE_TYPE?} CHARACTER SET utf8 COLLATE utf8_general_ci COMMENT 'Configuration';
<div class="table_row">
<label class="admin_label" for="autopurge_inactive">{--ADMIN_CONFIG_AUTOPURGE_INACTIVE--}</label>
- <div align="center">$content[ap_inactive_selection]</div>
+ <div align="center">{%template,ConfigurationYesNoSelectionBox=ap_inactive_selection%}</div>
</div>
<div class="table_row">
<div class="table_row">
<label class="admin_label" for="autopurge_unconfirmed">{--ADMIN_CONFIG_AUTOPURGE_UNCONFIRMED--}</label>
- <div align="center">$content[ap_unconfirmed_selection]</div>
+ <div align="center">{%template,ConfigurationYesNoSelectionBox=ap_unconfirmed_selection%}</div>
</div>
<div class="table_row">
<div class="table_row">
<label class="admin_label" for="autopurge_tasks">{--ADMIN_CONFIG_AUTOPURGE_TASKS--}</label>
- <div align="center">$content[ap_tasks_selection]</div>
+ <div align="center">{%template,ConfigurationYesNoSelectionBox=ap_tasks_selection%}</div>
</div>
<div class="table_row">
<div class="table_row">
<label class="admin_label" for="ap_notify_del_mails">{--ADMIN_CONFIG_AUTOPURGE_NOTIFY_DELETE_MAILS--}</label>
- <div align="center">$content[ap_notify_del_mails]</div>
+ <div align="center">{%template,ConfigurationYesNoSelectionBox=ap_notify_del_mails%}</div>
</div>
</fieldset>
<div class="table_row">
<label class="admin_label" for="ap_del_mails">{--ADMIN_CONFIG_AUTOPURGE_DELETE_MAILS--}</label>
- <div align="center">$content[ap_del_mails_selection]</div>
+ <div align="center">{%template,ConfigurationYesNoSelectionBox=ap_del_mails_selection%}</div>
</div>
<div class="table_row">
<div class="table_row">
<label class="admin_label" for="ap_notify_inactive">{--ADMIN_CONFIG_AUTOPURGE_NOTIFY_INACTIVE--}</label>
- <div align="center">$content[ap_notify_inactive]</div>
+ <div align="center">{%template,ConfigurationYesNoSelectionBox=ap_notify_inactive%}</div>
</div>
<div class="table_row">
<label class="admin_label" for="ap_notify_unconfirmed">{--ADMIN_CONFIG_AUTOPURGE_NOTIFY_UNCONFIRMED--}</label>
- <div align="center">$content[ap_notify_unconfirmed]</div>
+ <div align="center">{%template,ConfigurationYesNoSelectionBox=ap_notify_unconfirmed%}</div>
</div>
<div class="table_row">
<label class="admin_label" for="ap_notify_tasks">{--ADMIN_CONFIG_AUTOPURGE_NOTIFY_TASKS--}</label>
- <div align="center">$content[ap_notify_tasks]</div>
+ <div align="center">{%template,ConfigurationYesNoSelectionBox=ap_notify_tasks%}</div>
</div>
</fieldset>
<legend>{--ADMIN_CONFIG_ORDER_MEMBER_LEGEND--}</legend>
<div class="table_row">
- <label class="admin_label" for="unconfirmed">{--ADMIN_CONFIG_MAX_UNCONFIRMED_MAILS--}</label>
+ <label class="admin_label" for="max_unconfirmed">{--ADMIN_CONFIG_MAX_UNCONFIRMED_MAILS--}</label>
<div align="center">
- <input type="text" class="form_field" name="unconfirmed" size="10" maxlength="10" value="{?unconfirmed?}" />
+ <input type="text" class="form_field" name="max_unconfirmed" size="10" maxlength="10" value="{?max_unconfirmed?}" />
</div>
</div>
<div class="table_row">
- <label class="admin_label" for="max_tlength">{--ADMIN_CONFIG_MAX_TEXT_LENGTH--}</label>
+ <label class="admin_label" for="max_text_length">{--ADMIN_CONFIG_MAX_TEXT_LENGTH--}</label>
<div align="center">
- <input type="text" class="form_field" name="max_tlength" size="10" maxlength="100" value="{?max_tlength?}" />
+ <input type="text" class="form_field" name="max_text_length" size="10" maxlength="100" value="{?max_text_length?}" />
</div>
</div>
<input type="input" class="form_field" name="order_min" value="{?order_min?}" size="5" maxlength="20" />
</div>
</div>
+
+ <div class="table_row">
+ <label class="admin_label" for="autosend_member_mails">{--ADMIN_CONFIG_AUTOSEND_MEMBER_MAILS--}</label>
+ <div align="center">
+ {%template,ConfigurationYesNoSelectionBox=autosend_member_mails%}
+ </div>
+ </div>
</fieldset>
<div class="table_footer top">
</td>
</tr>
+ <tr>
+ <td align="right">
+ {--ADMIN_CONFIG_REJECT_DOUBLE_EMAIL--}
+ </td>
+ <td align="center">
+ {%template,ConfigurationYesNoSelectionBox=check_double_email%}
+ </td>
+ </tr>
+
<tr>
<td class="bottom" align="right">
{--ADMIN_CONFIG_WORD_WRAP--}:
</td>
</tr>
- <tr>
- <td align="right">
- {--ADMIN_CONFIG_POOL_MAX_SEND--}:
- </td>
- <td align="center">
- <input type="text" class="form_field" name="max_send" size="10" maxlength="100" value="{?max_send?}" />
- </td>
- </tr>
-
<tr>
<td class="bottom" align="right">
- {--ADMIN_CONFIG_AUTOSEND_ACTIVE--}
+ {--ADMIN_CONFIG_POOL_MAX_SEND--}:
</td>
<td class="bottom" align="center">
- {%template,ConfigurationYesNoSelectionBox=autosend_active%}
+ <input type="text" class="form_field" name="max_send" size="10" maxlength="100" value="{?max_send?}" />
</td>
</tr>
<strong>{--ADMIN_CONFIG_REGISTER_TITLE--}</strong>
</td>
</tr>
+
<tr>
<td align="right" width="250">{--ADMIN_CONFIG_LEAST_CATEGORIES--}:</td>
<td align="center" width="150">
<input type="text" class="form_field" name="least_cats" size="6" maxlength="6" value="{?least_cats?}" />
</td>
</tr>
+
<tr>
<td align="right" width="250">{--ADMIN_CONFIG_REGISTER_DEFAULT--}:</td>
- <td align="center" width="150">$content[register_default]</td>
+ <td align="center" width="150">{%template,ConfigurationYesNoSelectionBox=register_default%}</td>
</tr>
+
<tr>
<td align="right">{--ADMIN_CONFIG_REGISTER_DISPLAY_REFID--}:</td>
- <td align="center">$content[display_refid]</td>
+ <td align="center">{%template,ConfigurationYesNoSelectionBox=display_refid%}</td>
</tr>
+
<tr>
<td align="right">{--ADMIN_CONFIG_REGISTER_IP_TIMEOUT--}:</td>
<td align="center">$content[ip_timeout]</td>
</tr>
- <tr>
- <td align="right" width="280">{--ADMIN_CONFIG_REJECT_DOUBLE_EMAIL--}</td>
- <td align="center">$content[check_double_email]</td>
- </tr>
+
<tr>
<td class="bottom" align="right" width="280">{--ADMIN_CONFIG_REGISTER_GENERATE_PASSWORD_EMPTY--}</td>
- <td class="bottom" align="center">$content[register_generate_password_empty]</td>
+ <td class="bottom" align="center">{%template,ConfigurationYesNoSelectionBox=register_generate_password_empty%}</td>
</tr>
+
<tr>
<td class="table_footer" colspan="2" align="center">
<input type="reset" class="form_reset" value="{--CLEAR_FORM--}" />
<legend>{--ADMIN_CONFIG_TITLE_LEGEND--}</legend>
<div class="table_row">
<label class="admin_label" for="enable_title_deco">{--ADMIN_CONFIG_TITLE_ENABLE_DECORATIONS--}:</label>
- <div align="center">$content[enable_title_deco]</div>
+ <div align="center">{%template,ConfigurationYesNoSelectionBox=enable_title_deco%}</div>
</div>
<div class="table_row">
<label class="admin_label" for="enable_mod_title">{--ADMIN_CONFIG_TITLE_ENABLE_MODULE_TITLE--}:</label>
- <div align="center">$content[enable_mod_title]</div>
+ <div align="center">{%template,ConfigurationYesNoSelectionBox=enable_mod_title%}</div>
</div>
<div class="table_row">
<label class="admin_label" for="enable_what_title">{--ADMIN_CONFIG_TITLE_ENABLE_WHAT_TITLE--}:</label>
- <div align="center">$content[enable_what_title]</div>
+ <div align="center">{%template,ConfigurationYesNoSelectionBox=enable_what_title%}</div>
</div>
</fieldset>