More rewrites to configuration:
authorRoland Häder <roland@mxchange.org>
Wed, 23 Jan 2013 01:10:11 +0000 (01:10 +0000)
committerRoland Häder <roland@mxchange.org>
Wed, 23 Jan 2013 01:10:11 +0000 (01:10 +0000)
- Moved more configuration entries from tables.sql to proper extensions
- Moved some configuration from/to ext-other to/from ext-foo
- Swapped out 'update' step for ext-register
- TODOs.txt updated

37 files changed:
.gitattributes
DOCS/TODOs.txt
inc/extensions/ext-autopurge.php
inc/extensions/ext-order.php
inc/extensions/ext-other.php
inc/extensions/ext-profile.php
inc/extensions/ext-register.php
inc/extensions/order/mode-update.php
inc/extensions/register/.htaccess [new file with mode: 0644]
inc/extensions/register/mode-update.php [new file with mode: 0644]
inc/extensions/sql_patches/mode-update.php
inc/extensions/user/mode-setup.php
inc/filters.php
inc/language/de.php
inc/language/order_de.php
inc/language/other_de.php
inc/language/register_de.php
inc/libs/order_functions.php
inc/libs/other_functions.php
inc/libs/register_functions.php
inc/modules/admin/what-config_autopurge.php
inc/modules/admin/what-config_other.php
inc/modules/admin/what-config_register2.php
inc/modules/admin/what-config_title.php
inc/modules/guest/action-online.php
inc/modules/member/what-mydata.php
inc/modules/member/what-order.php
inc/modules/order.php
inc/pool/pool-bonus.php
inc/pool/pool-user.php
inc/wrapper-functions.php
install/tables.sql
templates/de/html/admin/admin_config_autopurge.tpl
templates/de/html/admin/admin_config_order.tpl
templates/de/html/admin/admin_config_other.tpl
templates/de/html/admin/admin_config_register2.tpl
templates/de/html/admin/admin_config_title.tpl

index 5bfeb9730b0ce4153e9ac82f428831fcbdabfa55..58b7ba4876d42cf552470f505a6b7d58da6393dc 100644 (file)
@@ -252,6 +252,8 @@ inc/extensions/network/.htaccess svneol=native#text/plain
 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/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/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
index cc00330e31bb9a981f793a9d7ad31d9594f8bacd..265b12d2427c00ec2c4343001ccaf16afcadebf0 100644 (file)
@@ -59,6 +59,7 @@
 ./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/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/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/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: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-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/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-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&amp;what=impressum&amp;id=' . $content['admin_id'] . '%}">' . $content['login'] . '</a>';
 ./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&amp;what=impressum&amp;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: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/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
 ./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
index 8dba5bf256e5fd3d8f1ba0fbaca8c95dc1f140ba..317f1c7e1cfc13f9e61fa5c48c8c9fcccff6c819 100644 (file)
@@ -41,10 +41,10 @@ if (!defined('__SECURITY')) {
 } // END - if
 
 // Version number
 } // END - if
 
 // Version number
-setThisExtensionVersion('0.4.1');
+setThisExtensionVersion('0.4.2');
 
 // Version history array (add more with , '0.0.1' and so on)
 
 // 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');
 
 // Keep this extension always active!
 setExtensionAlwaysActive('Y');
@@ -263,6 +263,14 @@ switch (getExtensionMode()) {
                                // Update notes
                                setExtensionUpdateNotes("R&uuml;ckschriften bei Auto-L&ouml;schungen werden nun &uuml;ber die Tabelle <strong>{OPEN_CONFIG}_MYSQL_PREFIX{CLOSE_CONFIG}_points_data</strong> verwaltet.");
                                break;
                                // Update notes
                                setExtensionUpdateNotes("R&uuml;ckschriften bei Auto-L&ouml;schungen werden nun &uuml;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 - switch
                break;
 
index 77f9ac1016f10d9218b120b0760ef7288d32c39b..afb7dae362163494bf1ff18ba8a5e1d2641ef720 100644 (file)
@@ -41,10 +41,10 @@ if (!defined('__SECURITY')) {
 } // END - if
 
 // Version number
 } // END - if
 
 // Version number
-setThisExtensionVersion('0.5.8');
+setThisExtensionVersion('0.5.9');
 
 // Version history array (add more with , '0.0.1' and so on)
 
 // 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
 
 switch (getExtensionMode()) {
        case 'setup': // Do stuff when installation is running
index 7e3ebc75141ddcbaf81c97969450cfb882124707..a1c93e34165aaad39580bf5b912a02d123d83e81 100644 (file)
@@ -41,10 +41,10 @@ if (!defined('__SECURITY')) {
 } // END - if
 
 // Version number
 } // END - if
 
 // Version number
-setThisExtensionVersion('0.2.9');
+setThisExtensionVersion('0.3.0');
 
 // Version history array (add more with , '0.0.1' and so on)
 
 // 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');
 
 // Keep this extension always active!
 setExtensionAlwaysActive('Y');
@@ -255,6 +255,15 @@ switch (getExtensionMode()) {
                                // Update notes (these will be set as task text!)
                                setExtensionUpdateNotes("Anzahl Zeichen f&uuml;r <strong>wordwrap()</strong>-Aufruf hinzugef&uuml;gt.");
                                break;
                                // Update notes (these will be set as task text!)
                                setExtensionUpdateNotes("Anzahl Zeichen f&uuml;r <strong>wordwrap()</strong>-Aufruf hinzugef&uuml;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;
 
                } // END - switch
                break;
 
index 614a19a9936edb317fe635fab8fbd4569f450981..dbffdddf9b697a4aab8431dc9b65dcf0232d5bf5 100644 (file)
@@ -118,7 +118,9 @@ switch (getExtensionMode()) {
                                // 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'");
                                // 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('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&uuml;r Mitgliedprofile.',14);
 
                                // Admin menu
                                addAdminMenuSql('setup','config_profile','Mitgliedsprofile','Einstellungen f&uuml;r Mitgliedprofile.',14);
index e99a6fd9269b128aa4e027dfe83838575ca7dc1b..9282339313f941b69602622f74ba23d062b608d4 100644 (file)
@@ -41,10 +41,10 @@ if (!defined('__SECURITY')) {
 } // END - if
 
 // Version number
 } // END - if
 
 // Version number
-setThisExtensionVersion('0.5.7');
+setThisExtensionVersion('0.5.8');
 
 // Version history array (add more with , '0.0.1' and so on)
 
 // 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
 
 switch (getExtensionMode()) {
        case 'setup': // Do stuff when installation is running
@@ -79,288 +79,6 @@ switch (getExtensionMode()) {
                break;
 
        case 'update': // Update an extension
                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 &auml;ndern</strong> ein.', 12);
-
-                               // Update notes (these will be set as task text!)
-                               setExtensionUpdateNotes("Einstellbare Pflichtfelder hinzugef&uuml;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&auml;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&uuml;punkte im Gast-/Mitgliedsbereich k&ouml;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&auml;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 &quot;Solid-Business&quot; 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> &uuml;berfl&uuml;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 &quot;Firma&quot; hinzugef&uuml;gt.");
-                               break;
-
-                       case '0.3.0': // SQL queries for v0.3.0
-                               // Update notes (these will be set as task text!)
-                               setExtensionUpdateNotes("W&ouml;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&uuml;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&uuml;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&auml;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&uuml;tige Verkn&uuml;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&uuml; &uuml;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 &Auml;ndern des Templates <strong>templates/".getLanguage()."/html/guest/guest_register.tpl</strong> ist nicht mehr n&ouml;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&uuml;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&uuml;gt, weitere Felder in <span class=\"bad\">{?_MYSQL_PREFIX?}_must_register</span> eingef&uuml;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&uuml;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&uuml;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 &uuml;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
                break;
 
        case 'modify': // When the extension got modified
index c87577fa2ff0a3e8fa5c39c513e28fe54110878f..aef7ff19a12659fba6933ba536f44cc66298922c 100644 (file)
@@ -338,7 +338,19 @@ nicht die vom Mitglied eingegebene. Resultat: Das Script beschwerte sich, der Us
                                addConfigAddSql('order_multi_page', "ENUM('Y','N') NOT NULL DEFAULT 'Y'");
 
                                // Update notes (these will be set as task text!)
                                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&uuml;gt (vorher: allgemeine <strong>tables.sql</strong>).");
+                               setExtensionUpdateNotes("Konfiguration wird nun in dieser Erweiterung hinzugef&uuml;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&uuml;gt (vorher: allgemeine <strong>tables.sql</strong>).");
                                break;
                } // END - switch
 
                                break;
                } // END - switch
 
diff --git a/inc/extensions/register/.htaccess b/inc/extensions/register/.htaccess
new file mode 100644 (file)
index 0000000..3a42882
--- /dev/null
@@ -0,0 +1 @@
+Deny from all
diff --git a/inc/extensions/register/mode-update.php b/inc/extensions/register/mode-update.php
new file mode 100644 (file)
index 0000000..6809867
--- /dev/null
@@ -0,0 +1,337 @@
+<?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 &auml;ndern</strong> ein.', 12);
+
+                               // Update notes (these will be set as task text!)
+                               setExtensionUpdateNotes("Einstellbare Pflichtfelder hinzugef&uuml;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&auml;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&uuml;punkte im Gast-/Mitgliedsbereich k&ouml;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&auml;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 &quot;Solid-Business&quot; 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> &uuml;berfl&uuml;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 &quot;Firma&quot; hinzugef&uuml;gt.");
+                               break;
+
+                       case '0.3.0': // SQL queries for v0.3.0
+                               // Update notes (these will be set as task text!)
+                               setExtensionUpdateNotes("W&ouml;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&uuml;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&uuml;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&auml;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&uuml;tige Verkn&uuml;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&uuml; &uuml;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 &Auml;ndern des Templates <strong>templates/".getLanguage()."/html/guest/guest_register.tpl</strong> ist nicht mehr n&ouml;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&uuml;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&uuml;gt, weitere Felder in <span class=\"bad\">{?_MYSQL_PREFIX?}_must_register</span> eingef&uuml;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&uuml;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&uuml;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 &uuml;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 &uuml;ber die Tabelle <strong>{OPEN_CONFIG}_MYSQL_PREFIX{CLOSE_CONFIG}_points_data</strong> verwaltet.");
+                               break;
+               } // END - switch
+
+// [EOF]
+?>
index c362157f383f10c8d9ea1e84374810ea59fab517..88d866f998acedd4b70c056ad4a7fdb1da8fa847 100644 (file)
@@ -50,10 +50,8 @@ if (!defined('__SECURITY')) {
                                break;
 
                        case '0.0.2': // SQL queries for v0.0.2
                                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!)
                                // 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&ouml;schen von Best&auml;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.0.3': // SQL queries for v0.0.3
@@ -445,6 +443,7 @@ INDEX (`admin_id`)",
                                break;
 
                        case '0.4.5': // SQL queries for v0.4.5
                                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');
 
                                addConfigAddSql('last_weekly' , 'TINYINT(2) UNSIGNED ZEROFILL NOT NULL DEFAULT 00');
                                addConfigAddSql('last_monthly', 'TINYINT(2) UNSIGNED ZEROFILL NOT NULL DEFAULT 00');
 
@@ -696,8 +695,8 @@ INDEX (`ip`)",
                                break;
 
                        case '0.7.6': // SQL queries for v0.7.6
                                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.");
 
                                // Update notes (these will be set as task text!)
                                setExtensionUpdateNotes("Spaltentyp fuer kleine Zahlen sollten auch z.B. TINYINT sein.");
index a37d1cc13f38e8a1975d21c5e2166a7ec212d6e5..dd3df2fd4e170a4e31cb3cde33885531eba47cf7 100644 (file)
@@ -159,5 +159,8 @@ addAdminMenuSql('user', 'list_refs', 'Referrals anzeigen', 'Mit diesem Men&uuml;
 addAdminMenuSql('user', 'list_links', 'Unbest&auml;tigte Mails', 'Mit diesem Men&uuml;punkt k&ouml;nnen Sie die vom Mitglied nicht best&auml;tigten Mails anzeigen.', 8);
 addAdminMenuSql('user', 'list_user_cats', 'Kategorien anzeigen', 'Listet die ausgew&auml;hlten Kategorien eines Mitgliedes auf.', 9);
 
 addAdminMenuSql('user', 'list_links', 'Unbest&auml;tigte Mails', 'Mit diesem Men&uuml;punkt k&ouml;nnen Sie die vom Mitglied nicht best&auml;tigten Mails anzeigen.', 8);
 addAdminMenuSql('user', 'list_user_cats', 'Kategorien anzeigen', 'Listet die ausgew&auml;hlten Kategorien eines Mitgliedes auf.', 9);
 
+// Add dependency to ext-other as pool-user requires it
+addExtensionDependency('other');
+
 // [EOF]
 ?>
 // [EOF]
 ?>
index e1784f4691065f5af74fff932051b5538f47d158..c1e54c7c7de609f3f3dd569dc73e194c99ae71c9 100644 (file)
@@ -1222,8 +1222,8 @@ function FILTER_GENERATE_POOL_MAIL_LINKS ($filterData) {
 
 // Filter to activate exchange
 function FILTER_ACTIVATE_EXCHANGE () {
 
 // 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
                // Silently abort here
                return FALSE;
        } // END - if
index f68a739f07e854074a7ba47f1dc3dd9fd48f0196..cfbd7727decea90656087161899ce7cd0a910255 100644 (file)
@@ -209,7 +209,6 @@ addMessages(array(
        'ADMIN_ENTER_POINTS_REGISTER' => "Willkommensgutschrift",
        'ADMIN_ENTER_POINTS_REFERRAL' => "Einmalige Referral-Gutschrift",
        'CHOOSE_MORE_CATEGORIES' => "Bitte w&auml;hlen Sie mehr Kategorien aus! Minimum ist: <span class=\"data\">{?least_cats?}</span>",
        'ADMIN_ENTER_POINTS_REGISTER' => "Willkommensgutschrift",
        'ADMIN_ENTER_POINTS_REFERRAL' => "Einmalige Referral-Gutschrift",
        'CHOOSE_MORE_CATEGORIES' => "Bitte w&auml;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&auml;ge editieren",
 
        // Referral levels (admin/generic)
        'ADMIN_EDIT_POINTS' => "Willkommensgutschrift und andere Festbetr&auml;ge editieren",
 
        // Referral levels (admin/generic)
index a40f0c1975412838095760b83a7463b0e2f8538b..be0344fa9bfbc39681986b280b607b453ccc212d 100644 (file)
@@ -56,6 +56,7 @@ addMessages(array(
        'ADMIN_CONFIG_CHECK_EMAIL_SUBJECT' => "Sind URLs in der Betreffzeile erlaubt?",
        'ADMIN_CONFIG_ORDER_NOTICE' => "Das Auswahlverfahren von Mailempf&auml;ngern wirkt sich nur auf kleinere Buchungen - mit weniger Empf&auml;nger als maximal m&ouml;glich - aus.",
        'ADMIN_CONFIG_ORDER_MULTI_PAGE' => "Soll die Mailbuchungsseite in mehrere aufgeteilt werden? Dies erlaubt den Versand nach Postleitzahl zum Bespielt.",
        'ADMIN_CONFIG_CHECK_EMAIL_SUBJECT' => "Sind URLs in der Betreffzeile erlaubt?",
        'ADMIN_CONFIG_ORDER_NOTICE' => "Das Auswahlverfahren von Mailempf&auml;ngern wirkt sich nur auf kleinere Buchungen - mit weniger Empf&auml;nger als maximal m&ouml;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",
 
        // Admin config - repay options
        'ADMIN_CONFIG_REPAY_POINTS_REPAY' => "Dem Mitglied wieder gutschreiben",
index 34c8c2825197789381527384e77a6a393da81a38..adcab052f5492788522f1d08f7d059370884078f 100644 (file)
@@ -42,10 +42,10 @@ if (!defined('__SECURITY')) {
 
 // Language constans
 addMessages(array(
 
 // 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_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&auml;nderung?",
        'ADMIN_CONFIG_MAX_ONLINETIME' => "Timeout f&uuml;r Who-is-Online",
        'ADMIN_CONFIG_SENDING_TITLE' => "Versand-Optionen",
        'ADMIN_CONFIG_NOTIFY_ADMIN' => "Benachrichtigung bei Profil&auml;nderung?",
        'ADMIN_CONFIG_MAX_ONLINETIME' => "Timeout f&uuml;r Who-is-Online",
        'ADMIN_CONFIG_SENDING_TITLE' => "Versand-Optionen",
@@ -76,6 +76,7 @@ addMessages(array(
        'ADMIN_CONFIG_INTERNAL_STATS_ENABLED' => "Sollen die internen Statistiken eingeschaltet sein? Das Abschalten dieser Statistiken kann etwas Performance bringen, ist aber f&uuml;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&uuml;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_INTERNAL_STATS_ENABLED' => "Sollen die internen Statistiken eingeschaltet sein? Das Abschalten dieser Statistiken kann etwas Performance bringen, ist aber f&uuml;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&uuml;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]
 ));
 
 // [EOF]
index a91837b5bb9e2d4b3c02eb2a9a322a85d0502e2c..a4216b4492682ea07d755bfd742461a9c296273a 100644 (file)
@@ -55,7 +55,6 @@ addMessages(array(
        'ADMIN_CONFIG_REGISTER_TITLE' => "Einstellungen am Anmeldeformular",
        'ADMIN_CONFIG_LEAST_CATEGORIES' => "Mindestens auszuw&auml;hlende Kategorieanzahl",
        'ADMIN_CONFIG_REGISTER_GENERATE_PASSWORD_EMPTY' => "Soll bei leergelassenem Passwort in der Anmeldung eines per Zufall generiert werden?",
        'ADMIN_CONFIG_REGISTER_TITLE' => "Einstellungen am Anmeldeformular",
        'ADMIN_CONFIG_LEAST_CATEGORIES' => "Mindestens auszuw&auml;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&auml;ndigen Webmaster.",
 
        '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&auml;ndigen Webmaster.",
 
index 27f3bbf7e61dac917a0a7cca691bea869297ab25..cbdff252a2187034bd4a6e9f7cb123f53c227927 100644 (file)
@@ -94,6 +94,42 @@ function isOrderMultiPageEnabled () {
        return $GLOBALS[__FUNCTION__];
 }
 
        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?
 // Getter for 'order_mode' config entry
 function getOrderMode () {
        // Is there cache?
@@ -118,5 +154,29 @@ function getOrderSelect () {
        return $GLOBALS[__FUNCTION__];
 }
 
        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]
 ?>
 // [EOF]
 ?>
index d80080f1cd58cae28a74e85a1ee08bf011b5e46d..1aba657195fe7a3ea55d88245ae9757c3bcea3ff 100644 (file)
@@ -76,5 +76,53 @@ function getRejectUrl () {
        return $GLOBALS[__FUNCTION__];
 }
 
        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]
 ?>
 // [EOF]
 ?>
index 2c9c46a57aa0d8d21b2b7122dfa30e7c28a875e4..2231732d842ac7a1c7e88ec3928da7513316cf7d 100644 (file)
@@ -257,13 +257,12 @@ function isRegistrationDataComplete () {
        //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'isOkay=' . intval($isOkay) . ',selected=' . $GLOBALS['registration_selected_cats'] . '/' . getLeastCats());
        $isOkay = (($isOkay) && ($GLOBALS['registration_selected_cats'] >= getLeastCats()));
 
        //* 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?
        } // END - if
 
        // Check for IP timeout?
@@ -537,7 +536,7 @@ function getDisplayRefid () {
        return $GLOBALS[__FUNCTION__];
 }
 
        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__])) {
 function isDisplayRefidEnabled () {
        // Is the cache entry set?
        if (!isset($GLOBALS[__FUNCTION__])) {
@@ -609,6 +608,18 @@ function isRegisterGeneratePasswordEmptyEnabled () {
        return $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
 // ----------------------------------------------------------------------------
 // ----------------------------------------------------------------------------
 //                            Template helper functions
 // ----------------------------------------------------------------------------
index fb4d44811eee0f48f0725fad277ee85a904ec68f..d17a47d5e1c39d7fbe4edde959ba18158b20f215 100644 (file)
@@ -47,18 +47,6 @@ if (isFormSent('save_config')) {
        // Data was submitted so we store it
        adminSaveSettingsFromPostData();
 } else {
        // 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');
        // Output time selection boxes
        $content['ap_in_since']          = createConfigurationTimeSelections('ap_inactive_since'   , 'MWDh');
        $content['ap_in_time']           = createConfigurationTimeSelections('ap_inactive_time'    , 'MWDh');
index 3c45ba9720ff5a4c130a2011c3b06e3763cde8c1..843050d5d689b59291ec290143d78c122fc3562c 100644 (file)
@@ -48,13 +48,11 @@ if (isFormSent('save_config')) {
        // Calculate stamps and set calculated stamps
        setPostRequestElement('online_timeout'       , createEpocheTimeFromSelections('online_timeout'       , postRequestArray()));
        setPostRequestElement('url_tlock'            , createEpocheTimeFromSelections('url_tlock'            , postRequestArray()));
        // 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!)
 
        // 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
        if (!isPostRequestElementSet('url_tlock'))             { unsetPostRequestElement('ok'); }
 
        // Check other settings
@@ -70,7 +68,6 @@ if (isFormSent('save_config')) {
        // Time selection boxes
        $content['online_timeout']   = createConfigurationTimeSelections('online_timeout'       , 'ms');
        $content['url_tlock']        = createConfigurationTimeSelections('url_tlock'            , 'WDh');
        // 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) {
 
        // Prepare more
        foreach (array('css_php_direct','css_php_file','css_php_inline','mailid_error_redirect_index','mailid_error_redirect_reject') as $entry) {
index 30aac7adc97c09e8739ce415dc3c33771ed2065b..b18e01787de2acd774dc74a84c6057a7759dd21b 100644 (file)
@@ -54,11 +54,7 @@ if (isFormSent('save_config')) {
        adminSaveSettingsFromPostData();
 } else {
        // Remember stuff in constants
        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);
 
        // Load normal template
        loadTemplate('admin_config_register2', FALSE, $content);
index 654c6e969e68de13321366c0521724b7b2ed7278..41a0e0249c9be4eb479c867db6c517f146bca131 100644 (file)
@@ -48,13 +48,8 @@ if (isFormSent('save_config')
        // Save settings
        adminSaveSettingsFromPostData();
 } else {
        // 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
        // Load template
-       loadTemplate('admin_config_title', FALSE, $content);
+       loadTemplate('admin_config_title');
 }
 
 // [EOF]
 }
 
 // [EOF]
index 18db019120df36a2b868b1684c12b3e5f09fe6f7..d4dc6addf936fbdcfd2671604810fa68a02c1c1c 100644 (file)
@@ -51,7 +51,7 @@ $total = countSumTotalData('', 'online', 'id', 'userid', TRUE);
 
 if (getConfig('mad_count') < $total) {
        // Update counter
 
 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
 } // END - if
 
 // Prepare content
index 9b5d43178883bf33eab428f449fe9db1e4d5864f..d79da153624b55bf40f5590cb1dda081a4c46bdd 100644 (file)
@@ -224,7 +224,7 @@ LIMIT 1',
                } elseif ((!isEmailValid(postRequestElement('email'))) && (!isAdmin())) {
                        // Invalid email address!
                        displayMessage('{--INVALID_EMAIL_ENTERED--}');
                } 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 {
                        // Email address is already registered
                        displayMessage('{--MEMBER_EMAIL_IS_ALREADY_REGISTERED--}');
                } else {
index 0cc9a78a8c293836a71eee34f7189fd54bc65dcd..38c953be9906c1a25073a9a6caba076e9279b7e1 100644 (file)
@@ -56,7 +56,7 @@ $data = array(
 );
 
 $ALLOWED = getUserData('receive_mails') - getUserData('mail_orders');
 );
 
 $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());
 
 // Now check his points amount
 $totalPoints = getTotalPoints(getMemberId());
@@ -69,6 +69,7 @@ if ((isExtensionInstalledAndNewer('holiday', '0.1.3')) && (isUserDataEnabled('ho
        // 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...
        // 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`
        $result = SQL_QUERY_ESC("SELECT
        `id`,
        `data_type`
@@ -107,7 +108,7 @@ LIMIT 1",
                        $TEST = str_replace(array(PHP_EOL, chr(13)), array('', ''), postRequestElement('text'));
 
                        // Text length within allowed length?
                        $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&amp;what=order&amp;code=' . getCode('OVERLENGTH');
                        } // END - if
                                // Text is too long!
                                $data['url'] = 'modules.php?module=login&amp;what=order&amp;code=' . getCode('OVERLENGTH');
                        } // END - if
@@ -428,10 +429,10 @@ LIMIT 1",
 } elseif (postRequestElement('receiver') == '0') {
        // Not enougth receivers selected
        $data['url'] = 'modules.php?module=login&amp;what=order&amp;code=' . getCode('MORE_RECEIVERS1');
 } elseif (postRequestElement('receiver') == '0') {
        // Not enougth receivers selected
        $data['url'] = 'modules.php?module=login&amp;what=order&amp;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--}');
        // 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'";
 
        // Show only enabled categories to the user ...
        $whereStatement = " WHERE `visible`='Y'";
 
@@ -544,7 +545,7 @@ LIMIT 1",
                        SQL_FREERESULT($result_cats);
 
                        // Now we need to load the mail types...
                        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)) {
 
                        $payments = array();
                        if (!SQL_HASZERONUMS($result)) {
@@ -566,7 +567,7 @@ LIMIT 1",
                                $content['total_points'] = $totalPoints;
 
                                // Check how many mail orders he has placed today and how many he's allowed to send
                                $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;
                                        case 'MAX': // He is allowed to send as much as possible
                                                $content['order_max_full'] = '{--MEMBER_ORDER_ALLOWED_MAX--}';
                                                break;
@@ -576,7 +577,7 @@ LIMIT 1",
                                                break;
 
                                        default: // Unknown/invalid
                                                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
                                                $content['order_max_full'] = '{--MEMBER_ORDER_ALLOWED_UNKNOWN--}';
                                                break;
                                } // END - switch
index 289e50cd2f505d9226888df3dde829ee9635d7c0..93c09130e9a7f5e46179530de7330c7925cdf8a8 100644 (file)
@@ -58,7 +58,7 @@ if (empty($url)) {
        $type = 'ADMIN';
 
        // Is the auto-send mechanism active or inactive?
        $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--}';
                // Auto-send is active
                $content['admin_autosend']  = '{--ADMIN_AUTOSEND_ACTIVE--}';
                $content['member_autosend'] = '{--MEMBER_AUTOSEND_ACTIVE--}';
@@ -84,7 +84,7 @@ if (empty($url)) {
 
                // Update used points
                $add = '';
 
                // 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
 
                        $add = ',`mail_orders`=`mail_orders`+1';
                } // END - if
 
index 58ea34151ca1904b52faf657acef63f454805ba8..f61af07f562408dee48950e0bc9f60815ba783cb 100644 (file)
@@ -44,8 +44,8 @@ if (!defined('__SECURITY')) {
 if ((isResetModeEnabled()) || (!isHtmlOutputMode())) {
        // Skip here
        return FALSE;
 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;
 }
 
        return FALSE;
 }
 
index 1e35fec1423c414c054f09fad6390edba59d5c5b..f10b19f755f0e4eab8fd005ab9fa975f5ee306cf 100644 (file)
@@ -44,8 +44,8 @@ if (!defined('__SECURITY')) {
 if ((isResetModeEnabled()) || (!isHtmlOutputMode())) {
        // Skip here
        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;
 }
 
        return FALSE;
 }
 
@@ -218,8 +218,8 @@ if (!SQL_HASZERONUMS($result_main)) {
                                                } // END - switch
                                        } // END - if
 
                                                } // 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(
                                        if ((($GLOBALS['pool_cnt'] >= $mailData['target_send'])) && ($lastSentId != $mailData['id'])) {
                                                // Prepare content
                                                $content = array(
@@ -263,7 +263,7 @@ if (!SQL_HASZERONUMS($result_main)) {
                                                break;
                                        }
                                        // Is there send maximum mails?
                                                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'];
                                                // 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'];
index 1ddfd1145b21ead490b752f6fae9532ab8c9154b..6e41821cd2bc15cc9945465e00287c3549c5d40b 100644 (file)
@@ -1667,7 +1667,7 @@ function isAdminNotificationEnabled () {
        // Is there cache?
        if (!isset($GLOBALS[__FUNCTION__])) {
                // Determine it
        // 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
        } // END - if
 
        // Return cache
@@ -2213,18 +2213,6 @@ function getOneDay () {
        return $GLOBALS[__FUNCTION__];
 }
 
        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?
 // "Getter" for img_type
 function getImgType () {
        // Is there cache?
@@ -2249,18 +2237,6 @@ function getCodeLength () {
        return $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__];
-}
-
 // "Getter" for pass_len
 function getPassLen () {
        // Is there cache?
 // "Getter" for pass_len
 function getPassLen () {
        // Is there cache?
@@ -2333,18 +2309,6 @@ function getLastMonthly () {
        return $GLOBALS[__FUNCTION__];
 }
 
        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?
 // "Getter" for mails_page
 function getMailsPage () {
        // Is there cache?
@@ -2549,30 +2513,6 @@ function getTitleMiddle () {
        return $GLOBALS[__FUNCTION__];
 }
 
        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?
 // Getter for 'display_home_in_index'
 function getDisplayHomeInIndex () {
        // Is the cache entry set?
index a2af6a821dc27e3e7c958c35a04741b75571c534..2f8f6f6af5ed351734ca316ee4555d214422d984 100644 (file)
@@ -34,18 +34,7 @@ CREATE TABLE `{?_MYSQL_PREFIX?}_config` (
   `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,
   `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,
   `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,
   `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,
@@ -53,9 +42,6 @@ CREATE TABLE `{?_MYSQL_PREFIX?}_config` (
   `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,
   `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';
   `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';
index 2489aacc1ce075bf88fe9f65427fee100f777b57..ffab6fa1a7869631fed8f2628cd0e2993a600720 100644 (file)
@@ -10,7 +10,7 @@
 
                <div class="table_row">
                        <label class="admin_label" for="autopurge_inactive">{--ADMIN_CONFIG_AUTOPURGE_INACTIVE--}</label>
 
                <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>
 
                <div class="table_row">
@@ -29,7 +29,7 @@
 
                <div class="table_row">
                        <label class="admin_label" for="autopurge_unconfirmed">{--ADMIN_CONFIG_AUTOPURGE_UNCONFIRMED--}</label>
 
                <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>
 
                <div class="table_row">
@@ -43,7 +43,7 @@
 
                <div class="table_row">
                        <label class="admin_label" for="autopurge_tasks">{--ADMIN_CONFIG_AUTOPURGE_TASKS--}</label>
 
                <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>
 
                <div class="table_row">
@@ -67,7 +67,7 @@
 
                <div class="table_row">
                        <label class="admin_label" for="ap_notify_del_mails">{--ADMIN_CONFIG_AUTOPURGE_NOTIFY_DELETE_MAILS--}</label>
 
                <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>
        </fieldset>
 
@@ -76,7 +76,7 @@
 
                <div class="table_row">
                        <label class="admin_label" for="ap_del_mails">{--ADMIN_CONFIG_AUTOPURGE_DELETE_MAILS--}</label>
 
                <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>
 
                <div class="table_row">
 
                <div class="table_row">
                        <label class="admin_label" for="ap_notify_inactive">{--ADMIN_CONFIG_AUTOPURGE_NOTIFY_INACTIVE--}</label>
 
                <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>
 
                <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>
 
                <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>
 
                </div>
        </fieldset>
 
index 5168a0b2b003e6a7984fe0c20f69ff50d8447565..57e00955ad479e629825d3c54d46ace861f5fa20 100644 (file)
                <legend>{--ADMIN_CONFIG_ORDER_MEMBER_LEGEND--}</legend>
 
                <div class="table_row">
                <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">
                        <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">
                        </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">
                        <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>
 
                        </div>
                </div>
 
                                <input type="input" class="form_field" name="order_min" value="{?order_min?}" size="5" maxlength="20" />
                        </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">
        </fieldset>
 
        <div class="table_footer top">
index 5a6fb650442f224d551efe39d7133a29fae16952..8c9188327068c786ff9a001b2040590a1050901b 100644 (file)
                </td>
        </tr>
 
                </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--}:
        <tr>
                <td class="bottom" align="right">
                        {--ADMIN_CONFIG_WORD_WRAP--}:
                </td>
        </tr>
 
                </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">
        <tr>
                <td class="bottom" align="right">
-                       {--ADMIN_CONFIG_AUTOSEND_ACTIVE--}
+                       {--ADMIN_CONFIG_POOL_MAX_SEND--}:
                </td>
                <td class="bottom" align="center">
                </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>
 
                </td>
        </tr>
 
index 17fe99889f7d21fc3700c09e71cfc7783f7a2bf9..1f0e32c9e90b9736d9667ceac54fe83159d6cfb1 100644 (file)
@@ -6,32 +6,34 @@
                        <strong>{--ADMIN_CONFIG_REGISTER_TITLE--}</strong>
                </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_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>
        <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>
+
        <tr>
                <td align="right">{--ADMIN_CONFIG_REGISTER_DISPLAY_REFID--}:</td>
        <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>
+
        <tr>
                <td align="right">{--ADMIN_CONFIG_REGISTER_IP_TIMEOUT--}:</td>
                <td align="center">$content[ip_timeout]</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>
        <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>
+
        <tr>
                <td class="table_footer" colspan="2" align="center">
                        <input type="reset" class="form_reset" value="{--CLEAR_FORM--}" />
        <tr>
                <td class="table_footer" colspan="2" align="center">
                        <input type="reset" class="form_reset" value="{--CLEAR_FORM--}" />
index 71b09fbdd6c1152a97b1b06c03702768c14f5bea..d144b4bb41972bcd2b23c473eeafd1a13ee9ba5f 100644 (file)
@@ -9,17 +9,17 @@
                <legend>{--ADMIN_CONFIG_TITLE_LEGEND--}</legend>
                <div class="table_row">
                        <label class="admin_label" for="enable_title_deco">{--ADMIN_CONFIG_TITLE_ENABLE_DECORATIONS--}:</label>
                <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>
 
                <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>
 
                <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>
 
                </div>
        </fieldset>