]> git.mxchange.org Git - mailer.git/commitdiff
Extension ext-coupon continued, naming convention, many improvements:
authorRoland Häder <roland@mxchange.org>
Wed, 29 Jun 2011 00:51:11 +0000 (00:51 +0000)
committerRoland Häder <roland@mxchange.org>
Wed, 29 Jun 2011 00:51:11 +0000 (00:51 +0000)
- Extension ext-coupon: Nearly finished, only listing of cashed coupons and a
  little in admin area!
- Foder 'inc/autopurge/ renamed to 'inc/purge/ to avoid naming conflicts
- Some language constants renamed to make clear they belong to config area
- A lot more improvements on many places (I cannot remember all)
- TODOs.txt updated

174 files changed:
.gitattributes
DOCS/TODOs.txt
beg.php
inc/autopurge/purge-
inc/autopurge/purge-general.php
inc/autopurge/purge-inact.php
inc/autopurge/purge-mails.php
inc/autopurge/purge-tsks.php
inc/autopurge/purge-unconfirmed.php
inc/daily/daily_autopurge.php
inc/extensions-functions.php
inc/extensions/ext-
inc/extensions/ext-active.php
inc/extensions/ext-admins.php
inc/extensions/ext-admintheme1.php
inc/extensions/ext-admintheme_default.php
inc/extensions/ext-announcement.php
inc/extensions/ext-autopurge.php
inc/extensions/ext-autoreg.php
inc/extensions/ext-bank.php
inc/extensions/ext-beg.php
inc/extensions/ext-birthday.php
inc/extensions/ext-bitcoins.php
inc/extensions/ext-bonus.php
inc/extensions/ext-booking.php
inc/extensions/ext-cache.php
inc/extensions/ext-clickbanner.php
inc/extensions/ext-country.php
inc/extensions/ext-coupon.php
inc/extensions/ext-debug.php
inc/extensions/ext-demo.php
inc/extensions/ext-doubler.php
inc/extensions/ext-events.php
inc/extensions/ext-forced.php
inc/extensions/ext-funcoins.php
inc/extensions/ext-grade.php
inc/extensions/ext-holiday.php
inc/extensions/ext-html_mail.php
inc/extensions/ext-imprint.php
inc/extensions/ext-iso3166.php
inc/extensions/ext-jackpot.php
inc/extensions/ext-lead.php
inc/extensions/ext-logs.php
inc/extensions/ext-mailid.php
inc/extensions/ext-maintenance.php
inc/extensions/ext-mediadata.php
inc/extensions/ext-menu.php
inc/extensions/ext-mods.php
inc/extensions/ext-mydata.php
inc/extensions/ext-network.php
inc/extensions/ext-newsletter.php
inc/extensions/ext-nickname.php
inc/extensions/ext-online.php
inc/extensions/ext-optimize.php
inc/extensions/ext-order.php
inc/extensions/ext-other.php
inc/extensions/ext-partner.php
inc/extensions/ext-payout.php
inc/extensions/ext-politician-stop.php
inc/extensions/ext-primera.php
inc/extensions/ext-profile.php
inc/extensions/ext-rallye.php
inc/extensions/ext-refback.php
inc/extensions/ext-refsell.php
inc/extensions/ext-register.php
inc/extensions/ext-removeip.php
inc/extensions/ext-repair.php
inc/extensions/ext-report.php
inc/extensions/ext-rewrite.php
inc/extensions/ext-safe.php
inc/extensions/ext-seo.php
inc/extensions/ext-sponsor.php
inc/extensions/ext-sql_patches.php
inc/extensions/ext-support.php
inc/extensions/ext-surfbar.php
inc/extensions/ext-task.php
inc/extensions/ext-terms.php
inc/extensions/ext-theme.php
inc/extensions/ext-timezone.php
inc/extensions/ext-top10.php
inc/extensions/ext-uberwach.php
inc/extensions/ext-update.php
inc/extensions/ext-usage.php
inc/extensions/ext-user.php
inc/extensions/ext-validator.php
inc/extensions/ext-wernis.php
inc/extensions/ext-yacy.php
inc/extensions/ext-yoomedia.php
inc/filter-functions.php
inc/filter/active_filter.php
inc/filter/admins_filter.php
inc/filter/bonus_filter.php
inc/filter/booking_filter.php
inc/filter/cache_filter.php
inc/filter/coupon_filter.php [new file with mode: 0644]
inc/filter/mediadata_filter.php
inc/filter/online_filter.php
inc/filter/other_filter.php
inc/filter/politician_stop_filter.php
inc/filter/rallye_filter.php
inc/filter/register_filter.php
inc/filter/removeip_filter.php
inc/filter/theme_filter.php
inc/filter/timezone_filter.php
inc/filter/uberwach_filter.php
inc/functions.php
inc/language/beg_de.php
inc/language/birthday_de.php
inc/language/bonus_de.php
inc/language/coupon_de.php
inc/language/de.php
inc/libs/beg_functions.php
inc/libs/bonus_functions.php
inc/libs/html_mail_functions.php
inc/libs/mediadata_functions.php
inc/modules/admin/what-config_beg.php
inc/modules/admin/what-config_birthday.php
inc/modules/admin/what-config_bonus.php
inc/modules/admin/what-config_coupon.php
inc/modules/admin/what-send_coupon.php
inc/modules/member/what-cash_coupon.php
inc/modules/member/what-unconfirmed.php
inc/mysql-manager.php
inc/purge/.htaccess [new file with mode: 0644]
inc/purge/purge- [new file with mode: 0644]
inc/purge/purge-general.php [new file with mode: 0644]
inc/purge/purge-inact.php [new file with mode: 0644]
inc/purge/purge-mails.php [new file with mode: 0644]
inc/purge/purge-tasks.php [new file with mode: 0644]
inc/purge/purge-unconfirmed.php [new file with mode: 0644]
inc/revision-functions.php
inc/wrapper-functions.php
mailid_top.php
templates/de/emails/admin/admin_coupon.tpl [new file with mode: 0644]
templates/de/emails/admin/admin_coupon_cashed.tpl [new file with mode: 0644]
templates/de/emails/admin/admin_holiday_deactivated.tpl
templates/de/emails/admin/admin_holiday_request.tpl
templates/de/emails/admin/admin_mydata_notify.tpl
templates/de/emails/admin/admin_newsletter_reset.tpl
templates/de/emails/admin/admin_payout_request.tpl
templates/de/emails/admin/admin_payout_request_banner.tpl
templates/de/emails/admin/admin_report_bug.tpl
templates/de/emails/admin/admin_reset_password.tpl
templates/de/emails/admin/admin_sponsor_change_data.tpl
templates/de/emails/admin/admin_sponsor_change_email.tpl
templates/de/emails/admin/admin_sponsor_pending.tpl
templates/de/emails/admin/admin_sponsor_reg.tpl
templates/de/emails/admin/admin_sponsor_settings.tpl
templates/de/emails/admin/admin_support-ordr.tpl
templates/de/emails/admin/admin_support-reflink.tpl
templates/de/emails/admin/admin_support-unconfirmed.tpl
templates/de/emails/admin/admin_transfer_points.tpl
templates/de/emails/admin/admin_wernis_request.tpl
templates/de/emails/admins/admins_mail_contct_admin.tpl
templates/de/emails/admins/admins_msg_contct_admin.tpl
templates/de/emails/member/member_coupon.tpl
templates/de/emails/member/member_mydata_notify.tpl
templates/de/emails/new-pass.tpl
templates/de/emails/order-admin.tpl
templates/de/emails/register-admin.tpl
templates/de/emails/sponsor/sponsor_activate.tpl
templates/de/emails/sponsor/sponsor_change_data.tpl
templates/de/emails/sponsor/sponsor_change_email.tpl
templates/de/emails/sponsor/sponsor_confirm.tpl
templates/de/emails/sponsor/sponsor_email.tpl
templates/de/emails/sponsor/sponsor_lost.tpl
templates/de/emails/sponsor/sponsor_pending.tpl
templates/de/emails/sponsor/sponsor_settings.tpl
templates/de/emails/sponsor/sponsor_unlock.tpl
templates/de/html/admin/admin_config_beg.tpl
templates/de/html/admin/admin_config_birthday.tpl
templates/de/html/admin/admin_config_bonus.tpl
templates/de/html/admin/admin_config_coupon.tpl
templates/de/html/admin/admin_send_coupon.tpl

index 254726a057630422d1e0166d5630034eb4b6206e..5ada37c7a42ac5e85bcc97f4a08c1747fba3023b 100644 (file)
@@ -208,6 +208,7 @@ inc/filter/admins_filter.php svneol=native#text/plain
 inc/filter/bonus_filter.php svneol=native#text/plain
 inc/filter/booking_filter.php svneol=native#text/plain
 inc/filter/cache_filter.php svneol=native#text/plain
 inc/filter/bonus_filter.php svneol=native#text/plain
 inc/filter/booking_filter.php svneol=native#text/plain
 inc/filter/cache_filter.php svneol=native#text/plain
+inc/filter/coupon_filter.php svneol=native#text/plain
 inc/filter/mediadata_filter.php svneol=native#text/plain
 inc/filter/online_filter.php svneol=native#text/plain
 inc/filter/other_filter.php svneol=native#text/plain
 inc/filter/mediadata_filter.php svneol=native#text/plain
 inc/filter/online_filter.php svneol=native#text/plain
 inc/filter/other_filter.php svneol=native#text/plain
@@ -713,6 +714,13 @@ inc/pool/.htaccess svneol=native#text/plain
 inc/pool/pool- svneol=native#text/plain
 inc/pool/pool-bonus.php svneol=native#text/plain
 inc/pool/pool-user.php svneol=native#text/plain
 inc/pool/pool- svneol=native#text/plain
 inc/pool/pool-bonus.php svneol=native#text/plain
 inc/pool/pool-user.php svneol=native#text/plain
+inc/purge/.htaccess svneol=native#text/plain
+inc/purge/purge- svneol=native#text/plain
+inc/purge/purge-general.php svneol=native#text/plain
+inc/purge/purge-inact.php svneol=native#text/plain
+inc/purge/purge-mails.php svneol=native#text/plain
+inc/purge/purge-tasks.php svneol=native#text/plain
+inc/purge/purge-unconfirmed.php svneol=native#text/plain
 inc/request-functions.php svneol=native#text/plain
 inc/reset/.htaccess svneol=native#text/plain
 inc/reset/reset_ svneol=native#text/plain
 inc/request-functions.php svneol=native#text/plain
 inc/reset/.htaccess svneol=native#text/plain
 inc/reset/reset_ svneol=native#text/plain
@@ -769,6 +777,8 @@ templates/de/emails/admin/admin_autopurge_points.tpl svneol=native#text/plain
 templates/de/emails/admin/admin_autopurge_tsks.tpl svneol=native#text/plain
 templates/de/emails/admin/admin_autopurge_turbo.tpl svneol=native#text/plain
 templates/de/emails/admin/admin_autopurge_unconfirmed.tpl svneol=native#text/plain
 templates/de/emails/admin/admin_autopurge_tsks.tpl svneol=native#text/plain
 templates/de/emails/admin/admin_autopurge_turbo.tpl svneol=native#text/plain
 templates/de/emails/admin/admin_autopurge_unconfirmed.tpl svneol=native#text/plain
+templates/de/emails/admin/admin_coupon.tpl svneol=native#text/plain
+templates/de/emails/admin/admin_coupon_cashed.tpl svneol=native#text/plain
 templates/de/emails/admin/admin_del_surfbar_urls.tpl svneol=native#text/plain
 templates/de/emails/admin/admin_edit_surfbar_urls.tpl svneol=native#text/plain
 templates/de/emails/admin/admin_extension_deactivated.tpl svneol=native#text/plain
 templates/de/emails/admin/admin_del_surfbar_urls.tpl svneol=native#text/plain
 templates/de/emails/admin/admin_edit_surfbar_urls.tpl svneol=native#text/plain
 templates/de/emails/admin/admin_extension_deactivated.tpl svneol=native#text/plain
index f0b3a5452dd2f4def6b620003c8dd90d77b794d7..82f91357023524ddbbfb086cf937fa99728d38ef 100644 (file)
@@ -3,7 +3,6 @@
 ./autoreg.php:58:// @TODO Add processing of request here
 ./beg.php:171:                 // @TODO Opps, what is missing here???
 ./birthday_confirm.php:93:             // @TODO Try to rewrite the following unset()
 ./autoreg.php:58:// @TODO Add processing of request here
 ./beg.php:171:                 // @TODO Opps, what is missing here???
 ./birthday_confirm.php:93:             // @TODO Try to rewrite the following unset()
-./inc/autopurge/purge-inact.php:55:    // @TODO Rewrite these if() blocks to a filter
 ./inc/cache/config-local.php:124:// @TODO Rewrite the following three constants, somehow...
 ./inc/classes/cachesystem.class.php:501:       // @TODO Add support for more types which break in last else-block
 ./inc/config-functions.php:136:        // @TODO Make this all better... :-/
 ./inc/cache/config-local.php:124:// @TODO Rewrite the following three constants, somehow...
 ./inc/classes/cachesystem.class.php:501:       // @TODO Add support for more types which break in last else-block
 ./inc/config-functions.php:136:        // @TODO Make this all better... :-/
 ./inc/extensions/ext-yoomedia.php:121:         // @TODO Can this be moved into a database table?
 ./inc/extensions/ext-yoomedia.php:54:// @TODO Only deprecated when 'ext-network' is ready! setExtensionDeprecated('Y');
 ./inc/extensions-functions.php:155:    // @TODO Do we still need this? setExtensionUpdateNotes('');
 ./inc/extensions/ext-yoomedia.php:121:         // @TODO Can this be moved into a database table?
 ./inc/extensions/ext-yoomedia.php:54:// @TODO Only deprecated when 'ext-network' is ready! setExtensionDeprecated('Y');
 ./inc/extensions-functions.php:155:    // @TODO Do we still need this? setExtensionUpdateNotes('');
-./inc/extensions-functions.php:1933:// @TODO This should be rewrittten to allow, more development states, e.g. 'planing','alpha','beta','beta2','stable'
-./inc/extensions-functions.php:437:// @TODO Change from ext_id to ext_name (not just even the variable! ;-) )
-./inc/extensions-functions.php:567:            // @TODO Extension is loaded, what next?
-./inc/filter/bonus_filter.php:55:              // @TODO This query isn't right, it will only update if the user was for a longer time away!
-./inc/filter/cache_filter.php:78:              // @TODO This should be rewritten not to load the cache file for just checking if it is there for save removal.
-./inc/functions.php:1226:                      // @TODO Move this SQL code into a function, let's say 'getTimestampFromPoolId($id) ?
-./inc/functions.php:1314:                      // @TODO Are these convertions still required?
-./inc/functions.php:1332:// @TODO Rewrite this function to use readFromFile() and writeToFile()
+./inc/extensions-functions.php:1927:// @TODO This should be rewrittten to allow, more development states, e.g. 'planing','alpha','beta','beta2','stable'
+./inc/extensions-functions.php:424:// @TODO Change from ext_id to ext_name (not just even the variable! ;-) )
+./inc/extensions-functions.php:554:            // @TODO Extension is loaded, what next?
+./inc/filter/bonus_filter.php:56:              // @TODO This query isn't right, it will only update if the user was for a longer time away!
+./inc/filter/cache_filter.php:92:              // @TODO This should be rewritten not to load the cache file for just checking if it is there for save removal.
+./inc/functions.php:1230:                      // @TODO Move this SQL code into a function, let's say 'getTimestampFromPoolId($id) ?
+./inc/functions.php:1318:                      // @TODO Are these convertions still required?
+./inc/functions.php:1336:// @TODO Rewrite this function to use readFromFile() and writeToFile()
 ./inc/functions.php:163:// @TODO Rewrite this to an extension 'smtp'
 ./inc/functions.php:163:// @TODO Rewrite this to an extension 'smtp'
-./inc/functions.php:1914:      // @TODO Find a way to cache this
-./inc/functions.php:2015:      // @TODO This is still very static, rewrite it somehow
-./inc/functions.php:2195:      // @TODO Rename column data_type to e.g. mail_status
+./inc/functions.php:1918:      // @TODO Find a way to cache this
+./inc/functions.php:2019:      // @TODO This is still very static, rewrite it somehow
+./inc/functions.php:2199:      // @TODO Rename column data_type to e.g. mail_status
 ./inc/functions.php:92:                // @TODO Extension 'msg' does not exist
 ./inc/gen_sql_patches.php:95:// @TODO Rewrite this to a filter
 ./inc/install-functions.php:57:        // @TODO DEACTIVATED: changeDataInLocalConfigurationFile('OUTPUT-MODE', "setConfigEntry('OUTPUT_MODE', '", "');", postRequestParameter('omode'), 0);
 ./inc/functions.php:92:                // @TODO Extension 'msg' does not exist
 ./inc/gen_sql_patches.php:95:// @TODO Rewrite this to a filter
 ./inc/install-functions.php:57:        // @TODO DEACTIVATED: changeDataInLocalConfigurationFile('OUTPUT-MODE', "setConfigEntry('OUTPUT_MODE', '", "');", postRequestParameter('omode'), 0);
 ./inc/modules/member/what-beg.php:54:// @TODO Can't this be moved into EL?
 ./inc/modules/member/what-beg.php:63:// @TODO No more needed? define('__BEG_UID_TIMEOUT', createFancyTime(getBegUseridTimeout()));
 ./inc/modules/member/what-bonus.php:55:        // @TODO Rewrite this to a filter
 ./inc/modules/member/what-beg.php:54:// @TODO Can't this be moved into EL?
 ./inc/modules/member/what-beg.php:63:// @TODO No more needed? define('__BEG_UID_TIMEOUT', createFancyTime(getBegUseridTimeout()));
 ./inc/modules/member/what-bonus.php:55:        // @TODO Rewrite this to a filter
-./inc/modules/member/what-cash_coupon.php:56:  // @TODO
 ./inc/modules/member/what-categories.php:131:          // @TODO Rewrite this to use $OUT .= ...
 ./inc/modules/member/what-logout.php:17: * @TODO Rewrite the code to a filter                                   *
 ./inc/modules/member/what-order.php:427:                       // @TODO Rewrite this to a filter
 ./inc/modules/member/what-categories.php:131:          // @TODO Rewrite this to use $OUT .= ...
 ./inc/modules/member/what-logout.php:17: * @TODO Rewrite the code to a filter                                   *
 ./inc/modules/member/what-order.php:427:                       // @TODO Rewrite this to a filter
 ./inc/mysql-manager.php:2001:// @TODO Fix inconsistency between last_module and getWhat()
 ./inc/mysql-manager.php:368:   // @TODO Try to rewrite this to one or more functions
 ./inc/mysql-manager.php:44:// @TODO Can we cache this?
 ./inc/mysql-manager.php:2001:// @TODO Fix inconsistency between last_module and getWhat()
 ./inc/mysql-manager.php:368:   // @TODO Try to rewrite this to one or more functions
 ./inc/mysql-manager.php:44:// @TODO Can we cache this?
+./inc/purge/purge-inact.php:55:        // @TODO Rewrite these if() blocks to a filter
 ./inc/revision-functions.php:169:// @TODO This function does also set and get in 'cache_array'
 ./inc/template-functions.php:1055:                     // @TODO Deprecate this thing
 ./inc/template-functions.php:1066:                     // @TODO Deprecate this thing
 ./inc/revision-functions.php:169:// @TODO This function does also set and get in 'cache_array'
 ./inc/template-functions.php:1055:                     // @TODO Deprecate this thing
 ./inc/template-functions.php:1066:                     // @TODO Deprecate this thing
 ./templates/de/html/member/member_unconfirmed_table_nopoints.tpl:11:           <!-- @TODO Nothing to say here? //-->
 ./templates/de/html/surfbar/surfbar_frame_textlinks.tpl:5:             <!-- @TODO These are static lines and should be replaced by a filter (see ext-sponsor) //-->
 ### ### DEPRECATION FOLLOWS: ### ###
 ./templates/de/html/member/member_unconfirmed_table_nopoints.tpl:11:           <!-- @TODO Nothing to say here? //-->
 ./templates/de/html/surfbar/surfbar_frame_textlinks.tpl:5:             <!-- @TODO These are static lines and should be replaced by a filter (see ext-sponsor) //-->
 ### ### DEPRECATION FOLLOWS: ### ###
+./inc/autopurge/purge-general.php:2:// @DEPRECATED
+./inc/autopurge/purge-inact.php:2:// @DEPRECATED
+./inc/autopurge/purge-mails.php:2:// @DEPRECATED
+./inc/autopurge/purge-tsks.php:2:// @DEPRECATED
+./inc/autopurge/purge-unconfirmed.php:2:// @DEPRECATED
 ./inc/daily/daily_engine.php:2:// @DEPRECATED
 ./inc/loader/load_cache-admin.php:2:// @DEPRECATED
 ./inc/loader/load_cache-config.php:2:// @DEPRECATED
 ./inc/daily/daily_engine.php:2:// @DEPRECATED
 ./inc/loader/load_cache-admin.php:2:// @DEPRECATED
 ./inc/loader/load_cache-config.php:2:// @DEPRECATED
diff --git a/beg.php b/beg.php
index e46a44d872ca2fdc0d0e2ddd35e3a28d8a32e2e6..89775b185cc483f01211e489a3091de93359ac1a 100644 (file)
--- a/beg.php
+++ b/beg.php
@@ -149,7 +149,7 @@ if (isGetRequestParameterSet('userid')) {
                        $content['message'] = loadTemplate('beg_login', true, $content);
                } elseif (getBegPayMode() != 'NONE') { // Other pay-mode active!
                        // Load message template depending on pay-mode
                        $content['message'] = loadTemplate('beg_login', true, $content);
                } elseif (getBegPayMode() != 'NONE') { // Other pay-mode active!
                        // Load message template depending on pay-mode
-                       $content['message'] = loadTemplate('beg_pay_mode_'.strtolower(getBegPayMode()), true, $content);
+                       $content['message'] = loadTemplate('beg_pay_mode_' . strtolower(getBegPayMode()), true, $content);
                        $pay = true;
                } else {
                        // Clicked received while reload lock is active
                        $pay = true;
                } else {
                        // Clicked received while reload lock is active
@@ -173,7 +173,7 @@ if (isGetRequestParameterSet('userid')) {
                        );
 
                        // Include config-depending template
                        );
 
                        // Include config-depending template
-                       loadTemplate('beg_pay_code_'.strtolower(getBegPayMode()), false, $content);
+                       loadTemplate('beg_pay_code_' . strtolower(getBegPayMode()), false, $content);
                } elseif (($pay === false) && (!isset($content['message']))) {
                        // Cannot pay! :-(
                        $content['message'] = loadTemplate('beg_failed', true);
                } elseif (($pay === false) && (!isset($content['message']))) {
                        // Cannot pay! :-(
                        $content['message'] = loadTemplate('beg_failed', true);
index f18db95d9dab8f7ef75fd8cb2c983743f877bbb4..f551ef47b7591c74e7b59193e56a1fa6505a87ab 100644 (file)
@@ -1,50 +1,3 @@
 <?php
 <?php
-/************************************************************************
- * Mailer v0.2.1-FINAL                                Start: 09/14/2008 *
- * ===================                          Last change: 09/14/2008 *
- *                                                                      *
- * -------------------------------------------------------------------- *
- * File              : purge-                                           *
- * -------------------------------------------------------------------- *
- * Short description :                                                  *
- * -------------------------------------------------------------------- *
- * Kurzbeschreibung  :                                                  *
- * -------------------------------------------------------------------- *
- * $Revision::                                                        $ *
- * $Date::                                                            $ *
- * $Tag:: 0.2.1-FINAL                                                 $ *
- * $Author::                                                          $ *
- * -------------------------------------------------------------------- *
- * Copyright (c) 2003 - 2009 by Roland Haeder                           *
- * Copyright (c) 2009 - 2011 by Mailer Developer Team                   *
- * For more information visit: http://www.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
-
-// Abort if autopurge is not active or disabled by admin
-if ((!isExtensionActive('autopurge')) || (getConfig('auto_purge_active') != 'Y')) {
-       // Abort here
-       return false;
-} // END - if
-
-//
+// @DEPRECATED
 ?>
 ?>
index 30c18977e406b2e62e40ac4afdffd2be1ade0adf..f551ef47b7591c74e7b59193e56a1fa6505a87ab 100644 (file)
@@ -1,155 +1,3 @@
 <?php
 <?php
-/************************************************************************
- * Mailer v0.2.1-FINAL                                Start: 09/14/2008 *
- * ===================                          Last change: 09/14/2008 *
- *                                                                      *
- * -------------------------------------------------------------------- *
- * File              : purge-general.php                                *
- * -------------------------------------------------------------------- *
- * Short description : General autopurging, nothing extension-specific  *
- * -------------------------------------------------------------------- *
- * Kurzbeschreibung  : Allgemeine, nicht erweiterunsabhaengige Auto-    *
- *                     Loeschung                                        *
- * -------------------------------------------------------------------- *
- * $Revision::                                                        $ *
- * $Date::                                                            $ *
- * $Tag:: 0.2.1-FINAL                                                 $ *
- * $Author::                                                          $ *
- * -------------------------------------------------------------------- *
- * Copyright (c) 2003 - 2009 by Roland Haeder                           *
- * Copyright (c) 2009 - 2011 by Mailer Developer Team                   *
- * For more information visit: http://www.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();
-} elseif ((!isExtensionActive('autopurge')) || (!isAutoPurgingActive())) {
-       // Abort here
-       return false;
-}
-
-if (getAutoPurge() > 0) {
-       // Init SQLs
-       initSqls();
-
-       // Init variables
-       $admin_points = '0';
-
-       // Then check for outdated mail order. We don't delete them just the confirmation links will be deleted.
-       $result = SQL_QUERY('SELECT
-       s.id, s.userid, s.pool_id, t.price
-FROM
-       `{?_MYSQL_PREFIX?}_user_stats` AS s
-LEFT JOIN
-       `{?_MYSQL_PREFIX?}_payments` AS t
-ON
-       s.`payment_id`=t.`id`
-WHERE
-       (UNIX_TIMESTAMP() - s.`timestamp_ordered`) >= {?auto_purge?}
-ORDER BY
-       s.userid ASC', __FILE__, __LINE__);
-       if (!SQL_HASZERONUMS($result)) {
-               // Start deleting procedure
-               $userid = '0'; $points = '0';
-               while ($content = SQL_FETCHARRAY($result)) {
-                       // Check if confirmation links are purged or not
-                       $result_links = SQL_QUERY_ESC("SELECT `id` FROM `{?_MYSQL_PREFIX?}_user_links` WHERE `stats_id`=%s LIMIT 1",
-                               array(bigintval($content['id'])), __FILE__, __LINE__);
-                       if (SQL_NUMROWS($result_links) == 1) {
-                               // Free memory
-                               SQL_FREERESULT($result_links);
-
-                               // At least one link was found, enougth to pay back the points
-                               if (($userid != $content['userid']) && (isValidUserId($userid)) && ($points > 0)) {
-                                       // Directly add points back to senders account
-                                       addPointsAutoPurge($userid, $points);
-                                       $points = '0';
-                               } // END - if
-
-                               // Add points
-                               $userid = $content['userid']; $points += $content['price']; $admin_points += $content['price'];
-
-                               // Remove confirmation links from queue
-                               addSql(SQL_QUERY_ESC("DELETE LOW_PRIORITY FROM `{?_MYSQL_PREFIX?}_user_links` WHERE `stats_id`=%s",
-                                       array(bigintval($content['id'])), __FILE__, __LINE__, false));
-
-                               // Update status of order
-                               addSql(SQL_QUERY_ESC("UPDATE `{?_MYSQL_PREFIX?}_pool` SET `data_type`='DELETED' WHERE `id`=%s LIMIT 1",
-                                       array(bigintval($content['pool_id'])), __FILE__, __LINE__, false));
-                       } // END - if
-               } // END - while
-
-               // Add last points to last user account
-               if ($points > 0) addPointsAutoPurge($userid, $points);
-       } // END - if
-
-       // Free memory
-       SQL_FREERESULT($result);
-
-       // Is the 'bonus' extension installed and activated?
-       if (isExtensionActive('bonus', true)) {
-               // Check for bonus campaigns
-               $result = SQL_QUERY("SELECT `id`, `points` FROM `{?_MYSQL_PREFIX?}_bonus` WHERE `data_type`='SEND' AND `timestamp` <= {?auto_purge?} ORDER BY `id` ASC", __FILE__, __LINE__);
-               if (!SQL_HASZERONUMS($result)) {
-                       // Start deleting procedure
-                       $points = '0';
-                       while ($content = SQL_FETCHARRAY($result)) {
-                               // Check if confirmation links are purged or not
-                               $result_links = SQL_QUERY_ESC("SELECT `id` FROM `{?_MYSQL_PREFIX?}_user_links` WHERE `bonus_id`=%s",
-                                       array(bigintval($content['id'])), __FILE__, __LINE__);
-                               if (!SQL_HASZERONUMS($result_links)) {
-                                       // At least one link was found, enougth to pay back the points
-                                       $points += $content['points'] * SQL_NUMROWS($result_links);
-
-                                       // Free memory
-                                       SQL_FREERESULT($result_links);
-
-                                       // Remove confirmation links from queue
-                                       addSql(SQL_QUERY_ESC("DELETE LOW_PRIORITY FROM `{?_MYSQL_PREFIX?}_user_links` WHERE `bonus_id`=%s",
-                                               array(bigintval($content['id'])), __FILE__, __LINE__, false));
-
-                                       // Update status of order
-                                       addSql(SQL_QUERY_ESC("UPDATE `{?_MYSQL_PREFIX?}_bonus` SET `data_type`='DELETED' WHERE `id`=%s LIMIT 1",
-                                               array(bigintval($content['id'])), __FILE__, __LINE__, false));
-                               } // END - if
-                       } // END - while
-
-                       // Add points to jackpot
-                       if (isExtensionActive('jackpot')) addPointsToJackpot($points);
-
-                       // Add points for the admin
-                       $admin_points += $points;
-               } // END - if
-
-               // Free memory
-               SQL_FREERESULT($result);
-       } // END - if
-
-       // Add points from deleted accounts to jackpot, but here just add to notify mail
-       if ($admin_points > 0) {
-               // Send mail to admin
-               sendAdminNotification('{--ADMIN_AUTOPURGE_SUBJECT--}', 'admin_autopurge_points', $admin_points);
-       } // END - if
-
-       // Run all SQLs here
-       runFilterChain('run_sqls');
-} // END - if
-
-// [EOF]
+// @DEPRECATED
 ?>
 ?>
index 917ff93dd157f18438735df9bf227c0368a05daf..f551ef47b7591c74e7b59193e56a1fa6505a87ab 100644 (file)
@@ -1,168 +1,3 @@
 <?php
 <?php
-/************************************************************************
- * Mailer v0.2.1-FINAL                                Start: 09/14/2008 *
- * ===================                          Last change: 09/14/2008 *
- *                                                                      *
- * -------------------------------------------------------------------- *
- * File              : purge-inactive.php                               *
- * -------------------------------------------------------------------- *
- * Short description : Purge of inactive users                          *
- * -------------------------------------------------------------------- *
- * Kurzbeschreibung  : Auto-Loeschung von inaktiven Mitgliedern         *
- * -------------------------------------------------------------------- *
- * $Revision::                                                        $ *
- * $Date::                                                            $ *
- * $Tag:: 0.2.1-FINAL                                                 $ *
- * $Author::                                                          $ *
- * -------------------------------------------------------------------- *
- * Copyright (c) 2003 - 2009 by Roland Haeder                           *
- * Copyright (c) 2009 - 2011 by Mailer Developer Team                   *
- * For more information visit: http://www.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
-
-// Abort if autopurge is not active or disabled by admin
-if ((!isExtensionActive('autopurge')) || (!isAutoPurgingActive())) {
-       // Abort here
-       return false;
-} // END - if
-
-// Shall I look for inactive accounts and autopurge inactive accounts?
-if (isAutopurgeInactiveEnabled()) {
-       // Init SQLs
-       initSqls();
-
-       // Init exclusion list
-       // @TODO Rewrite these if() blocks to a filter
-       $EXCLUDE_LIST = '';
-       if (isValidUserId(getDefRefid())) $EXCLUDE_LIST .= ' AND `userid` != {?def_refid?}';
-
-       // Check for more extensions
-       if (isExtensionActive('beg'))     $EXCLUDE_LIST .= ' AND `userid` != {?beg_userid?}';
-       if (isExtensionActive('bonus'))   $EXCLUDE_LIST .= ' AND `userid` != {?bonus_userid?}';
-       if (isExtensionActive('doubler')) $EXCLUDE_LIST .= ' AND `userid` != {?doubler_userid?}';
-
-       // Check for new holiday extension
-       if (isExtensionInstalledAndNewer('holiday', '0.1.3')) {
-               // Include only users with no active holiday
-               $EXCLUDE_LIST .= " AND `holiday_active`='N'";
-       } // END - if
-
-       // Check for all accounts
-       $result_inactive = SQL_QUERY("SELECT
-       `userid`, `email`, `last_online`
-FROM
-       `{?_MYSQL_PREFIX?}_user_data`
-WHERE
-       `status`='CONFIRMED' AND
-       (UNIX_TIMESTAMP() - `joined`) >= {?ap_inactive_since?} AND
-       (UNIX_TIMESTAMP() - `last_online`) >= {?ap_inactive_since?} AND
-       (UNIX_TIMESTAMP() - `ap_notified`) >= {?ap_inactive_since?}
-       " . $EXCLUDE_LIST . "
-ORDER BY
-       `userid` ASC", __FILE__, __LINE__);
-
-       if (!SQL_HASZERONUMS($result_inactive)) {
-               // Prepare variables and constants...
-               $useridsContent = '';
-               $content['since'] = (getApInactiveSince() / 60 / 60);
-               $content['time']  = (getApInactiveTime()  / 60 / 60);
-
-               // Mark found accounts as inactive and send an email
-               while ($row = SQL_FETCHARRAY($result_inactive)) {
-                       // Merge both arrays
-                       $content = merge_array($content, $row);
-
-                       // Remember userids for the admin
-                       $useridsContent .= $content['userid'] . ', ';
-
-                       // Get date/time from timestamp
-                       $content['last_online'] = generateDateTime($content['last_online'], 0);
-
-                       // Load mail template
-                       $message = loadEmailTemplate('member_autopurge_inactive', $content, bigintval($content['userid']));
-                       sendEmail($content['email'], '{--MEMBER_AUTOPURGE_INACTIVE_SUBJECT--}', $message);
-
-                       // Update this account
-                       addSql(SQL_QUERY_ESC("UPDATE `{?_MYSQL_PREFIX?}_user_data` SET `ap_notified`=UNIX_TIMESTAMP() WHERE `userid`=%s LIMIT 1",
-                               array(bigintval($content['userid'])), __FILE__, __LINE__, false));
-               } // END - while
-
-               // Remove last comma
-               $useridsContent = str_replace(', ', "\n", substr($useridsContent, 0, -2));
-
-               // Send mail notification to admin
-               sendAdminNotification('{--ADMIN_AUTOPURGE_INACTIVE_SUBJECT--}', 'admin_autopurge_inactive', $useridsContent);
-       } // END - if
-
-       // Free memory
-       SQL_FREERESULT($result_inactive);
-
-       // Now let's have a look for inactive accounts we want to delete we newly use the same exclude list
-       // here for e.g. excluding holiday users
-       $result_inactive = SQL_QUERY("SELECT
-       `userid`, `email`, `last_online`
-FROM
-       `{?_MYSQL_PREFIX?}_user_data`
-WHERE
-       `status`='CONFIRMED' AND
-       (UNIX_TIMESTAMP() - `joined`) >= {?ap_inactive_since?} AND
-       (UNIX_TIMESTAMP() - `last_online`) >= {?ap_inactive_since?} AND
-       (UNIX_TIMESTAMP() - `ap_notified`) >= {?ap_inactive_time?}
-" . $EXCLUDE_LIST . "
-ORDER BY
-       `userid` ASC", __FILE__, __LINE__);
-
-       if (!SQL_HASZERONUMS($result_inactive)) {
-               // Prepare userid array for admin...
-               $userids = array();
-
-               // Delete inactive accounts
-               while ($content = SQL_FETCHARRAY($result_inactive)) {
-                       // Remember userids for the admin
-                       $useridsContent[] = $content['userid'];
-
-                       // Get date/time from timestamp
-                       $content['last_online'] = generateDateTime($content['last_online'], 0);
-
-                       // Finnaly delete this inactive account
-                       deleteUserAccount($content['userid'], loadEmailTemplate('member_autopurge_delete', $content['last_online'], ''));
-               } // END - while
-
-               // Display all userids
-               $useridsContent = implode("\n", $userids);
-
-               // Send mail notification to admin
-               if (getConfig('ap_in_notify') == 'Y') {
-                       sendAdminNotification('{--ADMIN_AUTOPURGE_DELETE_SUBJECT--}', 'admin_autopurge_delete', $useridsContent);
-               } // END - if
-       } // END - if
-
-       // Free memory
-       SQL_FREERESULT($result_inactive);
-
-       // Run all SQLs
-       runFilterChain('run_sqls');
-} // END - if
-
-// [EOF]
+// @DEPRECATED
 ?>
 ?>
index 61f911bdfaeebb8b3a89ce03ac01d6c55f60ed8b..f551ef47b7591c74e7b59193e56a1fa6505a87ab 100644 (file)
@@ -1,139 +1,3 @@
 <?php
 <?php
-/************************************************************************
- * Mailer v0.2.1-FINAL                                Start: 05/29/2004 *
- * ===================                          Last change: 11/26/2004 *
- *                                                                      *
- * -------------------------------------------------------------------- *
- * File              : autopurge.php                                    *
- * -------------------------------------------------------------------- *
- * Short description : Automatical purging of outdated mail links       *
- * -------------------------------------------------------------------- *
- * Kurzbeschreibung  : Auto-Loeschung von veralteten Mail-Links         *
- * -------------------------------------------------------------------- *
- * $Revision::                                                        $ *
- * $Date::                                                            $ *
- * $Tag:: 0.2.1-FINAL                                                 $ *
- * $Author::                                                          $ *
- * -------------------------------------------------------------------- *
- * Copyright (c) 2003 - 2009 by Roland Haeder                           *
- * Copyright (c) 2009 - 2011 by Mailer Developer Team                   *
- * For more information visit: http://www.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
-
-// Abort if autopurge is not active or disabled by admin
-if ((!isExtensionActive('autopurge')) || (!isAutoPurgingActive()) || (getConfig('ap_del_mails') != 'Y')) {
-       // Abort here
-       return false;
-} // END - if
-
-// Okay, let's check for deleted mails
-$result_mails = SQL_QUERY("SELECT
-       `sender`
-FROM
-       `{?_MYSQL_PREFIX?}_pool`
-WHERE
-       `data_type`='DELETED' AND
-       (UNIX_TIMESTAMP() - `timestamp`) >= {?ap_dm_timeout?}
-ORDER BY
-       `sender` ASC", __FILE__, __LINE__);
-
-// Reset counter...
-$deletedStats = '0';
-
-// Do we have "purged" mails?
-if (!SQL_HASZERONUMS($result_mails)) {
-       // Okay, check for their sender's
-       while ($content = SQL_FETCHARRAY($result_mails)) {
-               // Check now...
-               if (!fetchUserData($content['sender'])) {
-                       // Okay we found some mails!
-                       SQL_QUERY_ESC("DELETE LOW_PRIORITY FROM `{?_MYSQL_PREFIX?}_pool` WHERE `sender`=%s",
-                               array(bigintval($content['sender'])), __FILE__, __LINE__);
-
-                       // Get all affected (deleted) rows
-                       $deletedStats += SQL_AFFECTEDROWS();
-
-                       // Reset query (to prevent possible errors) ...;
-                       $result_mails = SQL_QUERY("SELECT
-       `sender`
-FROM
-       `{?_MYSQL_PREFIX?}_pool`
-WHERE
-       `data_type`='DELETED' AND
-       (UNIX_TIMESTAMP() - `timestamp`) >= {?ap_dm_timeout?}
-ORDER BY
-       `sender` ASC", __FILE__, __LINE__);
-               } // END - if
-       } // END - while
-} // END - if
-
-// Free memory
-SQL_FREERESULT($result_mails);
-
-// Now let's check for stats entries as well;
-$result_mails = SQL_QUERY("SELECT
-       `userid` AS `sender`
-FROM
-       `{?_MYSQL_PREFIX?}_user_stats`
-WHERE
-       (UNIX_TIMESTAMP() - `timestamp_send`) >= {?ap_dm_timeout?}
-ORDER BY
-       `userid` ASC", __FILE__, __LINE__);
-
-// Do we have "purged" mails?
-if (!SQL_HASZERONUMS($result_mails)) {
-       // Okay, check for their sender's
-       while ($content = SQL_FETCHARRAY($result_mails)) {
-               // Check now...
-               if (!fetchUserData($content['sender'])) {
-                       // Okay we found some mails!
-                       SQL_QUERY_ESC("DELETE LOW_PRIORITY FROM `{?_MYSQL_PREFIX?}_user_stats` WHERE `userid`=%s",
-                               array(bigintval($content['sender'])), __FILE__, __LINE__);
-
-                       // Get all affected (deleted) rows
-                       $deletedStats += SQL_AFFECTEDROWS();
-
-                       // Reset query (to prevent possible errors) ...
-                       $result_mails = SQL_QUERY("SELECT
-       `userid` AS `sender`
-FROM
-       `{?_MYSQL_PREFIX?}_user_stats`
-WHERE
-       (UNIX_TIMESTAMP() - `timestamp_send`) >= {?ap_dm_timeout?}
-ORDER BY
-       `userid` ASC", __FILE__, __LINE__);
-               } // END - if
-       } // END - while
-} // END - if
-
-// Free memory
-SQL_FREERESULT($result_mails);
-
-// Do we have deleted mails and the admin want's to receive a notification
-if (($deletedStats > 0) && (getConfig('ap_dm_notify') == 'Y')) {
-       // Send out email to admin
-       sendAdminNotification('{--ADMIN_AUTOPURGE_DELETE_MAILS_SUBJECT--}', 'admin_autopurge_del_mails', $deletedStats);
-} // END - if
-
-// [EOF]
+// @DEPRECATED
 ?>
 ?>
index cc5ccd156f3df417d80a24298f88866725e71629..f551ef47b7591c74e7b59193e56a1fa6505a87ab 100644 (file)
@@ -1,70 +1,3 @@
 <?php
 <?php
-/************************************************************************
- * Mailer v0.2.1-FINAL                                Start: 09/14/2008 *
- * ===================                          Last change: 09/14/2008 *
- *                                                                      *
- * -------------------------------------------------------------------- *
- * File              : purge-tsks.php                                   *
- * -------------------------------------------------------------------- *
- * Short description : Automatical purging of outdated mail links       *
- * -------------------------------------------------------------------- *
- * Kurzbeschreibung  : Auto-Loeschung von veralteten Mail-Links         *
- * -------------------------------------------------------------------- *
- * $Revision::                                                        $ *
- * $Date::                                                            $ *
- * $Tag:: 0.2.1-FINAL                                                 $ *
- * $Author::                                                          $ *
- * -------------------------------------------------------------------- *
- * Copyright (c) 2003 - 2009 by Roland Haeder                           *
- * Copyright (c) 2009 - 2011 by Mailer Developer Team                   *
- * For more information visit: http://www.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
-
-// Abort if autopurge is not active or disabled by admin
-if ((!isExtensionActive('autopurge')) || (!isAutoPurgingActive())) {
-       // Abort here
-       return false;
-} // END - if
-
-// Check version (must be >= 0.1.9)
-if ((isExtensionInstalledAndNewer('task', '0.1.9')) && (getConfig('autopurge_tasks') == 'Y')) {
-       // Purge deleted tasks (no notification to admin)
-       SQL_QUERY("DELETE LOW_PRIORITY
-FROM
-       `{?_MYSQL_PREFIX?}_task_system`
-WHERE
-       `status`='DELETED' AND
-       (UNIX_TIMESTAMP() - `task_created`) >= {?ap_tasks_time?}", __FILE__, __LINE__);
-
-       // Get deleted rows
-       $deletedTasks = SQL_AFFECTEDROWS();
-
-       // Do we need to send a notification?
-       if (($deletedTasks > 0) && (getConfig('ap_tasks_notify') == 'Y')) {
-               // Send out email to admin
-               sendAdminNotification('{--ADMIN_AUTOPURGE_TASKS_SUBJECT--}', 'admin_autopurge_tsks', $deletedTasks);
-       } // END - if
-} // END - if
-
-//
+// @DEPRECATED
 ?>
 ?>
index c4eed02a77ac7fc0c926ad38d295ff08bde9d71d..f551ef47b7591c74e7b59193e56a1fa6505a87ab 100644 (file)
@@ -1,95 +1,3 @@
 <?php
 <?php
-/************************************************************************
- * Mailer v0.2.1-FINAL                                Start: 05/29/2004 *
- * ===================                          Last change: 11/26/2004 *
- *                                                                      *
- * -------------------------------------------------------------------- *
- * File              : autopurge.php                                    *
- * -------------------------------------------------------------------- *
- * Short description : Automatical purging of outdated mail links       *
- * -------------------------------------------------------------------- *
- * Kurzbeschreibung  : Auto-Loeschung von veralteten Mail-Links         *
- * -------------------------------------------------------------------- *
- * $Revision::                                                        $ *
- * $Date::                                                            $ *
- * $Tag:: 0.2.1-FINAL                                                 $ *
- * $Author::                                                          $ *
- * -------------------------------------------------------------------- *
- * Copyright (c) 2003 - 2009 by Roland Haeder                           *
- * Copyright (c) 2009 - 2011 by Mailer Developer Team                   *
- * For more information visit: http://www.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
-
-// Abort if autopurge is not active or disabled by admin
-if ((!isExtensionActive('autopurge')) || (!isAutoPurgingActive())) {
-       // Abort here
-       return false;
-} // END - if
-
-// Shall I auto-purge unconfirmed accounts?
-if (getConfig('autopurge_unconfirmed') == 'Y') {
-       // Init variables and find unconfirmed accounts which I shall auto-purge;
-       $result_uncon = SQL_QUERY("SELECT
-       `userid`, `email`, `joined`
-FROM
-       `{?_MYSQL_PREFIX?}_user_data`
-WHERE
-       `status`='UNCONFIRMED' AND
-       (UNIX_TIMESTAMP() - `joined`) >= {?ap_unconfirmed_time?}
-ORDER BY
-       `userid` ASC", __FILE__, __LINE__);
-       if (!SQL_HASZERONUMS($result_uncon)) {
-               // Prepare variable...
-               $userids = '';
-               $content['time'] = (getApUnconfirmedTime()  / 60 / 60);
-
-               // Delete inactive accounts
-               while ($row = SQL_FETCHARRAY($result_uncon)) {
-                       // Merge both arrays
-                       $content = merge_array($content, $row);
-
-                       // Remember userids for the admin
-                       $userids .= $content['userid'] . ', ';
-
-                       // Get date/time from timestamp
-                       $content['joined'] = generateDateTime($content['joined'], 0);
-
-                       // Finnaly delete this inactive account
-                       deleteUserAccount($content['userid'], loadEmailTemplate('member_autopurge_unconfirmed', $content, ''));
-               } // END - while
-
-               // Remove last comma
-               $userids = str_replace(', ', "\n", substr($userids, 0, -2));
-
-               // Send mail notification to admin
-               if (getConfig('ap_un_notify') == 'Y') {
-                       sendAdminNotification('{--ADMIN_AUTOPURGE_UNCONFIRMED_SUBJECT--}', 'admin_autopurge_unconfirmed', $userids);
-               } // END - if
-       } // END - if
-
-       // Free memory
-       SQL_FREERESULT($result_uncon);
-} // END - if
-
-// [EOF]
+// @DEPRECATED
 ?>
 ?>
index 85d69c69797335a074ebd870ea0b9f957c78e2e0..46878b7611c96f4b22939f5a594d8bf49ad176d5 100644 (file)
@@ -51,7 +51,7 @@ if (!defined('__SECURITY')) {
 
 // Init & set the include pool
 initIncludePool('autopurge');
 
 // Init & set the include pool
 initIncludePool('autopurge');
-setIncludePool('autopurge', getArrayFromDirectory('inc/autopurge/', 'purge-'));
+setIncludePool('autopurge', getArrayFromDirectory('inc/purge/', 'purge-'));
 
 // Run the filter
 runFilterChain('load_includes', 'autopurge');
 
 // Run the filter
 runFilterChain('load_includes', 'autopurge');
index 9aca9cf4141a34308c0e1864be12ac31ec312c21..a6a2e372cc7487910e7451b10345dab6fcab9661 100644 (file)
@@ -155,8 +155,7 @@ function loadExtension ($ext_name, $ext_mode, $ext_ver = '0.0', $dry_run = false
        // @TODO Do we still need this? setExtensionUpdateNotes('');
 
        // Include the extension file
        // @TODO Do we still need this? setExtensionUpdateNotes('');
 
        // Include the extension file
-       //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'Extension loaded.');
-       loadExtensionInclude();
+       loadCurrentExtensionInclude();
 
        // Is this extension deprecated?
        if (isExtensionDeprecated()) {
 
        // Is this extension deprecated?
        if (isExtensionDeprecated()) {
@@ -164,6 +163,7 @@ function loadExtension ($ext_name, $ext_mode, $ext_ver = '0.0', $dry_run = false
                doDeactivateExtension($ext_name);
 
                // Abort here
                doDeactivateExtension($ext_name);
 
                // Abort here
+               //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'Extension load aborted, ext_name=' . $ext_name);
                return false;
        } // END - if
 
                return false;
        } // END - if
 
@@ -174,13 +174,14 @@ function loadExtension ($ext_name, $ext_mode, $ext_ver = '0.0', $dry_run = false
        } // END - if
 
        // All fine!
        } // END - if
 
        // All fine!
+       //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'Extension successfully loaded, ext_name=' . $ext_name);
        return true;
 }
 
 // Registeres an extension and possible update depencies
        return true;
 }
 
 // Registeres an extension and possible update depencies
-function registerExtension ($ext_name, $taskId, $dry_run = false, $logout = true) {
+function registerExtension ($ext_name, $taskId, $dry_run = false) {
        // Set current extension name
        // Set current extension name
-       //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'ext_name=' . $ext_name . ',task_id=' . $taskId . ',dry_run=' . intval($dry_run) . ',logout=' . intval($logout) . ' - ENTERED!');
+       //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'ext_name=' . $ext_name . ',task_id=' . $taskId . ',dry_run=' . intval($dry_run) . ' - ENTERED!');
        setCurrentExtensionName($ext_name);
 
        // Enable dry-run
        setCurrentExtensionName($ext_name);
 
        // Enable dry-run
@@ -198,7 +199,7 @@ function registerExtension ($ext_name, $taskId, $dry_run = false, $logout = true
        // When this extension is already in registration/update phase, all is fine
        if ((isExtensionRegistrationRunning($ext_name)) || (isExtensionUpdateRunning($ext_name))) {
                // Then abort here with 'true' becaus it is fine
        // When this extension is already in registration/update phase, all is fine
        if ((isExtensionRegistrationRunning($ext_name)) || (isExtensionUpdateRunning($ext_name))) {
                // Then abort here with 'true' becaus it is fine
-               //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'currName=' . getCurrentExtensionName() . ' - ALREADY!');
+               //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'ext_name=' . $ext_name . ' - already in registration/update phase, all fine.');
                return true;
        } // END - if
 
                return true;
        } // END - if
 
@@ -414,20 +415,6 @@ function registerExtension ($ext_name, $taskId, $dry_run = false, $logout = true
                        array(bigintval($taskId)), __FUNCTION__, __LINE__);
        }
 
                        array(bigintval($taskId)), __FUNCTION__, __LINE__);
        }
 
-       // Is this the sql_patches?
-       //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'currentExtension=' . getCurrentExtensionName() . '/' . getExtensionMode());
-       if ((getCurrentExtensionName() == 'sql_patches') && ((getExtensionMode() == 'register') || (getExtensionMode() == 'remove')) && (!isExtensionDryRun()) && ($test)) {
-               //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'currentExtension=' . getCurrentExtensionName() . ': LOAD!');
-               if ($logout === true) {
-                       // Then redirect to logout
-                       redirectToUrl('modules.php?module=admin&amp;logout=1&amp;' . getExtensionMode() . '=sql_patches');
-               } else {
-                       // Add temporary filter
-                       registerFilter('shutdown', 'REDIRECT_TO_LOGOUT_SQL_PATCHES', true, true);
-                       $GLOBALS['ext_load_mode'] = getExtensionMode();
-               }
-       } // END - if
-
        // Return status code
        //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'currName=' . getCurrentExtensionName() . ',ext_name=' . $ext_name . ',test=' . intval($test) . ' - EXIT!');
        return $ret;
        // Return status code
        //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'currName=' . getCurrentExtensionName() . ',ext_name=' . $ext_name . ',test=' . intval($test) . ' - EXIT!');
        return $ret;
@@ -600,6 +587,7 @@ function isExtensionActive ($ext_name) {
 // Get version from extensions
 function getExtensionVersion ($ext_name, $force = false) {
        // By default no extension is found
 // Get version from extensions
 function getExtensionVersion ($ext_name, $force = false) {
        // By default no extension is found
+       //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'ext_name=' . $ext_name . ' - ENTERED!');
        $data['ext_version'] = 'false';
 
        // Empty extension name should be fixed!
        $data['ext_version'] = 'false';
 
        // Empty extension name should be fixed!
@@ -609,13 +597,15 @@ function getExtensionVersion ($ext_name, $force = false) {
        } // END - if
 
        // Extensions are all inactive during installation
        } // END - if
 
        // Extensions are all inactive during installation
-       if (isInstallationPhase()) return '';
-       //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'ext_name=' . $ext_name);
+       if (isInstallationPhase()) {
+               return '';
+       } // END - if
 
        // Is the cache written?
 
        // Is the cache written?
+       //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'ext_name=' . $ext_name . ' - Checking cache ...');
        if (isset($GLOBALS['cache_array']['extension']['ext_version'][$ext_name])) {
                // Load data from cache
        if (isset($GLOBALS['cache_array']['extension']['ext_version'][$ext_name])) {
                // Load data from cache
-               //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, $ext_name . ': CACHE!');
+               //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'ext_name=' . $ext_name . ': CACHE!');
                $data['ext_version'] = $GLOBALS['cache_array']['extension']['ext_version'][$ext_name];
 
                // Count cache hits
                $data['ext_version'] = $GLOBALS['cache_array']['extension']['ext_version'][$ext_name];
 
                // Count cache hits
@@ -624,7 +614,7 @@ function getExtensionVersion ($ext_name, $force = false) {
                // Load from database
                $result = SQL_QUERY_ESC("SELECT `ext_version` FROM `{?_MYSQL_PREFIX?}_extensions` WHERE `ext_name`='%s' LIMIT 1",
                        array($ext_name), __FUNCTION__, __LINE__);
                // Load from database
                $result = SQL_QUERY_ESC("SELECT `ext_version` FROM `{?_MYSQL_PREFIX?}_extensions` WHERE `ext_name`='%s' LIMIT 1",
                        array($ext_name), __FUNCTION__, __LINE__);
-               //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, $ext_name . ': DB - '.SQL_NUMROWS($result).'');
+               //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'ext_name=' . $ext_name . ': DB - '.SQL_NUMROWS($result).'');
 
                // Is the extension there?
                if (SQL_NUMROWS($result) == 1) {
 
                // Is the extension there?
                if (SQL_NUMROWS($result) == 1) {
@@ -1206,27 +1196,29 @@ function isExtensionDeprecated () {
 
 // Setter for EXT_UPDATE_DEPENDS flag
 function addExtensionDependency ($updateDepends) {
 
 // Setter for EXT_UPDATE_DEPENDS flag
 function addExtensionDependency ($updateDepends) {
-       //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'currName=' . getCurrentExtensionName() . '/' . $updateDepends . ' - ENTERED!');
        // Is the update depency empty? (NEED TO BE FIXED!)
        // Is the update depency empty? (NEED TO BE FIXED!)
+       //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'currName=' . getCurrentExtensionName() . '/' . $updateDepends . ',extensionMode=' . getExtensionMode() . ' - ENTERED!');
        if (empty($updateDepends)) {
                // Please report this bug!
                debug_report_bug(__FUNCTION__, __LINE__, 'updateDepends is empty: currentExtension=' . getCurrentExtensionName());
        } // END - if
 
        // Is it not yet added?
        if (empty($updateDepends)) {
                // Please report this bug!
                debug_report_bug(__FUNCTION__, __LINE__, 'updateDepends is empty: currentExtension=' . getCurrentExtensionName());
        } // END - if
 
        // Is it not yet added?
-       /* Only for debugging!
        if ((isset($updateDepends, $GLOBALS['ext_running_updates'][getCurrentExtensionName()])) && (in_array($updateDepends, getExtensionUpdatesRunning()))) {
        if ((isset($updateDepends, $GLOBALS['ext_running_updates'][getCurrentExtensionName()])) && (in_array($updateDepends, getExtensionUpdatesRunning()))) {
-               // Double-adding isn't fine, too
-               debug_report_bug(__FUNCTION__, __LINE__, '() called twice: updateDepends=' . $updateDepends . ',currentExtension=' . getCurrentExtensionName());
+               /*
+                * Double-adding isn't fine, too. This may mean that
+                * addExtensionDependency() was called outside the switch() command in
+                * the extension's file which requires fixing.
+                */
+               debug_report_bug(__FUNCTION__, __LINE__, 'updateDepends=' . $updateDepends . ',extensionMode=' . getExtensionMode() . ',currentExtension=' . getCurrentExtensionName() . ' - CALLED TWICE!');
        } // END - if
        } // END - if
-       */
 
        // Add it to the list of extension update depencies map
        $GLOBALS['ext_update_depends'][getCurrentExtensionName()][] = (string) $updateDepends;
 
        // Remember it in the list of running updates
        $GLOBALS['ext_running_updates'][getCurrentExtensionName()][] = $updateDepends;
 
        // Add it to the list of extension update depencies map
        $GLOBALS['ext_update_depends'][getCurrentExtensionName()][] = (string) $updateDepends;
 
        // Remember it in the list of running updates
        $GLOBALS['ext_running_updates'][getCurrentExtensionName()][] = $updateDepends;
-       //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'currName=' . getCurrentExtensionName() . '/' . $updateDepends . ' - EXIT!');
+       //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'currName=' . getCurrentExtensionName() . '/' . $updateDepends . ',extensionMode=' . getExtensionMode() . ' - EXIT!');
 }
 
 // Getter for running updates
 }
 
 // Getter for running updates
@@ -1293,9 +1285,9 @@ function isExtensionUpdateRunning ($ext_name) {
                foreach ($GLOBALS['ext_running_updates'] as $ext1=>$depends) {
                        // Is it found?
                        if (($ext1 == $ext_name) || ($isRunning === true)) {
                foreach ($GLOBALS['ext_running_updates'] as $ext1=>$depends) {
                        // Is it found?
                        if (($ext1 == $ext_name) || ($isRunning === true)) {
-                               // found
-                               logDebugMessage(__FUNCTION__, __LINE__, 'ext1=' . $ext1 . ',ext_name=' . $ext_name . ',isRunning=' . intval($isRunning));
+                               // Found
                                $isRunning = true;
                                $isRunning = true;
+                               logDebugMessage(__FUNCTION__, __LINE__, 'ext1=' . $ext1 . ',ext_name=' . $ext_name . ',isRunning=' . intval($isRunning));
                                break;
                        } // END - if
                } // END - foreach
                                break;
                        } // END - if
                } // END - foreach
@@ -1578,7 +1570,7 @@ function getExtensionMode () {
 
 // Setter for dry-run
 function enableExtensionDryRun ($dry_run = true) {
 
 // Setter for dry-run
 function enableExtensionDryRun ($dry_run = true) {
-       //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'getCurrentExtensionName()='.getCurrentExtensionName().',dry='.intval($dry_run));
+       //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'getCurrentExtensionName()='.getCurrentExtensionName().',dry_run='.intval($dry_run));
        $GLOBALS['ext_dry_run'] = (bool) $dry_run;
 }
 
        $GLOBALS['ext_dry_run'] = (bool) $dry_run;
 }
 
@@ -1678,8 +1670,8 @@ function ifExtensionHasLanguageFile ($ext_name) {
        return ($GLOBALS['cache_array']['extension']['ext_lang'][$ext_name] == 'Y');
 }
 
        return ($GLOBALS['cache_array']['extension']['ext_lang'][$ext_name] == 'Y');
 }
 
-// Load an extension's include file
-function loadExtensionInclude () {
+// Load current extension's include file
+function loadCurrentExtensionInclude () {
        // Is it readable?
        if (!isExtensionIncludeReadable()) {
                // Not readable
        // Is it readable?
        if (!isExtensionIncludeReadable()) {
                // Not readable
@@ -1696,7 +1688,9 @@ function loadExtensionInclude () {
 // Checks wether an extension is readable
 function isExtensionIncludeReadable ($ext_name = '') {
        // If empty, use current
 // Checks wether an extension is readable
 function isExtensionIncludeReadable ($ext_name = '') {
        // If empty, use current
-       if (empty($ext_name)) $ext_name = getCurrentExtensionName();
+       if (empty($ext_name)) {
+               $ext_name = getCurrentExtensionName();
+       } // END - if
 
        // Array found?
        if (!isset($GLOBALS['ext_inc_readable'][$ext_name])) {
 
        // Array found?
        if (!isset($GLOBALS['ext_inc_readable'][$ext_name])) {
@@ -1904,7 +1898,7 @@ function addConfigAddSql ($columnName, $columnSql) {
        if (!isSqlTableColumnFound('{?_MYSQL_PREFIX?}_config', $columnName)) {
                // Not found, so add it
                addExtensionSql('ALTER TABLE `{?_MYSQL_PREFIX?}_config` ADD `' . $columnName . '` ' . $columnSql);
        if (!isSqlTableColumnFound('{?_MYSQL_PREFIX?}_config', $columnName)) {
                // Not found, so add it
                addExtensionSql('ALTER TABLE `{?_MYSQL_PREFIX?}_config` ADD `' . $columnName . '` ' . $columnSql);
-       } else {
+       } elseif (isDebugModeEnabled()) {
                // Add debug line
                logDebugMessage(__FUNCTION__, __LINE__, 'Configuration entry ' . $columnName . ' already created. columnSql=' . $columnSql);
        }
                // Add debug line
                logDebugMessage(__FUNCTION__, __LINE__, 'Configuration entry ' . $columnName . ' already created. columnSql=' . $columnSql);
        }
@@ -1916,7 +1910,7 @@ function addConfigDropSql ($columnName) {
        if (isSqlTableColumnFound('{?_MYSQL_PREFIX?}_config', $columnName)) {
                // Found, so add it
                addExtensionSql('ALTER TABLE `{?_MYSQL_PREFIX?}_config` DROP `' . $columnName . '`');
        if (isSqlTableColumnFound('{?_MYSQL_PREFIX?}_config', $columnName)) {
                // Found, so add it
                addExtensionSql('ALTER TABLE `{?_MYSQL_PREFIX?}_config` DROP `' . $columnName . '`');
-       } else {
+       } elseif (isDebugModeEnabled()) {
                // Add debug line, debug_report_bug() would cause some extenion updates fail
                logDebugMessage(__FUNCTION__, __LINE__, 'Configuration entry ' . $columnName . ' not found.');
        }
                // Add debug line, debug_report_bug() would cause some extenion updates fail
                logDebugMessage(__FUNCTION__, __LINE__, 'Configuration entry ' . $columnName . ' not found.');
        }
@@ -1976,6 +1970,7 @@ function markExtensionAsLoaded ($ext_name) {
        } // END - if
 
        // Mark it
        } // END - if
 
        // Mark it
+       //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, sprintf("ext_name=%s,ext_loaded=true", $ext_name));
        $GLOBALS['ext_loaded']['ext_name'][$ext_name] = true;
 }
 
        $GLOBALS['ext_loaded']['ext_name'][$ext_name] = true;
 }
 
index 050973d689eb30843a6a49363abee93d264b13b1..c4f29aaac500579eefacb5b5eca2988a15eff793 100644 (file)
@@ -50,7 +50,7 @@ setExtensionVersionHistory(array('0.0'));
 enableExtensionProductive(false);
 
 switch (getExtensionMode()) {
 enableExtensionProductive(false);
 
 switch (getExtensionMode()) {
-       case 'register': // Do stuff when installation is running (modules.php?module=admin is called)
+       case 'register': // Do stuff when installation is running
                // SQL commands to run
 
                // Register module
                // SQL commands to run
 
                // Register module
index 53761d0557f76024d5c890626c9e437c290f8651..c496295dc2ec42ac243feb169a06106b5a5992f2 100644 (file)
@@ -47,7 +47,7 @@ setThisExtensionVersion('0.0.9');
 setExtensionVersionHistory(array('0.0', '0.0.1', '0.0.2', '0.0.3', '0.0.4', '0.0.5', '0.0.6', '0.0.7', '0.0.8', '0.0.9'));
 
 switch (getExtensionMode()) {
 setExtensionVersionHistory(array('0.0', '0.0.1', '0.0.2', '0.0.3', '0.0.4', '0.0.5', '0.0.6', '0.0.7', '0.0.8', '0.0.9'));
 
 switch (getExtensionMode()) {
-       case 'register': // Do stuff when installation is running (modules.php?module=admin is called)
+       case 'register': // Do stuff when installation is running
                // SQL commands to run
                addGuestMenuSql('main', 'active', 'Heute Online', 'N', 'Y', 10);
                break;
                // SQL commands to run
                addGuestMenuSql('main', 'active', 'Heute Online', 'N', 'Y', 10);
                break;
index 784aa3c55caaedc51b67778b11d18afb32fbd971..63e00857dcb2e2f4e028898f71f14b41236d5193 100644 (file)
@@ -50,7 +50,7 @@ setExtensionVersionHistory(array('0.0', '0.1.0', '0.2.0', '0.3.0', '0.3.1', '0.4
 setExtensionAlwaysActive('Y');
 
 switch (getExtensionMode()) {
 setExtensionAlwaysActive('Y');
 
 switch (getExtensionMode()) {
-       case 'register': // Do stuff when installation is running (modules.php?module=admin is called)
+       case 'register': // Do stuff when installation is running
                // SQL commands to run
                addAdminMenuSql('admins', NULL, 'Admin-Management','Administratoren anlegen, l&ouml;schen oder Passwort/E-Mail Adresse &auml;ndern.',1);
                addAdminMenuSql('admins','admins_add','Admin hinzuf&uuml;gen','Neuen Admin-Account anlegen',0);
                // SQL commands to run
                addAdminMenuSql('admins', NULL, 'Admin-Management','Administratoren anlegen, l&ouml;schen oder Passwort/E-Mail Adresse &auml;ndern.',1);
                addAdminMenuSql('admins','admins_add','Admin hinzuf&uuml;gen','Neuen Admin-Account anlegen',0);
index 738226819bb0598a4fb3372fd506a7abf86da0e8..25a48bfa2a0eae4f1a7fbf26a1c208e3d405504c 100644 (file)
@@ -47,7 +47,7 @@ setThisExtensionVersion('0.0');
 setExtensionVersionHistory(array('0.0'));
 
 switch (getExtensionMode()) {
 setExtensionVersionHistory(array('0.0'));
 
 switch (getExtensionMode()) {
-       case 'register': // Do stuff when installation is running (modules.php?module=admin is called)
+       case 'register': // Do stuff when installation is running
                // Remove all other themes
                addExtensionSql("DELETE LOW_PRIORITY FROM `{?_MYSQL_PREFIX?}_extensions` WHERE ext_name LIKE 'admintheme%'");
                addExtensionSql("UPDATE `{?_MYSQL_PREFIX?}_admin_menu` SET `action`='stats' WHERE `what`='usr_online'");
                // Remove all other themes
                addExtensionSql("DELETE LOW_PRIORITY FROM `{?_MYSQL_PREFIX?}_extensions` WHERE ext_name LIKE 'admintheme%'");
                addExtensionSql("UPDATE `{?_MYSQL_PREFIX?}_admin_menu` SET `action`='stats' WHERE `what`='usr_online'");
index 911bd14f906d38433fb8500348cb99a2dc95c361..b3220a14bd21abd9827b6870b1f822c35d622846 100644 (file)
@@ -47,7 +47,7 @@ setThisExtensionVersion('0.0');
 setExtensionVersionHistory(array('0.0'));
 
 switch (getExtensionMode()) {
 setExtensionVersionHistory(array('0.0'));
 
 switch (getExtensionMode()) {
-       case 'register': // Do stuff when installation is running (modules.php?module=admin is called)
+       case 'register': // Do stuff when installation is running
                // Remove all other menu themes
                addExtensionSql("DELETE LOW_PRIORITY FROM `{?_MYSQL_PREFIX?}_extensions` WHERE ext_name LIKE 'admintheme%'");
                addExtensionSql("UPDATE `{?_MYSQL_PREFIX?}_admin_menu` SET `action`='misc' WHERE `what`='usr_online' LIMIT 1");
                // Remove all other menu themes
                addExtensionSql("DELETE LOW_PRIORITY FROM `{?_MYSQL_PREFIX?}_extensions` WHERE ext_name LIKE 'admintheme%'");
                addExtensionSql("UPDATE `{?_MYSQL_PREFIX?}_admin_menu` SET `action`='misc' WHERE `what`='usr_online' LIMIT 1");
index b2e3a5eef70a3f5297d311cf3efcd7c8bef212a1..e53bdce357ad1076823229e0f577687dcff82710 100644 (file)
@@ -51,7 +51,7 @@ setExtensionVersionHistory(array('0.0'));
 enableExtensionProductive(false);
 
 switch (getExtensionMode()) {
 enableExtensionProductive(false);
 
 switch (getExtensionMode()) {
-       case 'register': // Do stuff when installation is running (modules.php?module=admin is called)
+       case 'register': // Do stuff when installation is running
                // SQL commands to run
                break;
 
                // SQL commands to run
                break;
 
index 67db090c2763586a8d89331e488f7234eff0aa22..470ff3f03600f08da802245c56bb200da76229ac 100644 (file)
@@ -50,7 +50,7 @@ setExtensionVersionHistory(array('0.0', '0.1.0', '0.1.1', '0.1.2', '0.1.3', '0.1
 setExtensionAlwaysActive('Y');
 
 switch (getExtensionMode()) {
 setExtensionAlwaysActive('Y');
 
 switch (getExtensionMode()) {
-       case 'register': // Do stuff when installation is running (modules.php?module=admin is called)
+       case 'register': // Do stuff when installation is running
                // Add dependency to 'bonus'
                addExtensionDependency('bonus');
 
                // Add dependency to 'bonus'
                addExtensionDependency('bonus');
 
index b1e1944ba5dc11f49f04c2ba4b5d2a5ee1d363e3..8fae4541be46fec082b59f2247e2b9ff0f6f1061 100644 (file)
@@ -50,7 +50,7 @@ setExtensionVersionHistory(array('0.0'));
 enableExtensionProductive(false);
 
 switch (getExtensionMode()) {
 enableExtensionProductive(false);
 
 switch (getExtensionMode()) {
-       case 'register': // Do stuff when installation is running (modules.php?module=admin is called)
+       case 'register': // Do stuff when installation is running
                // SQL commands to run
                break;
 
                // SQL commands to run
                break;
 
index 34ebec57293d9df42965ddfd2d3fcff5e3368d77..776ba805a9b9cd380f741b8b35cf47c8cba71c99 100644 (file)
@@ -50,7 +50,7 @@ setExtensionVersionHistory(array('0.0'));
 enableExtensionProductive(false);
 
 switch (getExtensionMode()) {
 enableExtensionProductive(false);
 
 switch (getExtensionMode()) {
-       case 'register': // Do stuff when installation is running (modules.php?module=admin is called)
+       case 'register': // Do stuff when installation is running
                // SQL commands to run
                addDropTableSql('bank_accounts');
                addCreateTableSql('bank_accounts', "(
                // SQL commands to run
                addDropTableSql('bank_accounts');
                addCreateTableSql('bank_accounts', "(
index e05528c26b2ed499877b2a3222c295561e7abee8..c2e71c2fe6040c8098d55974c88357d057d82d73 100644 (file)
@@ -47,7 +47,7 @@ setThisExtensionVersion('0.2.9');
 setExtensionVersionHistory(array('0.0', '0.0.1', '0.0.2', '0.0.3', '0.0.4', '0.0.5', '0.0.6', '0.0.7', '0.0.8', '0.0.9', '0.1.0', '0.1.1', '0.1.2', '0.1.3', '0.1.4', '0.1.5', '0.1.6', '0.1.7', '0.1.8', '0.1.9', '0.2.0', '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'));
 
 switch (getExtensionMode()) {
 setExtensionVersionHistory(array('0.0', '0.0.1', '0.0.2', '0.0.3', '0.0.4', '0.0.5', '0.0.6', '0.0.7', '0.0.8', '0.0.9', '0.1.0', '0.1.1', '0.1.2', '0.1.3', '0.1.4', '0.1.5', '0.1.6', '0.1.7', '0.1.8', '0.1.9', '0.2.0', '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'));
 
 switch (getExtensionMode()) {
-       case 'register': // Do stuff when installation is running (modules.php?module=admin is called)
+       case 'register': // Do stuff when installation is running
                // SQL commands to run
                addAdminMenuSql('setup', 'config_beg', 'Bettel-Link', 'IP-Sperre, {OPEN_CONFIG}POINTS{CLOSE_CONFIG}-Verg&uuml;tung usw. k&ouml;nnen Sie hier einstellen.', 10);
                addGuestMenuSql('main', 'beg', '{OPEN_CONFIG}POINTS{CLOSE_CONFIG} erbetteln!', 'N', 'Y', 4);
                // SQL commands to run
                addAdminMenuSql('setup', 'config_beg', 'Bettel-Link', 'IP-Sperre, {OPEN_CONFIG}POINTS{CLOSE_CONFIG}-Verg&uuml;tung usw. k&ouml;nnen Sie hier einstellen.', 10);
                addGuestMenuSql('main', 'beg', '{OPEN_CONFIG}POINTS{CLOSE_CONFIG} erbetteln!', 'N', 'Y', 4);
index 5e469e418d827dd1b1e67eb97f9fcb21c632c621..796acfd902c3719e44c109122b9e54a666186493 100644 (file)
@@ -47,7 +47,7 @@ setThisExtensionVersion('0.3.9');
 setExtensionVersionHistory(array('0.0', '0.1.0', '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'));
 
 switch (getExtensionMode()) {
 setExtensionVersionHistory(array('0.0', '0.1.0', '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'));
 
 switch (getExtensionMode()) {
-       case 'register': // Do stuff when installation is running (modules.php?module=admin is called)
+       case 'register': // Do stuff when installation is running
                // SQL commands to run
                addExtensionSql("ALTER TABLE `{?_MYSQL_PREFIX?}_user_data` ADD birthday_sent VARCHAR(10) NOT NULL DEFAULT 0");
                break;
                // SQL commands to run
                addExtensionSql("ALTER TABLE `{?_MYSQL_PREFIX?}_user_data` ADD birthday_sent VARCHAR(10) NOT NULL DEFAULT 0");
                break;
index 8d70c03de499044cb4f2e705d1c7921367ece748..ed2142c40e3a9ec5759d0789d88b9337227861b0 100644 (file)
@@ -50,7 +50,7 @@ setExtensionVersionHistory(array('0.0'));
 enableExtensionProductive(false);
 
 switch (getExtensionMode()) {
 enableExtensionProductive(false);
 
 switch (getExtensionMode()) {
-       case 'register': // Do stuff when installation is running (modules.php?module=admin is called)
+       case 'register': // Do stuff when installation is running
                // SQL commands to run
 
                // Register module
                // SQL commands to run
 
                // Register module
index b62cd5c1feef524a110bf4ed26c0b4d94b0d95af..1eed289cda309f94b930a7a6890ae992bcf9f8c0 100644 (file)
@@ -47,7 +47,7 @@ setThisExtensionVersion('0.9.4');
 setExtensionVersionHistory(array('0.0', '0.1.6', '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', '0.6.0', '0.6.1', '0.6.2', '0.6.3', '0.6.4', '0.6.5', '0.6.6', '0.6.7', '0.6.8', '0.6.9', '0.7.0', '0.7.1', '0.7.2', '0.7.3', '0.7.4', '0.7.5', '0.7.6', '0.7.7', '0.7.8', '0.7.9', '0.8.0', '0.8.1', '0.8.2', '0.8.3', '0.8.4', '0.8.5', '0.8.6', '0.8.7', '0.8.8', '0.8.9', '0.9.0', '0.9.1', '0.9.2', '0.9.3', '0.9.4'));
 
 switch (getExtensionMode()) {
 setExtensionVersionHistory(array('0.0', '0.1.6', '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', '0.6.0', '0.6.1', '0.6.2', '0.6.3', '0.6.4', '0.6.5', '0.6.6', '0.6.7', '0.6.8', '0.6.9', '0.7.0', '0.7.1', '0.7.2', '0.7.3', '0.7.4', '0.7.5', '0.7.6', '0.7.7', '0.7.8', '0.7.9', '0.8.0', '0.8.1', '0.8.2', '0.8.3', '0.8.4', '0.8.5', '0.8.6', '0.8.7', '0.8.8', '0.8.9', '0.9.0', '0.9.1', '0.9.2', '0.9.3', '0.9.4'));
 
 switch (getExtensionMode()) {
-       case 'register': // Do stuff when installation is running (modules.php?module=admin is called)
+       case 'register': // Do stuff when installation is running
                // Add dependency to 'user'
                addExtensionDependency('user');
 
                // Add dependency to 'user'
                addExtensionDependency('user');
 
index 4988be1bd67728cc1952fab8ec09405f92a01130..5ec0c9e5c190c0af564d3e1d0761914b26f69ac3 100644 (file)
@@ -50,7 +50,7 @@ setExtensionVersionHistory(array('0.0'));
 enableExtensionProductive(false);
 
 switch (getExtensionMode()) {
 enableExtensionProductive(false);
 
 switch (getExtensionMode()) {
-       case 'register': // Do stuff when installation is running (modules.php?module=admin is called)
+       case 'register': // Do stuff when installation is running
                // Configuration entries
                addConfigAddSql('booking_per_page', 'TINYINT(3) UNSIGNED NOT NULL DEFAULT 10');
                addConfigAddSql('booking_purge', 'BIGINT(20) UNSIGNED NOT NULL DEFAULT ' . (getOneDay() * 3));
                // Configuration entries
                addConfigAddSql('booking_per_page', 'TINYINT(3) UNSIGNED NOT NULL DEFAULT 10');
                addConfigAddSql('booking_purge', 'BIGINT(20) UNSIGNED NOT NULL DEFAULT ' . (getOneDay() * 3));
index 25b0cb1434d0b86ebfd0f6a2bf3ee366d9330f3d..13233c2aee258c4e05dd399a314732e8bb7bcd86 100644 (file)
@@ -52,7 +52,7 @@ setExtensionAlwaysActive('Y');
 
 // Which load mode?
 switch (getExtensionMode()) {
 
 // Which load mode?
 switch (getExtensionMode()) {
-       case 'register': // Do stuff when installation is running (modules.php?module=admin is called)
+       case 'register': // Do stuff when installation is running
                break;
 
        case 'remove': // Do stuff when removing extension
                break;
 
        case 'remove': // Do stuff when removing extension
index 424f9f2e5e407c4c6ae237ca80655c58c05c24a4..a43ac95a2e4d9e08059b33d92aefc858d582a5f3 100644 (file)
@@ -50,7 +50,7 @@ setExtensionVersionHistory(array('0.0'));
 enableExtensionProductive(false);
 
 switch (getExtensionMode()) {
 enableExtensionProductive(false);
 
 switch (getExtensionMode()) {
-       case 'register': // Do stuff when installation is running (modules.php?module=admin is called)
+       case 'register': // Do stuff when installation is running
                // SQL commands to run
                break;
 
                // SQL commands to run
                break;
 
index 729594731d6ac49312b262e90ca4964dd0810408..a5a836bd36bb01f325a231a823eccb4b6de012c4 100644 (file)
@@ -50,7 +50,7 @@ setExtensionVersionHistory(array('0.0', '0.0.1', '0.0.2', '0.0.3', '0.0.4'));
 setExtensionAlwaysActive('Y');
 
 switch (getExtensionMode()) {
 setExtensionAlwaysActive('Y');
 
 switch (getExtensionMode()) {
-       case 'register': // Do stuff when installation is running (modules.php?module=admin is called)
+       case 'register': // Do stuff when installation is running
                // SQL commands to run
                addDropTableSql('countries');
                addCreateTableSql('countries', "(
                // SQL commands to run
                addDropTableSql('countries');
                addCreateTableSql('countries', "(
index 6d3671a88e8f2b2a729f907eead7b60f5d835622..7d8755c03bd148ef4230554c9d37a867ae401002 100644 (file)
@@ -52,13 +52,16 @@ setExtensionVersionHistory(array('0.0'));
 enableExtensionProductive(false);
 
 switch (getExtensionMode()) {
 enableExtensionProductive(false);
 
 switch (getExtensionMode()) {
-       case 'register': // Do stuff when installtion is running (modules.php?module=admin&action=login is called)
+       case 'register': // Do stuff when installtion is running
+               // This extension requires an up-to-date user
+               addExtensionDependency('user');
+
                // Coupon data
                addDropTableSql('coupon_data');
                addCreateTableSql('coupon_data', "(
 `id` BIGINT(20) UNSIGNED NOT NULL AUTO_INCREMENT,
                // Coupon data
                addDropTableSql('coupon_data');
                addCreateTableSql('coupon_data', "(
 `id` BIGINT(20) UNSIGNED NOT NULL AUTO_INCREMENT,
-`timestamp_created` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
-`timestamp_expired` TIMESTAMP NULL DEFAULT NULL,
+`coupon_created` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
+`coupon_expired` TIMESTAMP NULL DEFAULT NULL,
 `coupon_type` ENUM('CODE','API') NOT NULL DEFAULT 'CODE',
 `total_created` BIGINT(20) UNSIGNED NOT NULL DEFAULT 0,
 `total_used` BIGINT(20) UNSIGNED NOT NULL DEFAULT 0,
 `coupon_type` ENUM('CODE','API') NOT NULL DEFAULT 'CODE',
 `total_created` BIGINT(20) UNSIGNED NOT NULL DEFAULT 0,
 `total_used` BIGINT(20) UNSIGNED NOT NULL DEFAULT 0,
@@ -83,6 +86,11 @@ UNIQUE KEY (`coupon_code`)
                // Configuration entries
                addConfigAddSql('coupon_default_time', 'BIGINT(20) NOT NULL DEFAULT ' . (getOneDay() * 7));
                addConfigAddSql('coupon_default_points', 'FLOAT(20,5) NOT NULL DEFAULT 100.00000');
                // Configuration entries
                addConfigAddSql('coupon_default_time', 'BIGINT(20) NOT NULL DEFAULT ' . (getOneDay() * 7));
                addConfigAddSql('coupon_default_points', 'FLOAT(20,5) NOT NULL DEFAULT 100.00000');
+               addConfigAddSql('coupon_points_account', "ENUM('ORDER','GENERAL') NOT NULL DEFAULT 'ORDER'");
+               addConfigAddSql('coupon_payment_method', "ENUM('DIRECT','REF') NOT NULL DEFAULT 'DIRECT'");
+               addConfigAddSql('coupon_locked_points_mode', "ENUM('LOCKED','UNLOCKED') NOT NULL DEFAULT 'LOCKED'");
+               addConfigAddSql('coupon_autopurge_time', 'BIGINT(20) NOT NULL DEFAULT ' . (getOneDay() * 7));
+               addConfigAddSql('coupon_userid', 'BIGINT(20) UNSIGNED NOT NULL DEFAULT 0');
 
                // User data table
                addExtensionSql("ALTER TABLE `{?_MYSQL_PREFIX?}_user_data` ADD `receiving_coupons` ENUM('Y','N') NOT NULL DEFAULT 'Y'");
 
                // User data table
                addExtensionSql("ALTER TABLE `{?_MYSQL_PREFIX?}_user_data` ADD `receiving_coupons` ENUM('Y','N') NOT NULL DEFAULT 'Y'");
@@ -97,6 +105,9 @@ UNIQUE KEY (`coupon_code`)
                addMemberMenuSql('coupon', NULL, 'Gutscheine', 'N', 'Y', 3);
                addMemberMenuSql('coupon', 'cash_coupon', 'Gutschein einl&ouml;sen', 'N', 'Y', 1);
                addMemberMenuSql('coupon', 'list_coupon', 'Eingel&ouml;ste auflisten', 'N', 'Y', 2);
                addMemberMenuSql('coupon', NULL, 'Gutscheine', 'N', 'Y', 3);
                addMemberMenuSql('coupon', 'cash_coupon', 'Gutschein einl&ouml;sen', 'N', 'Y', 1);
                addMemberMenuSql('coupon', 'list_coupon', 'Eingel&ouml;ste auflisten', 'N', 'Y', 2);
+
+               // Add filter (for changing user_points column dynamically
+               registerFilter('determine_points_column_name', 'COUPON_CHANGE_POINTS_COLUMN_NAME', false, true, isExtensionDryRun());
                break;
 
        case 'remove': // Do stuff when removing extension
                break;
 
        case 'remove': // Do stuff when removing extension
@@ -105,6 +116,9 @@ UNIQUE KEY (`coupon_code`)
                addDropTableSql('user_coupons');
                addExtensionSql("DELETE LOW_PRIORITY FROM `{?_MYSQL_PREFIX?}_admin_menu` WHERE `action`='coupon' LIMIT 4");
                addExtensionSql("DELETE LOW_PRIORITY FROM `{?_MYSQL_PREFIX?}_member_menu` WHERE `action`='coupon' LIMIT 3");
                addDropTableSql('user_coupons');
                addExtensionSql("DELETE LOW_PRIORITY FROM `{?_MYSQL_PREFIX?}_admin_menu` WHERE `action`='coupon' LIMIT 4");
                addExtensionSql("DELETE LOW_PRIORITY FROM `{?_MYSQL_PREFIX?}_member_menu` WHERE `action`='coupon' LIMIT 3");
+
+               // Remove all filters
+               unregisterFilter(__FUNCTION__, __LINE__, 'determine_points_column_name', 'COUPON_CHANGE_POINTS_COLUMN_NAME', true, isExtensionDryRun());
                break;
 
        case 'activate': // Do stuff when admin activates this extension
                break;
 
        case 'activate': // Do stuff when admin activates this extension
index 7803430229248d494088126aa891661a91535fa9..25f2357607b617d921482e7be46e2dbf4b0759d1 100644 (file)
@@ -53,7 +53,7 @@ setExtensionAlwaysActive('Y');
 enableExtensionProductive(false);
 
 switch (getExtensionMode()) {
 enableExtensionProductive(false);
 
 switch (getExtensionMode()) {
-       case 'register': // Do stuff when installation is running (modules.php?module=admin is called)
+       case 'register': // Do stuff when installation is running
                // Table for debug log entries
                addDropTableSql('debug_log');
                addCreateTableSql('debug_log', "(
                // Table for debug log entries
                addDropTableSql('debug_log');
                addCreateTableSql('debug_log', "(
index 23d89452a9faed097f52411508b33a09af1db5a6..ad9ffedd5827b54440d8d71ba307268e408d3e0e 100644 (file)
@@ -50,7 +50,7 @@ setExtensionVersionHistory(array('0.0', '0.0.1'));
 enableExtensionProductive(false);
 
 switch (getExtensionMode()) {
 enableExtensionProductive(false);
 
 switch (getExtensionMode()) {
-       case 'register': // Do stuff when installation is running (modules.php?module=admin is called)
+       case 'register': // Do stuff when installation is running
                // SQL commands to run
                addExtensionSql('');
                break;
                // SQL commands to run
                addExtensionSql('');
                break;
index 3d8d198149e26f2104a0d49e747e6416d62433bb..bb4e32c14dc5ab518f0274d5fdab7efebb9a8568 100644 (file)
@@ -47,7 +47,7 @@ setThisExtensionVersion('0.1.7');
 setExtensionVersionHistory(array('0.0', '0.0.1', '0.0.2', '0.0.3', '0.0.4', '0.0.5', '0.0.6', '0.0.7', '0.0.8', '0.0.9', '0.1.0', '0.1.1', '0.1.2', '0.1.3', '0.1.4', '0.1.5', '0.1.6', '0.1.7'));
 
 switch (getExtensionMode()) {
 setExtensionVersionHistory(array('0.0', '0.0.1', '0.0.2', '0.0.3', '0.0.4', '0.0.5', '0.0.6', '0.0.7', '0.0.8', '0.0.9', '0.1.0', '0.1.1', '0.1.2', '0.1.3', '0.1.4', '0.1.5', '0.1.6', '0.1.7'));
 
 switch (getExtensionMode()) {
-       case 'register': // Do stuff when installation is running (modules.php?module=admin is called)
+       case 'register': // Do stuff when installation is running
                // Doubler table
                addDropTableSql('doubler');
                addCreateTableSql('doubler', "(
                // Doubler table
                addDropTableSql('doubler');
                addCreateTableSql('doubler', "(
index 47f72e0873ba6f2dbe98ff5786fa58d58595167a..eadb461ee5ee4def6136d429c9627a442a9c53ed 100644 (file)
@@ -51,7 +51,7 @@ setExtensionVersionHistory(array('0.0'));
 enableExtensionProductive(false);
 
 switch (getExtensionMode()) {
 enableExtensionProductive(false);
 
 switch (getExtensionMode()) {
-       case 'register': // Do stuff when installation is running (modules.php?module=admin is called)
+       case 'register': // Do stuff when installation is running
                // SQL commands to run
                break;
 
                // SQL commands to run
                break;
 
index 8313a04b948ff272e1362d1f531e01ef69f945f1..a1a7d9525876005f0e89123be7d4da277a8dc1ca 100644 (file)
@@ -50,7 +50,7 @@ setExtensionVersionHistory(array('0.0'));
 enableExtensionProductive(false);
 
 switch (getExtensionMode()) {
 enableExtensionProductive(false);
 
 switch (getExtensionMode()) {
-       case 'register': // Do stuff when installation is running (modules.php?module=admin is called)
+       case 'register': // Do stuff when installation is running
                // This depends on 'sponsor' now
                addExtensionDependency('sponsor');
 
                // This depends on 'sponsor' now
                addExtensionDependency('sponsor');
 
index bc9ff670b7e8e11ed72e00a8352690b59a144eeb..350e6d0d4e4ddf78a9543e41fb6fceaedb02edde 100644 (file)
@@ -51,7 +51,7 @@ setExtensionVersionHistory(array('0.0'));
 enableExtensionProductive(false);
 
 switch (getExtensionMode()) {
 enableExtensionProductive(false);
 
 switch (getExtensionMode()) {
-       case 'register': // Do stuff when installation is running (modules.php?module=admin is called)
+       case 'register': // Do stuff when installation is running
                // SQL commands to run
                break;
 
                // SQL commands to run
                break;
 
index 66cdb21fdc6d9b7f91f943f34c9a2b40f6e2938f..fb76994de7fff5e77a055adbddc9d0036d7ee064 100644 (file)
@@ -50,7 +50,7 @@ setExtensionVersionHistory(array('0.0'));
 enableExtensionProductive(false);
 
 switch (getExtensionMode()) {
 enableExtensionProductive(false);
 
 switch (getExtensionMode()) {
-       case 'register': // Do stuff when installation is running (modules.php?module=admin is called)
+       case 'register': // Do stuff when installation is running
                // SQL commands to run
                break;
 
                // SQL commands to run
                break;
 
index 5bf6efb985601ce66e8712cf1b9ec62d5aa2bdbf..6cf19ae60257b3e14f6f66b1804c1dd6ebd4a09f 100644 (file)
@@ -47,7 +47,7 @@ setThisExtensionVersion('0.2.1');
 setExtensionVersionHistory(array('0.0', '0.0.1', '0.0.2', '0.0.3', '0.0.4', '0.0.5', '0.0.6', '0.0.7', '0.0.8', '0.0.9', '0.1.0', '0.1.1', '0.1.2', '0.1.3', '0.1.4', '0.1.5', '0.1.6', '0.1.7', '0.1.8', '0.1.9', '0.2.0', '0.2.1'));
 
 switch (getExtensionMode()) {
 setExtensionVersionHistory(array('0.0', '0.0.1', '0.0.2', '0.0.3', '0.0.4', '0.0.5', '0.0.6', '0.0.7', '0.0.8', '0.0.9', '0.1.0', '0.1.1', '0.1.2', '0.1.3', '0.1.4', '0.1.5', '0.1.6', '0.1.7', '0.1.8', '0.1.9', '0.2.0', '0.2.1'));
 
 switch (getExtensionMode()) {
-       case 'register': // Do stuff when installation is running (modules.php?module=admin is called)
+       case 'register': // Do stuff when installation is running
                // Create database
                addDropTableSql('user_holidays');
                addCreateTableSql('user_holidays', "(
                // Create database
                addDropTableSql('user_holidays');
                addCreateTableSql('user_holidays', "(
index a2237ee054a92f238bb0b89cdfd814393d3afc76..276adfb1831933ac5e28b4362f0e97dcdf2f8256 100644 (file)
@@ -47,7 +47,7 @@ setThisExtensionVersion('0.1.6');
 setExtensionVersionHistory(array('0.0', '0.0.1', '0.0.2', '0.0.3', '0.0.4', '0.0.5', '0.0.51', '0.0.52', '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'));
 
 switch (getExtensionMode()) {
 setExtensionVersionHistory(array('0.0', '0.0.1', '0.0.2', '0.0.3', '0.0.4', '0.0.5', '0.0.51', '0.0.52', '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'));
 
 switch (getExtensionMode()) {
-       case 'register': // Do stuff when installation is running (modules.php?module=admin is called)
+       case 'register': // Do stuff when installation is running
                // SQL commands to run
                addExtensionSql("ALTER TABLE `{?_MYSQL_PREFIX?}_user_data` ADD `html` ENUM('Y','N') NOT NULL DEFAULT 'Y'");
                addExtensionSql("ALTER TABLE `{?_MYSQL_PREFIX?}_bonus` ADD `html_msg` ENUM('Y','N') NOT NULL DEFAULT 'N'");
                // SQL commands to run
                addExtensionSql("ALTER TABLE `{?_MYSQL_PREFIX?}_user_data` ADD `html` ENUM('Y','N') NOT NULL DEFAULT 'Y'");
                addExtensionSql("ALTER TABLE `{?_MYSQL_PREFIX?}_bonus` ADD `html_msg` ENUM('Y','N') NOT NULL DEFAULT 'N'");
index 2111be26e9445f59ccc7b66da21175dc0bf07121..c4aad9927b358e1f7db5359ce666a87bba038b9f 100644 (file)
@@ -50,7 +50,7 @@ setExtensionVersionHistory(array('0.0'));
 enableExtensionProductive(false);
 
 switch (getExtensionMode()) {
 enableExtensionProductive(false);
 
 switch (getExtensionMode()) {
-       case 'register': // Do stuff when installation is running (modules.php?module=admin is called)
+       case 'register': // Do stuff when installation is running
                // SQL commands to run
                addExtensionSql("DELETE LOW_PRIORITY FROM `{?_MYSQL_PREFIX?}_guest_menu` WHERE `what`='impressum' LIMIT 1");
 
                // SQL commands to run
                addExtensionSql("DELETE LOW_PRIORITY FROM `{?_MYSQL_PREFIX?}_guest_menu` WHERE `what`='impressum' LIMIT 1");
 
index c2a8462250ad61190af81d466949246c6681eb87..bb916f3e468dad60517d7b573d613495eb530631 100644 (file)
@@ -48,7 +48,7 @@ setThisExtensionVersion('0.0.1');
 setExtensionVersionHistory(array('0.0', '0.0.1'));
 
 switch (getExtensionMode()) {
 setExtensionVersionHistory(array('0.0', '0.0.1'));
 
 switch (getExtensionMode()) {
-       case 'register': // Do stuff when installation is running (modules.php?module=admin is called)
+       case 'register': // Do stuff when installation is running
                // SQL commands to run
                addExtensionSql('');
                break;
                // SQL commands to run
                addExtensionSql('');
                break;
index fb69993f667a2461325f7d4ba3d2d0f50eede3c1..e7b09694dc392f23339f6aec7bbfe49c6a9ef32c 100644 (file)
@@ -50,7 +50,7 @@ setExtensionVersionHistory(array('0.0'));
 enableExtensionProductive(false);
 
 switch (getExtensionMode()) {
 enableExtensionProductive(false);
 
 switch (getExtensionMode()) {
-       case 'register': // Do stuff when installation is running (modules.php?module=admin is called)
+       case 'register': // Do stuff when installation is running
                // SQL commands to run
                break;
 
                // SQL commands to run
                break;
 
index fd47510ff91185b886a913e7b9a128c143999263..cebfbf7620321e78cdbe269b20c1929e755cc556 100644 (file)
@@ -50,7 +50,7 @@ setExtensionVersionHistory(array('0.0'));
 enableExtensionProductive(false);
 
 switch (getExtensionMode()) {
 enableExtensionProductive(false);
 
 switch (getExtensionMode()) {
-       case 'register': // Do stuff when installation is running (modules.php?module=admin is called)
+       case 'register': // Do stuff when installation is running
                // SQL commands to run
                break;
 
                // SQL commands to run
                break;
 
index 70b2c3eff3d35f40cb01b3685669cbcff720ea08..7d2ee275ee4bce59568a7bfb7a5d963200be7378 100644 (file)
@@ -47,7 +47,7 @@ setThisExtensionVersion('0.0');
 setExtensionVersionHistory(array('0.0'));
 
 switch (getExtensionMode()) {
 setExtensionVersionHistory(array('0.0'));
 
 switch (getExtensionMode()) {
-       case 'register': // Do stuff when installation is running (modules.php?module=admin is called)
+       case 'register': // Do stuff when installation is running
                // SQL commands to run
                addAdminMenuSql('stats', 'logs', 'Aufruflogb&uuml;cher', 'Verwalten Sie Ihre Aufruflogb&uuml;cher mit diesem Admin-Bereich! (Derzeit nur Download!)', 8);
                addConfigAddSql('logs_base', "VARCHAR(255) NOT NULL DEFAULT 'logs'");
                // SQL commands to run
                addAdminMenuSql('stats', 'logs', 'Aufruflogb&uuml;cher', 'Verwalten Sie Ihre Aufruflogb&uuml;cher mit diesem Admin-Bereich! (Derzeit nur Download!)', 8);
                addConfigAddSql('logs_base', "VARCHAR(255) NOT NULL DEFAULT 'logs'");
index 958c16aa946ffb74f752c34dc677df608d9fdd11..4b903d3e2841b4483859f48865e490d4f9df7f0a 100644 (file)
@@ -47,7 +47,7 @@ setThisExtensionVersion('0.3.3');
 setExtensionVersionHistory(array('0.0', '0.0.1', '0.0.2', '0.0.3', '0.0.4', '0.0.5', '0.0.6', '0.0.7', '0.0.8', '0.0.9', '0.1.0', '0.1.1', '0.1.2', '0.1.3', '0.1.4', '0.1.5', '0.1.6', '0.1.7', '0.1.8', '0.1.9', '0.2.0', '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'));
 
 switch (getExtensionMode()) {
 setExtensionVersionHistory(array('0.0', '0.0.1', '0.0.2', '0.0.3', '0.0.4', '0.0.5', '0.0.6', '0.0.7', '0.0.8', '0.0.9', '0.1.0', '0.1.1', '0.1.2', '0.1.3', '0.1.4', '0.1.5', '0.1.6', '0.1.7', '0.1.8', '0.1.9', '0.2.0', '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'));
 
 switch (getExtensionMode()) {
-       case 'register': // Do stuff when installation is running (modules.php?module=admin is called)
+       case 'register': // Do stuff when installation is running
                // SQL commands to run
                addExtensionSql('');
                break;
                // SQL commands to run
                addExtensionSql('');
                break;
index 9a9de5df255e837f7ed69f12ac08cf9b06070872..37a8ab02cecfd1ed8900e96234461f594de26428 100644 (file)
@@ -50,7 +50,7 @@ setExtensionVersionHistory(array('0.0', '0.0.1', '0.0.2', '0.0.3', '0.0.4', '0.0
 setExtensionAlwaysActive('Y');
 
 switch (getExtensionMode()) {
 setExtensionAlwaysActive('Y');
 
 switch (getExtensionMode()) {
-       case 'register': // Do stuff when installation is running (modules.php?module=admin is called)
+       case 'register': // Do stuff when installation is running
                // SQL commands to run
                addConfigAddSql('maintenance', "ENUM('Y','N') NOT NULL DEFAULT 'N';");
                addAdminMenuSql('setup','maintenance','Wartungsmodus','Schalten Sie den Wartungsmodus ein, nur wenn sehr schwerwiegende Fehler vorliegen, die Sie oder mxchange.org nicht schenll genug beheben k&ouml;nnen.',10);
                // SQL commands to run
                addConfigAddSql('maintenance', "ENUM('Y','N') NOT NULL DEFAULT 'N';");
                addAdminMenuSql('setup','maintenance','Wartungsmodus','Schalten Sie den Wartungsmodus ein, nur wenn sehr schwerwiegende Fehler vorliegen, die Sie oder mxchange.org nicht schenll genug beheben k&ouml;nnen.',10);
index a2d1a8e1b0893682ab481a6a151f94d6d9b8dca6..46005ab98411b33e52f4dcda84ed893bf21e7295 100644 (file)
@@ -50,7 +50,7 @@ setExtensionVersionHistory(array('0.0', '0.0.1', '0.0.2', '0.0.3', '0.0.4', '0.0
 setExtensionAlwaysActive('Y');
 
 switch (getExtensionMode()) {
 setExtensionAlwaysActive('Y');
 
 switch (getExtensionMode()) {
-       case 'register': // Do stuff when installation is running (modules.php?module=admin is called)
+       case 'register': // Do stuff when installation is running
                // SQL commands to run
                addExtensionSql('');
 
                // SQL commands to run
                addExtensionSql('');
 
index e923018d3e42d67bd9c79a362aaead06624be3d4..6fbb57e7f33fb71585ad5f3b54cb871549992421 100644 (file)
@@ -47,7 +47,7 @@ setThisExtensionVersion('0.0.3');
 setExtensionVersionHistory(array('0.0','0.0.1','0.0.2','0.0.3'));
 
 switch (getExtensionMode()) {
 setExtensionVersionHistory(array('0.0','0.0.1','0.0.2','0.0.3'));
 
 switch (getExtensionMode()) {
-       case 'register': // Do stuff when installation is running (modules.php?module=admin is called)
+       case 'register': // Do stuff when installation is running
                // SQL commands to run
                // @TODO Convert menu-Id to one coding-standard. admin(edit|_add) => admin_menu_(edit|add), mem(edit|_add) => mem_menu_(edit|add)
                addAdminMenuSql('menu',NULL,'Men&uuml;-System','Alle drei Men&uuml;-System bearbeiten (Admin-, Mitglied- und Gast-Men&uuml;)',1);
                // SQL commands to run
                // @TODO Convert menu-Id to one coding-standard. admin(edit|_add) => admin_menu_(edit|add), mem(edit|_add) => mem_menu_(edit|add)
                addAdminMenuSql('menu',NULL,'Men&uuml;-System','Alle drei Men&uuml;-System bearbeiten (Admin-, Mitglied- und Gast-Men&uuml;)',1);
index 2e5fe9d12cb6189a01e7ea482ca0c3a61900f595..340f40e471f6d37f5de9f2cf371bf9d89df3f311 100644 (file)
@@ -47,7 +47,7 @@ setThisExtensionVersion('0.0.9');
 setExtensionVersionHistory(array('0.0', '0.0.1', '0.0.2', '0.0.3', '0.0.4', '0.0.5', '0.0.6', '0.0.7', '0.0.8', '0.0.9'));
 
 switch (getExtensionMode()) {
 setExtensionVersionHistory(array('0.0', '0.0.1', '0.0.2', '0.0.3', '0.0.4', '0.0.5', '0.0.6', '0.0.7', '0.0.8', '0.0.9'));
 
 switch (getExtensionMode()) {
-       case 'register': // Do stuff when installation is running (modules.php?module=admin is called)
+       case 'register': // Do stuff when installation is running
                // SQL commands to run
                addAdminMenuSql('mods', NULL, 'Modul-Management','Verwalten Sie die Basis-Module index, login, admin usw.', 4);
                addAdminMenuSql('mods','config_mods','Module &auml;ndern','&Auml;ndern Sie hier die Zugtiffsrechte auf die Module. Was dennoch nicht geht: Mitglied- oder Gastzugriffsrtechte auf Admin-Module bzw. Gastzugriffsrechte auf Mitglieder-Module. Diese sind extra abgesichert.', 1);
                // SQL commands to run
                addAdminMenuSql('mods', NULL, 'Modul-Management','Verwalten Sie die Basis-Module index, login, admin usw.', 4);
                addAdminMenuSql('mods','config_mods','Module &auml;ndern','&Auml;ndern Sie hier die Zugtiffsrechte auf die Module. Was dennoch nicht geht: Mitglied- oder Gastzugriffsrtechte auf Admin-Module bzw. Gastzugriffsrechte auf Mitglieder-Module. Diese sind extra abgesichert.', 1);
index f6e63ebc30b665de8489a6267d213d9b3e7b339e..4db2430332b09eebc4eab2aefdc989e5faf459ac 100644 (file)
@@ -47,7 +47,7 @@ setThisExtensionVersion('0.1.8');
 setExtensionVersionHistory(array('0.0', '0.0.1', '0.0.2', '0.0.3', '0.0.4', '0.0.5', '0.0.6', '0.0.7', '0.0.8', '0.0.9', '0.1.0', '0.1.1', '0.1.2', '0.1.3', '0.1.4', '0.1.5', '0.1.6', '0.1.7', '0.1.8'));
 
 switch (getExtensionMode()) {
 setExtensionVersionHistory(array('0.0', '0.0.1', '0.0.2', '0.0.3', '0.0.4', '0.0.5', '0.0.6', '0.0.7', '0.0.8', '0.0.9', '0.1.0', '0.1.1', '0.1.2', '0.1.3', '0.1.4', '0.1.5', '0.1.6', '0.1.7', '0.1.8'));
 
 switch (getExtensionMode()) {
-       case 'register': // Do stuff when installation is running (modules.php?module=admin is called)
+       case 'register': // Do stuff when installation is running
                // SQL commands to run
                addMemberMenuSql('main','mydata','Profildaten &auml;ndern','Y','N',2);
                break;
                // SQL commands to run
                addMemberMenuSql('main','mydata','Profildaten &auml;ndern','Y','N',2);
                break;
index 3e09c8c06ecd94f8151b23c422188f108fc8b3d7..12308c975c6ba97e9290be49a5c83c8231def5f7 100644 (file)
@@ -72,7 +72,7 @@ setExtensionVersionHistory(array('0.0'));
 enableExtensionProductive(false);
 
 switch (getExtensionMode()) {
 enableExtensionProductive(false);
 
 switch (getExtensionMode()) {
-       case 'register': // Do stuff when installation is running (modules.php?module=admin is called)
+       case 'register': // Do stuff when installation is running
                // Main table which hold
                addDropTableSql('network_data');
                addCreateTableSql('network_data', "(
                // Main table which hold
                addDropTableSql('network_data');
                addCreateTableSql('network_data', "(
index b678d9698486ffdfa1299b32dc3c532202406572..3cc7ef5ef35301eefbbf47261299017ed61d079c 100644 (file)
@@ -50,7 +50,7 @@ setExtensionVersionHistory(array('0.0', '0.0.1', '0.0.2', '0.0.3', '0.0.4', '0.0
 enableExtensionProductive(false);
 
 switch (getExtensionMode()) {
 enableExtensionProductive(false);
 
 switch (getExtensionMode()) {
-       case 'register': // Do stuff when installation is running (modules.php?module=admin is called)
+       case 'register': // Do stuff when installation is running
                // SQL commands to run
                addExtensionSql('');
                break;
                // SQL commands to run
                addExtensionSql('');
                break;
index c6953f912ed6369ff39df34b4200480eef04ddf2..71cc6947242bc8404ff1b3c2cfdb7764cd74227e 100644 (file)
@@ -47,7 +47,7 @@ setThisExtensionVersion('0.2.0');
 setExtensionVersionHistory(array('0.0', '0.0.1', '0.0.2', '0.0.3', '0.0.4', '0.0.5', '0.0.6', '0.0.7', '0.0.8', '0.0.9', '0.1.0', '0.1.1', '0.1.2', '0.1.3', '0.1.4', '0.1.5', '0.1.6', '0.1.7', '0.1.8', '0.1.9', '0.2.0'));
 
 switch (getExtensionMode()) {
 setExtensionVersionHistory(array('0.0', '0.0.1', '0.0.2', '0.0.3', '0.0.4', '0.0.5', '0.0.6', '0.0.7', '0.0.8', '0.0.9', '0.1.0', '0.1.1', '0.1.2', '0.1.3', '0.1.4', '0.1.5', '0.1.6', '0.1.7', '0.1.8', '0.1.9', '0.2.0'));
 
 switch (getExtensionMode()) {
-       case 'register': // Do stuff when installation is running (modules.php?module=admin is called)
+       case 'register': // Do stuff when installation is running
                // SQL commands to run
                addExtensionSql("ALTER TABLE `{?_MYSQL_PREFIX?}_user_data` ADD nickname VARCHAR(255) NOT NULL DEFAULT ''");
                addExtensionSql("ALTER TABLE `{?_MYSQL_PREFIX?}_user_data` ADD nick_userid ENUM ('nick','userid') NOT NULL DEFAULT 'userid'");
                // SQL commands to run
                addExtensionSql("ALTER TABLE `{?_MYSQL_PREFIX?}_user_data` ADD nickname VARCHAR(255) NOT NULL DEFAULT ''");
                addExtensionSql("ALTER TABLE `{?_MYSQL_PREFIX?}_user_data` ADD nick_userid ENUM ('nick','userid') NOT NULL DEFAULT 'userid'");
index aa43010721a25bad1e7913692fe2859888271d51..4b379c9a1a5b322228f555f80908e3d1266b33ff 100644 (file)
@@ -47,7 +47,7 @@ setThisExtensionVersion('0.0.6');
 setExtensionVersionHistory(array('0.0', '0.0.1', '0.0.2', '0.0.3', '0.0.4', '0.0.5', '0.0.6'));
 
 switch (getExtensionMode()) {
 setExtensionVersionHistory(array('0.0', '0.0.1', '0.0.2', '0.0.3', '0.0.4', '0.0.5', '0.0.6'));
 
 switch (getExtensionMode()) {
-       case 'register': // Do stuff when installation is running (modules.php?module=admin is called)
+       case 'register': // Do stuff when installation is running
                // SQL commands to run
                addDropTableSql('online');
                addCreateTableSql('online', "(
                // SQL commands to run
                addDropTableSql('online');
                addCreateTableSql('online', "(
index 96acbfb28776dc844934c7c2ae08f2201d6bb440..f10580607be40d214333d3e3392086605576f3eb 100644 (file)
@@ -50,7 +50,7 @@ setExtensionVersionHistory(array('0.0', '0.0.1', '0.0.2', '0.0.3', '0.0.4', '0.0
 setExtensionAlwaysActive('Y');
 
 switch (getExtensionMode()) {
 setExtensionAlwaysActive('Y');
 
 switch (getExtensionMode()) {
-       case 'register': // Do stuff when installation is running (modules.php?module=admin is called)
+       case 'register': // Do stuff when installation is running
                // SQL commands to run
                addDropTableSql('optimize_gain');
                addCreateTableSql('optimize_gain', "(
                // SQL commands to run
                addDropTableSql('optimize_gain');
                addCreateTableSql('optimize_gain', "(
index 87b84ce3b43c9a8adbdda49125518a8991b4113a..d96ec15d2baaa5a015e02f744830d50091d68c24 100644 (file)
@@ -47,7 +47,7 @@ setThisExtensionVersion('0.5.2');
 setExtensionVersionHistory(array('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'));
 
 switch (getExtensionMode()) {
 setExtensionVersionHistory(array('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'));
 
 switch (getExtensionMode()) {
-       case 'register': // Do stuff when installation is running (modules.php?module=admin is called)
+       case 'register': // Do stuff when installation is running
                // SQL commands to run
                addMemberMenuSql('order', 'order', 'Mailbuchung', 'N', 'Y', 1);
                break;
                // SQL commands to run
                addMemberMenuSql('order', 'order', 'Mailbuchung', 'N', 'Y', 1);
                break;
index aa768524e1bd9ecfcd0785ac80a404d0770d0ca1..32c5877aadf504c8da46a771e491909fe2082f83 100644 (file)
@@ -50,7 +50,7 @@ setExtensionVersionHistory(array('0.0', '0.0.1', '0.0.2', '0.0.3', '0.0.4', '0.0
 setExtensionAlwaysActive('Y');
 
 switch (getExtensionMode()) {
 setExtensionAlwaysActive('Y');
 
 switch (getExtensionMode()) {
-       case 'register': // Do stuff when installation is running (modules.php?module=admin is called)
+       case 'register': // Do stuff when installation is running
                // SQL commands to run
                addAdminMenuSql('setup','config_other','Sonstige Einstellungen','Sonstige Einstellungen an Ihrem {?mt_word?}.',13);
                break;
                // SQL commands to run
                addAdminMenuSql('setup','config_other','Sonstige Einstellungen','Sonstige Einstellungen an Ihrem {?mt_word?}.',13);
                break;
index 4f7f0850a6a839dc892eca50746c22aa4bf152d5..1821340f61b369110ad28595a6342bbadbff2927 100644 (file)
@@ -50,7 +50,7 @@ setExtensionVersionHistory(array('0.0'));
 enableExtensionProductive(false);
 
 switch (getExtensionMode()) {
 enableExtensionProductive(false);
 
 switch (getExtensionMode()) {
-       case 'register': // Do stuff when installation is running (modules.php?module=admin is called)
+       case 'register': // Do stuff when installation is running
                // SQL commands to run
                break;
 
                // SQL commands to run
                break;
 
index d101a4d9366a512df76ad99e1d985fa58b4191d5..dae6531eb2c47ba3565c489efeacc22d94f75388 100644 (file)
@@ -47,7 +47,7 @@ setThisExtensionVersion('0.3.8');
 setExtensionVersionHistory(array('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'));
 
 switch (getExtensionMode()) {
 setExtensionVersionHistory(array('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'));
 
 switch (getExtensionMode()) {
-       case 'register': // Do stuff when installation is running (modules.php?module=admin is called)
+       case 'register': // Do stuff when installation is running
                // SQL commands to run
                addDropTableSql('user_payouts');
                addCreateTableSql('user_payouts', "(
                // SQL commands to run
                addDropTableSql('user_payouts');
                addCreateTableSql('user_payouts', "(
index 1c75c2c0d7361b22f8eeb720d6984df25db034b2..bfe7791e53360347e6ba78c9841b7e057262ce0a 100644 (file)
@@ -47,7 +47,7 @@ setThisExtensionVersion('0.0');
 setExtensionVersionHistory(array('0.0'));
 
 switch (getExtensionMode()) {
 setExtensionVersionHistory(array('0.0'));
 
 switch (getExtensionMode()) {
-       case 'register': // Do stuff when installation is running (modules.php?module=admin is called)
+       case 'register': // Do stuff when installation is running
                // SQL commands to run
                addConfigAddSql('politician_stop_backlink', "ENUM('Y','N') NOT NULL DEFAULT 'Y'");
                addAdminMenuSql('config','config_politician_stop','Politiker-Stopp-Aktion','Einstellungen zur Satire-Aktion &quot;Politiker-Stopp - Jetzt wird zur&uuml;ck zensiert.&quot;', 7);
                // SQL commands to run
                addConfigAddSql('politician_stop_backlink', "ENUM('Y','N') NOT NULL DEFAULT 'Y'");
                addAdminMenuSql('config','config_politician_stop','Politiker-Stopp-Aktion','Einstellungen zur Satire-Aktion &quot;Politiker-Stopp - Jetzt wird zur&uuml;ck zensiert.&quot;', 7);
index 960fc96800b9362cf263cdbe6c5027f422f9c93a..4da3f6c559c0f2fa3c2fa04088f473759ba9ee9e 100644 (file)
@@ -52,7 +52,7 @@ setExtensionVersionHistory(array('0.0'));
 enableExtensionProductive(false);
 
 switch (getExtensionMode()) {
 enableExtensionProductive(false);
 
 switch (getExtensionMode()) {
-       case 'register': // Do stuff when installation is running (modules.php?module=admin is called)
+       case 'register': // Do stuff when installation is running
                // SQL commands to run
                addDropTableSql('user_primera');
                addCreateTableSql('user_primera', "(
                // SQL commands to run
                addDropTableSql('user_primera');
                addCreateTableSql('user_primera', "(
index 7b240bdad45eef5685a4c036fa05d431a7e7e957..b9da7b9d7338cb21393321898203c1696cf9cd1d 100644 (file)
@@ -48,7 +48,7 @@ setExtensionVersionHistory(array('0.0', '0.0.1', '0.0.2', '0.0.3', '0.0.4', '0.0
 
 switch (getExtensionMode())
 {
 
 switch (getExtensionMode())
 {
-       case 'register': // Do stuff when installation is running (modules.php?module=admin is called)
+       case 'register': // Do stuff when installation is running
                // SQL commands to run
                addExtensionSql('');
                break;
                // SQL commands to run
                addExtensionSql('');
                break;
index 101f7fc76b87d0088bc11738887535a046195a08..eaede467bd0dedc4c34086183034bf576f50447b 100644 (file)
@@ -47,7 +47,7 @@ setThisExtensionVersion('0.3.5');
 setExtensionVersionHistory(array('0.0', '0.0.1', '0.0.2', '0.0.3', '0.0.4', '0.0.5', '0.0.6', '0.0.7', '0.0.8', '0.0.9', '0.1.0', '0.1.1', '0.1.2', '0.1.3', '0.1.4', '0.1.5', '0.1.6', '0.1.7', '0.1.8', '0.1.9', '0.2.0', '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'));
 
 switch (getExtensionMode()) {
 setExtensionVersionHistory(array('0.0', '0.0.1', '0.0.2', '0.0.3', '0.0.4', '0.0.5', '0.0.6', '0.0.7', '0.0.8', '0.0.9', '0.1.0', '0.1.1', '0.1.2', '0.1.3', '0.1.4', '0.1.5', '0.1.6', '0.1.7', '0.1.8', '0.1.9', '0.2.0', '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'));
 
 switch (getExtensionMode()) {
-       case 'register': // Do stuff when installation is running (modules.php?module=admin is called)
+       case 'register': // Do stuff when installation is running
                // SQL commands to run
                addDropTableSql('rallye_data');
                addCreateTableSql('rallye_data', "(
                // SQL commands to run
                addDropTableSql('rallye_data');
                addCreateTableSql('rallye_data', "(
index d65eedb801125e821c02dda687fc26040645a347..02b21c04501ac208540e02f18616e298c8b41804 100644 (file)
@@ -47,7 +47,7 @@ setThisExtensionVersion('0.0.1');
 setExtensionVersionHistory(array('0.0','0.0.1'));
 
 switch (getExtensionMode()) {
 setExtensionVersionHistory(array('0.0','0.0.1'));
 
 switch (getExtensionMode()) {
-       case 'register': // Do stuff when installation is running (modules.php?module=admin is called)
+       case 'register': // Do stuff when installation is running
                // SQL commands to run
                addDropTableSql('user_refs');
                addCreateTableSql('user_refs', "(
                // SQL commands to run
                addDropTableSql('user_refs');
                addCreateTableSql('user_refs', "(
index c35f40aa3519b32ab1b8991a0a9bb01d03db8dd4..cd1481289961696dcaddf0560bf7fa1b6d5d72f5 100644 (file)
@@ -50,7 +50,7 @@ setExtensionVersionHistory(array('0.0'));
 enableExtensionProductive(false);
 
 switch (getExtensionMode()) {
 enableExtensionProductive(false);
 
 switch (getExtensionMode()) {
-       case 'register': // Do stuff when installation is running (modules.php?module=admin is called)
+       case 'register': // Do stuff when installation is running
                // SQL commands to run
                break;
 
                // SQL commands to run
                break;
 
index 42809d622aa3b46808c2372442b729dcf1b5908e..5c82ea21960372cff504d7f12d3beca5a4b13404 100644 (file)
@@ -47,7 +47,7 @@ setThisExtensionVersion('0.5.5');
 setExtensionVersionHistory(array('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'));
 
 switch (getExtensionMode()) {
 setExtensionVersionHistory(array('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'));
 
 switch (getExtensionMode()) {
-       case 'register': // Do stuff when installation is running (modules.php?module=admin is called)
+       case 'register': // Do stuff when installation is running
                // SQL commands to run
                addGuestMenuSql('members', 'register', 'Anmeldung', 'Y', 'N', 2);
                break;
                // SQL commands to run
                addGuestMenuSql('members', 'register', 'Anmeldung', 'Y', 'N', 2);
                break;
index e91ed60db6e79e1ca9f91da3ecfddd06a2a21ec1..085bcbbc8c37ff3d8687b0f163e09b579abf5280 100644 (file)
@@ -47,7 +47,7 @@ setThisExtensionVersion('0.0.1');
 setExtensionVersionHistory(array('0.0', '0.0.1'));
 
 switch (getExtensionMode()) {
 setExtensionVersionHistory(array('0.0', '0.0.1'));
 
 switch (getExtensionMode()) {
-       case 'register': // Do stuff when installation is running (modules.php?module=admin is called)
+       case 'register': // Do stuff when installation is running
                // SQL commands to run
                addConfigAddSql('removeip_anon_ip', "ENUM('Y','N') NOT NULL DEFAULT 'Y'");
                addConfigAddSql('removeip_anon_host', "ENUM('Y','N') NOT NULL DEFAULT 'Y'");
                // SQL commands to run
                addConfigAddSql('removeip_anon_ip', "ENUM('Y','N') NOT NULL DEFAULT 'Y'");
                addConfigAddSql('removeip_anon_host', "ENUM('Y','N') NOT NULL DEFAULT 'Y'");
index 4f03e57e36764632caa16f9542af5f0e51f8111b..86086bd12ae70cbafbf9eb159d28ec3a5d334ce3 100644 (file)
@@ -47,7 +47,7 @@ setThisExtensionVersion('0.1.7');
 setExtensionVersionHistory(array('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'));
 
 switch (getExtensionMode()) {
 setExtensionVersionHistory(array('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'));
 
 switch (getExtensionMode()) {
-       case 'register': // Do stuff when installation is running (modules.php?module=admin is called)
+       case 'register': // Do stuff when installation is running
                // SQL commands to run
                addAdminMenuSql('repair', NULL, 'Reperaturen','Repariert u.a. die Kategorie-Auswahlen der Mitglieder usw.',7);
                addAdminMenuSql('repair','repair_cats','Kategorieauswahlen','Repariert die Kategorien Ihrer Mitglieder.',1);
                // SQL commands to run
                addAdminMenuSql('repair', NULL, 'Reperaturen','Repariert u.a. die Kategorie-Auswahlen der Mitglieder usw.',7);
                addAdminMenuSql('repair','repair_cats','Kategorieauswahlen','Repariert die Kategorien Ihrer Mitglieder.',1);
index 59a98924c0ecf0f68d11fe0ed78edcce166b7297..d290dc718664a5655a756e2d5b9cea4f37dfb788 100644 (file)
@@ -50,7 +50,7 @@ setExtensionVersionHistory(array('0.0'));
 enableExtensionProductive(false);
 
 switch (getExtensionMode()) {
 enableExtensionProductive(false);
 
 switch (getExtensionMode()) {
-       case 'register': // Do stuff when installation is running (modules.php?module=admin is called)
+       case 'register': // Do stuff when installation is running
                // SQL commands to run
                break;
 
                // SQL commands to run
                break;
 
index 3f0078e5a1673297f0b83a72dfba1712713dd375..74dd8af8dfa1deb21fcc2ede18cd470951b8ef57 100644 (file)
@@ -50,7 +50,7 @@ setExtensionVersionHistory(array('0.0', '0.0.1', '0.0.2', '0.0.3', '0.0.4', '0.0
 // Only since 'seo' is ready! setExtensionDeprecated('Y');
 
 switch (getExtensionMode()) {
 // Only since 'seo' is ready! setExtensionDeprecated('Y');
 
 switch (getExtensionMode()) {
-       case 'register': // Do stuff when installation is running (modules.php?module=admin is called)
+       case 'register': // Do stuff when installation is running
                // Check if mod_rewrite is loadeded
                if (!isApacheModuleLoaded('mod_rewrite')) {
                        setExtensionReportsFailure(true);
                // Check if mod_rewrite is loadeded
                if (!isApacheModuleLoaded('mod_rewrite')) {
                        setExtensionReportsFailure(true);
index 9d52052c7ad88f4c6686f6d47f5a85d970912323..f4083659eb8f09c0ac27be63bcdf460b596e3b04 100644 (file)
@@ -51,7 +51,7 @@ setExtensionVersionHistory(array('0.0'));
 enableExtensionProductive(false);
 
 switch (getExtensionMode()) {
 enableExtensionProductive(false);
 
 switch (getExtensionMode()) {
-       case 'register': // Do stuff when installation is running (modules.php?module=admin is called)
+       case 'register': // Do stuff when installation is running
                // SQL commands to run
                break;
 
                // SQL commands to run
                break;
 
index 6bd3a1cd7b8bac9bf0fcfdca7e3cfafadc83c7fd..0bf06eb3b4c3cecba2ffd4062170f6a881c9cc1a 100644 (file)
@@ -50,7 +50,7 @@ setExtensionVersionHistory(array('0.0'));
 enableExtensionProductive(false);
 
 switch (getExtensionMode()) {
 enableExtensionProductive(false);
 
 switch (getExtensionMode()) {
-       case 'register': // Do stuff when installation is running (modules.php?module=admin is called)
+       case 'register': // Do stuff when installation is running
                // SQL commands to run
                break;
 
                // SQL commands to run
                break;
 
index 688c70d9bf7c201b2d212d44524f8f293ccab023..a618f2e49cf0d197ebd1e247d3beb02c360ee76d 100644 (file)
@@ -50,7 +50,7 @@ setExtensionVersionHistory(array('0.0'));
 enableExtensionProductive(false);
 
 switch (getExtensionMode()) {
 enableExtensionProductive(false);
 
 switch (getExtensionMode()) {
-       case 'register': // Do stuff when installation is running (modules.php?module=admin is called)
+       case 'register': // Do stuff when installation is running
                //
                // SQL commands to run
                //
                //
                // SQL commands to run
                //
index 19d6839bf96934fb86cc0cf5f3ed25f9e7f5edc2..2a59247d13db5ce85899953e7de630fc3dc928c0 100644 (file)
@@ -41,16 +41,16 @@ if (!defined('__SECURITY')) {
 } // END - if
 
 // Version number
 } // END - if
 
 // Version number
-setThisExtensionVersion('0.7.7');
+setThisExtensionVersion('0.7.8');
 
 // Version history array (add more with , '0.1.0' and so on)
 
 // Version history array (add more with , '0.1.0' and so on)
-setExtensionVersionHistory(array('0.0', '0.0.1', '0.0.2', '0.0.3', '0.0.4', '0.0.5', '0.0.6', '0.0.7', '0.0.8', '0.0.9', '0.1.0', '0.1.1', '0.1.2', '0.1.3', '0.1.4', '0.1.5', '0.1.6', '0.1.7', '0.1.8', '0.1.9', '0.2.0', '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', '0.6.0', '0.6.1', '0.6.2', '0.6.3', '0.6.4', '0.6.4', '0.6.5', '0.6.6', '0.6.7', '0.6.8', '0.6.9', '0.7.0', '0.7.1', '0.7.2', '0.7.3', '0.7.4', '0.7.5', '0.7.6', '0.7.7'));
+setExtensionVersionHistory(array('0.0', '0.0.1', '0.0.2', '0.0.3', '0.0.4', '0.0.5', '0.0.6', '0.0.7', '0.0.8', '0.0.9', '0.1.0', '0.1.1', '0.1.2', '0.1.3', '0.1.4', '0.1.5', '0.1.6', '0.1.7', '0.1.8', '0.1.9', '0.2.0', '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', '0.6.0', '0.6.1', '0.6.2', '0.6.3', '0.6.4', '0.6.4', '0.6.5', '0.6.6', '0.6.7', '0.6.8', '0.6.9', '0.7.0', '0.7.1', '0.7.2', '0.7.3', '0.7.4', '0.7.5', '0.7.6', '0.7.7', '0.7.8'));
 
 // Keep this extension always active!
 setExtensionAlwaysActive('Y');
 
 switch (getExtensionMode()) {
 
 // Keep this extension always active!
 setExtensionAlwaysActive('Y');
 
 switch (getExtensionMode()) {
-       case 'register': // Do stuff when installation is running (modules.php?module=admin is called)
+       case 'register': // Do stuff when installation is running
                // This depends on 'cache' now
                addExtensionDependency('cache');
                break;
                // This depends on 'cache' now
                addExtensionDependency('cache');
                break;
@@ -172,7 +172,7 @@ switch (getExtensionMode()) {
                                setExtensionUpdateNotes("Unbest&auml;tigte Maillinks k&ouml;nnen unter Email-Management -&gt; Unbest. Mails auflisten aufgelistet werden.");
                                break;
 
                                setExtensionUpdateNotes("Unbest&auml;tigte Maillinks k&ouml;nnen unter Email-Management -&gt; Unbest. Mails auflisten aufgelistet werden.");
                                break;
 
-                       case '0.1.0': // SQL queries for v0.2.1
+                       case '0.1.0': // SQL queries for v0.1.0
                                addConfigAddSql('reg_points_mode', "ENUM('ref','direct') NOT NULL DEFAULT 'ref'");
 
                                // Update notes (these will be set as task text!)
                                addConfigAddSql('reg_points_mode', "ENUM('ref','direct') NOT NULL DEFAULT 'ref'");
 
                                // Update notes (these will be set as task text!)
@@ -788,6 +788,13 @@ INDEX (`ip`)
                                // Update notes (these will be set as task text!)
                                setExtensionUpdateNotes("Men&uuml;punkt <strong>Verdienen</strong> hinzugef&uuml;gt und <strong>Unbest&auml;tigte Mails</strong> als ersten Punkt dort hin verschoben.");
                                break;
                                // Update notes (these will be set as task text!)
                                setExtensionUpdateNotes("Men&uuml;punkt <strong>Verdienen</strong> hinzugef&uuml;gt und <strong>Unbest&auml;tigte Mails</strong> als ersten Punkt dort hin verschoben.");
                                break;
+
+                       case '0.7.8': // SQL queries for v0.7.8
+                               addConfigChangeSql('reg_points_mode', 'reg_points_mode', "ENUM('REF','DIRECT') NOT NULL DEFAULT 'REFERAL'");
+
+                               // Update notes (these will be set as task text!)
+                               setExtensionUpdateNotes("Konfigurationseintr&auml;ge mit Spaltentyp <strong>ENUM</strong> werden nun immer komplett gross geschrieben.");
+                               break;
                } // END - switch
                break;
 
                } // END - switch
                break;
 
index 42757003bea3a3dc3b3a448f6a3764e1c246d9e2..0d440ecc15d34397119f7a08facf085cb2ff21fe 100644 (file)
@@ -47,7 +47,7 @@ setThisExtensionVersion('0.1.3');
 setExtensionVersionHistory(array('0.0', '0.0.1', '0.0.2', '0.0.3', '0.0.4', '0.0.5', '0.0.6', '0.0.7', '0.0.8', '0.0.9', '0.1.0', '0.1.1', '0.1.2', '0.1.3'));
 
 switch (getExtensionMode()) {
 setExtensionVersionHistory(array('0.0', '0.0.1', '0.0.2', '0.0.3', '0.0.4', '0.0.5', '0.0.6', '0.0.7', '0.0.8', '0.0.9', '0.1.0', '0.1.1', '0.1.2', '0.1.3'));
 
 switch (getExtensionMode()) {
-       case 'register': // Do stuff when installation is running (modules.php?module=admin is called)
+       case 'register': // Do stuff when installation is running
                // SQL commands to run
                addExtensionSql('');
                break;
                // SQL commands to run
                addExtensionSql('');
                break;
index 792a0d7910f8174122d2b80b68053219c52e3dba..fa546b791bd80829d3314f6d4e090d73cabeb0a5 100644 (file)
@@ -50,7 +50,7 @@ setExtensionVersionHistory(array('0.0'));
 enableExtensionProductive(false);
 
 switch (getExtensionMode()) {
 enableExtensionProductive(false);
 
 switch (getExtensionMode()) {
-       case 'register': // Do stuff when installation is running (modules.php?module=admin is called)
+       case 'register': // Do stuff when installation is running
                // SQL commands to run (surfbar URLs)
                addDropTableSql('surfbar_urls');
                addCreateTableSql('surfbar_urls', "(
                // SQL commands to run (surfbar URLs)
                addDropTableSql('surfbar_urls');
                addCreateTableSql('surfbar_urls', "(
index 97ba04d72a958eaf62062cfbe496f1bc09a7c301..710f01bffe472e6b58a6090a06ca72452869ce7e 100644 (file)
@@ -50,7 +50,7 @@ setExtensionVersionHistory(array('0.0', '0.0.1', '0.0.2', '0.0.3', '0.0.4', '0.0
 setExtensionAlwaysActive('Y');
 
 switch (getExtensionMode()) {
 setExtensionAlwaysActive('Y');
 
 switch (getExtensionMode()) {
-       case 'register': // Do stuff when installation is running (modules.php?module=admin is called)
+       case 'register': // Do stuff when installation is running
                // SQL commands to run
                addAdminMenuSql('task', NULL, 'Aufgaben-Management','Erweitertes Aufgaben-Management zur leichten verwaltung der vom System erzeugten Aufgaben.',1);
                addAdminMenuSql('task','list_task','Aufgaben auflisten','Alle Ihnen zugewiesenen Aufgaben auflisten (keine Updates).',1);
                // SQL commands to run
                addAdminMenuSql('task', NULL, 'Aufgaben-Management','Erweitertes Aufgaben-Management zur leichten verwaltung der vom System erzeugten Aufgaben.',1);
                addAdminMenuSql('task','list_task','Aufgaben auflisten','Alle Ihnen zugewiesenen Aufgaben auflisten (keine Updates).',1);
index 928f6235d37e605303738554bf6f72335e75804b..8bb1612745158d402c77b3fef33ebef577bc95a0 100644 (file)
@@ -50,7 +50,7 @@ setExtensionVersionHistory(array('0.0'));
 enableExtensionProductive(false);
 
 switch (getExtensionMode()) {
 enableExtensionProductive(false);
 
 switch (getExtensionMode()) {
-       case 'register': // Do stuff when installation is running (modules.php?module=admin is called)
+       case 'register': // Do stuff when installation is running
                // SQL commands to run
                break;
 
                // SQL commands to run
                break;
 
index 0562ae67f44fd27ff1efc19fee5bd72f0cf4f5bf..8e8b33afef58790a7ff315dffaaee1c047a35db6 100644 (file)
@@ -47,7 +47,7 @@ setThisExtensionVersion('0.1.2');
 setExtensionVersionHistory(array('0.0', '0.0.1', '0.0.2', '0.0.3', '0.0.4', '0.0.5', '0.0.6', '0.0.7', '0.0.8', '0.0.9', '0.1.0', '0.1.1', '0.1.2'));
 
 switch (getExtensionMode()) {
 setExtensionVersionHistory(array('0.0', '0.0.1', '0.0.2', '0.0.3', '0.0.4', '0.0.5', '0.0.6', '0.0.7', '0.0.8', '0.0.9', '0.1.0', '0.1.1', '0.1.2'));
 
 switch (getExtensionMode()) {
-       case 'register': // Do stuff when installation is running (modules.php?module=admin is called)
+       case 'register': // Do stuff when installation is running
                // SQL commands to run
                break;
 
                // SQL commands to run
                break;
 
index fa25ccf8472d0a693761cfbbf2eda2c7b82ca3ce..23ff51440aef5c10cf63e0a7c7c684b9c730af6e 100644 (file)
@@ -50,7 +50,7 @@ setExtensionVersionHistory(array('0.0'));
 setExtensionAlwaysActive('Y');
 
 switch (getExtensionMode()) {
 setExtensionAlwaysActive('Y');
 
 switch (getExtensionMode()) {
-       case 'register': // Do stuff when installation is running (modules.php?module=admin is called)
+       case 'register': // Do stuff when installation is running
                addConfigAddSql('timezone', "VARCHAR(255) NOT NULL DEFAULT 'Europe/Berlin'");
                addAdminMenuSql('setup', 'config_timezone', 'Zeitzone', 'Einstellungen an der Zeitzone k&ouml;nnen hier konfiguriert werden.', 10);
 
                addConfigAddSql('timezone', "VARCHAR(255) NOT NULL DEFAULT 'Europe/Berlin'");
                addAdminMenuSql('setup', 'config_timezone', 'Zeitzone', 'Einstellungen an der Zeitzone k&ouml;nnen hier konfiguriert werden.', 10);
 
index 2373861495e3b6931840869ef3624ffdfc52ed17..81fe0d9cbd7ef08ba151dffd2a16774f09acdf36 100644 (file)
@@ -47,7 +47,7 @@ setThisExtensionVersion('0.1.2');
 setExtensionVersionHistory(array('0.0', '0.0.1', '0.0.2', '0.0.3', '0.0.4', '0.0.5', '0.0.6', '0.0.7', '0.0.8', '0.0.9', '0.1.0', '0.1.1', '0.1.2'));
 
 switch (getExtensionMode()) {
 setExtensionVersionHistory(array('0.0', '0.0.1', '0.0.2', '0.0.3', '0.0.4', '0.0.5', '0.0.6', '0.0.7', '0.0.8', '0.0.9', '0.1.0', '0.1.1', '0.1.2'));
 
 switch (getExtensionMode()) {
-       case 'register': // Do stuff when installation is running (modules.php?module=admin is called)
+       case 'register': // Do stuff when installation is running
                // SQL commands to run
                addGuestMenuSql('main','top10','TOP-10','Y','Y', 7);
                addAdminMenuSql('setup','config_top10','TOP-10 Listen','Stellen Sie hier ein, wie lang die TOP-Listen sein sollen, also wie viele Pl&auml;tze angezeigt werden sollen.', 8);
                // SQL commands to run
                addGuestMenuSql('main','top10','TOP-10','Y','Y', 7);
                addAdminMenuSql('setup','config_top10','TOP-10 Listen','Stellen Sie hier ein, wie lang die TOP-Listen sein sollen, also wie viele Pl&auml;tze angezeigt werden sollen.', 8);
index a605356c9a95e1d4c7cdca9e84fed269f3383d23..fe1e877da49dfed5d5f6fe345eef7e4d75dc3916 100644 (file)
@@ -47,7 +47,7 @@ setThisExtensionVersion('0.0.2');
 setExtensionVersionHistory(array('0.0', '0.0.1', '0.0.2'));
 
 switch (getExtensionMode()) {
 setExtensionVersionHistory(array('0.0', '0.0.1', '0.0.2'));
 
 switch (getExtensionMode()) {
-       case 'register': // Do stuff when installation is running (modules.php?module=admin is called)
+       case 'register': // Do stuff when installation is running
                // SQL commands to run
                break;
 
                // SQL commands to run
                break;
 
index 360e79b609df41bc574e136f033002ef06ca5f4a..0bd50a9395a9eddb7495217830ed46df94440f18 100644 (file)
@@ -50,7 +50,7 @@ setExtensionVersionHistory(array('0.0'));
 enableExtensionProductive(false);
 
 switch (getExtensionMode()) {
 enableExtensionProductive(false);
 
 switch (getExtensionMode()) {
-       case 'register': // Do stuff when installation is running (modules.php?module=admin is called)
+       case 'register': // Do stuff when installation is running
                // SQL commands to run
                addAdminMenuSql('misc','updates','Updates pr&uuml;fen','Pr&uuml;ft, ob eine neue Version oder ein Patch auf dem Server exisitiert. Sie m&uuml;ssen dann die Patches/Updates selber herunterladen und einspielen. Dabei werden keine Daten von Ihrer Installation an uns gesendet!',8);
                break;
                // SQL commands to run
                addAdminMenuSql('misc','updates','Updates pr&uuml;fen','Pr&uuml;ft, ob eine neue Version oder ein Patch auf dem Server exisitiert. Sie m&uuml;ssen dann die Patches/Updates selber herunterladen und einspielen. Dabei werden keine Daten von Ihrer Installation an uns gesendet!',8);
                break;
index 78fddd176d30955116f739dc6edc13405b39db05..f8f10a619825397e31275e0895b689b5d59cd5bf 100644 (file)
@@ -47,7 +47,7 @@ setThisExtensionVersion('0.0');
 setExtensionVersionHistory(array('0.0'));
 
 switch (getExtensionMode()) {
 setExtensionVersionHistory(array('0.0'));
 
 switch (getExtensionMode()) {
-       case 'register': // Do stuff when installation is running (modules.php?module=admin is called)
+       case 'register': // Do stuff when installation is running
                // SQL commands to run
                addAdminMenuSql('stats', 'usage', 'Aufrufstatistik', 'Erkennt automatisch Ihre Aufrufstatisiken und bindet diese in das Admin-Interface ein. (Derzeit nur Webalizer!)', 9);
                addConfigAddSql('usage_base', "VARCHAR(255) NOT NULL DEFAULT 'usage'");
                // SQL commands to run
                addAdminMenuSql('stats', 'usage', 'Aufrufstatistik', 'Erkennt automatisch Ihre Aufrufstatisiken und bindet diese in das Admin-Interface ein. (Derzeit nur Webalizer!)', 9);
                addConfigAddSql('usage_base', "VARCHAR(255) NOT NULL DEFAULT 'usage'");
index 124d3be6977abe8f84d22d26f13cc109cd899284..d3de91a63dbdc3d3d484dd2201a6451e0af3b987 100644 (file)
@@ -41,16 +41,16 @@ if (!defined('__SECURITY')) {
 } // END - if
 
 // Version number
 } // END - if
 
 // Version number
-setThisExtensionVersion('0.3.7');
+setThisExtensionVersion('0.3.8');
 
 // Version history array (add more with , '0.1.0' and so on)
 
 // Version history array (add more with , '0.1.0' and so on)
-setExtensionVersionHistory(array('0.0', '0.1.0', '0.1.1', '0.1.2', '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'));
+setExtensionVersionHistory(array('0.0', '0.1.0', '0.1.1', '0.1.2', '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'));
 
 // Keep this extension always active!
 setExtensionAlwaysActive('Y');
 
 switch (getExtensionMode()) {
 
 // Keep this extension always active!
 setExtensionAlwaysActive('Y');
 
 switch (getExtensionMode()) {
-       case 'register': // Do stuff when installation is running (modules.php?module=admin is called)
+       case 'register': // Do stuff when installation is running
                addDropTableSql('user_cats');
                addCreateTableSql('user_cats', "(
 `id` BIGINT(22) NOT NULL AUTO_INCREMENT,
                addDropTableSql('user_cats');
                addCreateTableSql('user_cats', "(
 `id` BIGINT(22) NOT NULL AUTO_INCREMENT,
@@ -211,7 +211,7 @@ INDEX (`stats_type`)
                                break;
 
                        case '0.1.2': // SQL queries for v0.1.2
                                break;
 
                        case '0.1.2': // SQL queries for v0.1.2
-                               addExtensionSql("ALTER TABLE `{?_MYSQL_PREFIX?}_user_data` ADD `mails_confirmed` BIGINT(20) UNSIGNED NOT NULL DEFAULT 0");
+                               addExtensionSql('ALTER TABLE `{?_MYSQL_PREFIX?}_user_data` ADD `mails_confirmed` BIGINT(20) UNSIGNED NOT NULL DEFAULT 0');
 
                                // Update notes (these will be set as task text!)
                                setExtensionUpdateNotes("Dem Mitglied wird nun angezeigt, wie viele Mails er best&auml;tigt hat. Alle vor dieser Version best. Mails werden leider nicht mehr ber&uuml;cksichtigt! Bitte teilen Sie dies Ihren Mitgliedern mit.");
 
                                // Update notes (these will be set as task text!)
                                setExtensionUpdateNotes("Dem Mitglied wird nun angezeigt, wie viele Mails er best&auml;tigt hat. Alle vor dieser Version best. Mails werden leider nicht mehr ber&uuml;cksichtigt! Bitte teilen Sie dies Ihren Mitgliedern mit.");
@@ -223,7 +223,7 @@ INDEX (`stats_type`)
                                break;
 
                        case '0.1.4': // SQL queries for v0.1.4
                                break;
 
                        case '0.1.4': // SQL queries for v0.1.4
-                               addExtensionSql("ALTER TABLE `{?_MYSQL_PREFIX?}_user_data` ADD `emails_received` BIGINT(20) UNSIGNED NOT NULL DEFAULT 0");
+                               addExtensionSql('ALTER TABLE `{?_MYSQL_PREFIX?}_user_data` ADD `emails_received` BIGINT(20) UNSIGNED NOT NULL DEFAULT 0');
 
                                // Update notes (these will be set as task text!)
                                setExtensionUpdateNotes("Anzahl empfangener Mails wird angezeigt. <big>Diese Anzeige kann fehlerhaft sein, wenn Sie bereits Mitglieder in Ihrem {?mt_word?} haben sollen!</big>");
 
                                // Update notes (these will be set as task text!)
                                setExtensionUpdateNotes("Anzahl empfangener Mails wird angezeigt. <big>Diese Anzeige kann fehlerhaft sein, wenn Sie bereits Mitglieder in Ihrem {?mt_word?} haben sollen!</big>");
@@ -336,7 +336,7 @@ INDEX (`stats_type`)
                        case '0.3.4': // SQL queries for v0.3.4
                                addConfigAddSql('select_user_zero_refid', "ENUM('Y','N') NOT NULL DEFAULT 'Y'");
                                addConfigAddSql('user_min_confirmed', 'SMALLINT(5) UNSIGNED NOT NULL DEFAULT 10');
                        case '0.3.4': // SQL queries for v0.3.4
                                addConfigAddSql('select_user_zero_refid', "ENUM('Y','N') NOT NULL DEFAULT 'Y'");
                                addConfigAddSql('user_min_confirmed', 'SMALLINT(5) UNSIGNED NOT NULL DEFAULT 10');
-                               addExtensionSql("ALTER TABLE `{?_MYSQL_PREFIX?}_user_data` ADD `rand_confirmed` BIGINT(20) UNSIGNED NOT NULL DEFAULT 0");
+                               addExtensionSql('ALTER TABLE `{?_MYSQL_PREFIX?}_user_data` ADD `rand_confirmed` BIGINT(20) UNSIGNED NOT NULL DEFAULT 0');
 
                                // Update notes (these will be set as task text!)
                                setExtensionUpdateNotes("Mitglieder werden per Zufall als Referal-Id ausgew&auml;hlt, die eine Mindestanzahl an best&auml;tigten Mails haben, wenn die Ref-Id 0 ist.");
 
                                // Update notes (these will be set as task text!)
                                setExtensionUpdateNotes("Mitglieder werden per Zufall als Referal-Id ausgew&auml;hlt, die eine Mindestanzahl an best&auml;tigten Mails haben, wenn die Ref-Id 0 ist.");
@@ -367,44 +367,44 @@ PRIMARY KEY (`id`)
                                break;
 
                        case '0.3.6': // SQL queries for v0.3.6
                                break;
 
                        case '0.3.6': // SQL queries for v0.3.6
-                               addExtensionSql("ALTER TABLE `{?_MYSQL_PREFIX?}_user_cats` DROP INDEX `userid`");
-                               addExtensionSql("ALTER TABLE `{?_MYSQL_PREFIX?}_user_cats` ADD UNIQUE `userid_catid` ( `userid` , `cat_id` )");
+                               addExtensionSql('ALTER TABLE `{?_MYSQL_PREFIX?}_user_cats` DROP INDEX `userid`');
+                               addExtensionSql('ALTER TABLE `{?_MYSQL_PREFIX?}_user_cats` ADD UNIQUE `userid_catid` ( `userid` , `cat_id` )');
 
                                // Update notes (these will be set as task text!)
                                setExtensionUpdateNotes("Der Sperrgrund wird nun mit abgespeichert und beim L&ouml;schen des Users mit ausgesendet.");
                                break;
 
                        case '0.3.7': // SQL queries for v0.3.7
 
                                // Update notes (these will be set as task text!)
                                setExtensionUpdateNotes("Der Sperrgrund wird nun mit abgespeichert und beim L&ouml;schen des Users mit ausgesendet.");
                                break;
 
                        case '0.3.7': // SQL queries for v0.3.7
-                               addExtensionSql("ALTER TABLE `{?_MYSQL_PREFIX?}_user_cats` CHANGE `id` `id` BIGINT( 22 ) UNSIGNED NOT NULL AUTO_INCREMENT");
-                               addExtensionSql("ALTER TABLE `{?_MYSQL_PREFIX?}_user_cats` CHANGE `userid` `userid` BIGINT( 20 ) UNSIGNED NULL DEFAULT NULL");
-                               addExtensionSql("ALTER TABLE `{?_MYSQL_PREFIX?}_user_cats` CHANGE `cat_id` `cat_id` TINYINT( 3 ) UNSIGNED NULL DEFAULT NULL");
-                               addExtensionSql("ALTER TABLE `{?_MYSQL_PREFIX?}_user_data` CHANGE `userid` `userid` BIGINT( 20 ) UNSIGNED NOT NULL AUTO_INCREMENT");
-                               addExtensionSql("ALTER TABLE `{?_MYSQL_PREFIX?}_user_del` CHANGE `userid` `userid` BIGINT( 20 ) UNSIGNED NULL DEFAULT NULL");
-                               addExtensionSql("ALTER TABLE `{?_MYSQL_PREFIX?}_user_links` CHANGE `stats_id` `stats_id` BIGINT( 20 ) UNSIGNED NULL DEFAULT NULL");
-                               addExtensionSql("ALTER TABLE `{?_MYSQL_PREFIX?}_user_links` CHANGE `userid` `userid` BIGINT( 20 ) UNSIGNED NULL DEFAULT NULL");
-                               addExtensionSql("ALTER TABLE `{?_MYSQL_PREFIX?}_user_points` CHANGE `userid` `userid` BIGINT( 22 ) UNSIGNED NULL DEFAULT NULL");
-                               addExtensionSql("ALTER TABLE `{?_MYSQL_PREFIX?}_user_points` CHANGE `ref_depth` `ref_depth` TINYINT( 3 ) UNSIGNED NULL DEFAULT NULL");
-                               addExtensionSql("ALTER TABLE `{?_MYSQL_PREFIX?}_user_refs` CHANGE `userid` `userid` BIGINT( 20 ) UNSIGNED NULL DEFAULT NULL");
-                               addExtensionSql("ALTER TABLE `{?_MYSQL_PREFIX?}_user_refs` CHANGE `level` `level` SMALLINT( 6 ) UNSIGNED NULL DEFAULT NULL");
-                               addExtensionSql("ALTER TABLE `{?_MYSQL_PREFIX?}_user_refs` CHANGE `refid` `refid` BIGINT( 20 ) UNSIGNED NULL DEFAULT NULL");
-                               addExtensionSql("ALTER TABLE `{?_MYSQL_PREFIX?}_user_stats` CHANGE `userid` `userid` BIGINT( 20 ) UNSIGNED NULL DEFAULT NULL");
-                               addExtensionSql("ALTER TABLE `{?_MYSQL_PREFIX?}_user_stats` CHANGE `cat_id` `cat_id` BIGINT( 20 ) UNSIGNED NULL DEFAULT NULL");
-                               addExtensionSql("ALTER TABLE `{?_MYSQL_PREFIX?}_user_stats` CHANGE `payment_id` `payment_id` BIGINT( 20 ) UNSIGNED NULL DEFAULT NULL");
-                               addExtensionSql("ALTER TABLE `{?_MYSQL_PREFIX?}_user_stats` CHANGE `pool_id` `pool_id` BIGINT( 20 ) UNSIGNED NULL DEFAULT NULL");
-                               addExtensionSql("ALTER TABLE `{?_MYSQL_PREFIX?}_user_stats_data` CHANGE `userid` `userid` BIGINT( 20 ) UNSIGNED NULL DEFAULT NULL");
+                               addExtensionSql('ALTER TABLE `{?_MYSQL_PREFIX?}_user_cats` CHANGE `id` `id` BIGINT( 22 ) UNSIGNED NOT NULL AUTO_INCREMENT');
+                               addExtensionSql('ALTER TABLE `{?_MYSQL_PREFIX?}_user_cats` CHANGE `userid` `userid` BIGINT( 20 ) UNSIGNED NULL DEFAULT NULL');
+                               addExtensionSql('ALTER TABLE `{?_MYSQL_PREFIX?}_user_cats` CHANGE `cat_id` `cat_id` TINYINT( 3 ) UNSIGNED NULL DEFAULT NULL');
+                               addExtensionSql('ALTER TABLE `{?_MYSQL_PREFIX?}_user_data` CHANGE `userid` `userid` BIGINT( 20 ) UNSIGNED NOT NULL AUTO_INCREMENT');
+                               addExtensionSql('ALTER TABLE `{?_MYSQL_PREFIX?}_user_del` CHANGE `userid` `userid` BIGINT( 20 ) UNSIGNED NULL DEFAULT NULL');
+                               addExtensionSql('ALTER TABLE `{?_MYSQL_PREFIX?}_user_links` CHANGE `stats_id` `stats_id` BIGINT( 20 ) UNSIGNED NULL DEFAULT NULL');
+                               addExtensionSql('ALTER TABLE `{?_MYSQL_PREFIX?}_user_links` CHANGE `userid` `userid` BIGINT( 20 ) UNSIGNED NULL DEFAULT NULL');
+                               addExtensionSql('ALTER TABLE `{?_MYSQL_PREFIX?}_user_points` CHANGE `userid` `userid` BIGINT( 22 ) UNSIGNED NULL DEFAULT NULL');
+                               addExtensionSql('ALTER TABLE `{?_MYSQL_PREFIX?}_user_points` CHANGE `ref_depth` `ref_depth` TINYINT( 3 ) UNSIGNED NULL DEFAULT NULL');
+                               addExtensionSql('ALTER TABLE `{?_MYSQL_PREFIX?}_user_refs` CHANGE `userid` `userid` BIGINT( 20 ) UNSIGNED NULL DEFAULT NULL');
+                               addExtensionSql('ALTER TABLE `{?_MYSQL_PREFIX?}_user_refs` CHANGE `level` `level` SMALLINT( 6 ) UNSIGNED NULL DEFAULT NULL');
+                               addExtensionSql('ALTER TABLE `{?_MYSQL_PREFIX?}_user_refs` CHANGE `refid` `refid` BIGINT( 20 ) UNSIGNED NULL DEFAULT NULL');
+                               addExtensionSql('ALTER TABLE `{?_MYSQL_PREFIX?}_user_stats` CHANGE `userid` `userid` BIGINT( 20 ) UNSIGNED NULL DEFAULT NULL');
+                               addExtensionSql('ALTER TABLE `{?_MYSQL_PREFIX?}_user_stats` CHANGE `cat_id` `cat_id` BIGINT( 20 ) UNSIGNED NULL DEFAULT NULL');
+                               addExtensionSql('ALTER TABLE `{?_MYSQL_PREFIX?}_user_stats` CHANGE `payment_id` `payment_id` BIGINT( 20 ) UNSIGNED NULL DEFAULT NULL');
+                               addExtensionSql('ALTER TABLE `{?_MYSQL_PREFIX?}_user_stats` CHANGE `pool_id` `pool_id` BIGINT( 20 ) UNSIGNED NULL DEFAULT NULL');
+                               addExtensionSql('ALTER TABLE `{?_MYSQL_PREFIX?}_user_stats_data` CHANGE `userid` `userid` BIGINT( 20 ) UNSIGNED NULL DEFAULT NULL');
 
                                // Cleanup SQLs
 
                                // Cleanup SQLs
-                               addExtensionSql("DELETE LOW_PRIORITY FROM `{?_MYSQL_PREFIX?}_user_cats` WHERE `userid` IS NULL OR `cat_id` IS NULL");
-                               addExtensionSql("DELETE LOW_PRIORITY FROM `{?_MYSQL_PREFIX?}_user_del` WHERE `userid` IS NULL");
-                               addExtensionSql("UPDATE `{?_MYSQL_PREFIX?}_user_links` SET `stats_id`=NULL WHERE `stats_id`=0");
-                               addExtensionSql("DELETE LOW_PRIORITY FROM `{?_MYSQL_PREFIX?}_user_links` WHERE `userid` IS NULL");
-                               addExtensionSql("UPDATE `{?_MYSQL_PREFIX?}_user_points` SET `ref_depth`=NULL WHERE `ref_depth`=0");
-                               addExtensionSql("DELETE LOW_PRIORITY FROM `{?_MYSQL_PREFIX?}_user_points` WHERE `userid` IS NULL");
-                               addExtensionSql("DELETE LOW_PRIORITY FROM `{?_MYSQL_PREFIX?}_user_refs` WHERE `userid` IS NULL OR `refid` IS NULL OR `level` IS NULL");
-                               addExtensionSql("UPDATE `{?_MYSQL_PREFIX?}_user_stats` SET `cat_id`=NULL WHERE `cat_id`=0");
-                               addExtensionSql("UPDATE `{?_MYSQL_PREFIX?}_user_stats` SET `payment_id`=NULL WHERE `payment_id`=0");
-                               addExtensionSql("UPDATE `{?_MYSQL_PREFIX?}_user_stats` SET `pool_id`=NULL WHERE `pool_id`=0");
-                               addExtensionSql("DELETE LOW_PRIORITY FROM `{?_MYSQL_PREFIX?}_user_stats` WHERE `userid` IS NULL");
+                               addExtensionSql('DELETE LOW_PRIORITY FROM `{?_MYSQL_PREFIX?}_user_cats` WHERE `userid` IS NULL OR `cat_id` IS NULL');
+                               addExtensionSql('DELETE LOW_PRIORITY FROM `{?_MYSQL_PREFIX?}_user_del` WHERE `userid` IS NULL');
+                               addExtensionSql('UPDATE `{?_MYSQL_PREFIX?}_user_links` SET `stats_id`=NULL WHERE `stats_id`=0');
+                               addExtensionSql('DELETE LOW_PRIORITY FROM `{?_MYSQL_PREFIX?}_user_links` WHERE `userid` IS NULL');
+                               addExtensionSql('UPDATE `{?_MYSQL_PREFIX?}_user_points` SET `ref_depth`=NULL WHERE `ref_depth`=0');
+                               addExtensionSql('DELETE LOW_PRIORITY FROM `{?_MYSQL_PREFIX?}_user_points` WHERE `userid` IS NULL');
+                               addExtensionSql('DELETE LOW_PRIORITY FROM `{?_MYSQL_PREFIX?}_user_refs` WHERE `userid` IS NULL OR `refid` IS NULL OR `level` IS NULL');
+                               addExtensionSql('UPDATE `{?_MYSQL_PREFIX?}_user_stats` SET `cat_id`=NULL WHERE `cat_id`=0');
+                               addExtensionSql('UPDATE `{?_MYSQL_PREFIX?}_user_stats` SET `payment_id`=NULL WHERE `payment_id`=0');
+                               addExtensionSql('UPDATE `{?_MYSQL_PREFIX?}_user_stats` SET `pool_id`=NULL WHERE `pool_id`=0');
+                               addExtensionSql('DELETE LOW_PRIORITY FROM `{?_MYSQL_PREFIX?}_user_stats` WHERE `userid` IS NULL');
 
                                // This update depends on ext-bonus
                                addExtensionDependency('bonus');
 
                                // This update depends on ext-bonus
                                addExtensionDependency('bonus');
@@ -414,11 +414,19 @@ PRIMARY KEY (`id`)
                                break;
 
                        case '0.3.7': // SQL queries for v0.3.7
                                break;
 
                        case '0.3.7': // SQL queries for v0.3.7
-                               addExtensionSql("ALTER TABLE `{?_MYSQL_PREFIX?}_user_data` CHANGE `last_failure` `last_failure` TIMESTAMP NULL DEFAULT NULL");
+                               addExtensionSql('ALTER TABLE `{?_MYSQL_PREFIX?}_user_data` CHANGE `last_failure` `last_failure` TIMESTAMP NULL DEFAULT NULL');
 
                                // Update notes (these will be set as task text!)
                                setExtensionUpdateNotes("Ausgangswert ist nicht mehr 0000-00-00 00:00:00, sondern einfach NULL.");
                                break;
 
                                // Update notes (these will be set as task text!)
                                setExtensionUpdateNotes("Ausgangswert ist nicht mehr 0000-00-00 00:00:00, sondern einfach NULL.");
                                break;
+
+                       case '0.3.8': // SQL queries for v0.3.8
+                               addExtensionSql('ALTER TABLE `{?_MYSQL_PREFIX?}_user_points` ADD `order_points` FLOAT(20,5) NOT NULL DEFAULT 0.00000');
+                               addExtensionSql('ALTER TABLE `{?_MYSQL_PREFIX?}_user_points` ADD `locked_order_points` FLOAT(20,5) NOT NULL DEFAULT 0.00000');
+
+                               // Update notes (these will be set as task text!)
+                               setExtensionUpdateNotes("Weiteres {?POINTS?}-Guthabenkonto &quot;Werbeguthaben&quot; hinzugef&uuml;gt.");
+                               break;
                } // END - switch
                break;
 
                } // END - switch
                break;
 
index ab41c3704868ec91816540e682bf5e7183069977..9ceaf1dcad9c209e43890945bfd1d248236eb887 100644 (file)
@@ -47,7 +47,7 @@ setThisExtensionVersion('0.0');
 setExtensionVersionHistory(array('0.0'));
 
 switch (getExtensionMode()) {
 setExtensionVersionHistory(array('0.0'));
 
 switch (getExtensionMode()) {
-       case 'register': // Do stuff when installation is running (modules.php?module=admin is called)
+       case 'register': // Do stuff when installation is running
                // SQL commands to run
                addConfigAddSql('enable_validator', "ENUM('Y','N') NOT NULL DEFAULT 'Y'");
                addAdminMenuSql('setup','config_validator','Validierer','Schalten Sie die Validierer-Links ein, um die G&uuml;ltigkeit Ihres HTML- oder CSS-Codes zu &uuml;berpr&uuml;fen.', 10);
                // SQL commands to run
                addConfigAddSql('enable_validator', "ENUM('Y','N') NOT NULL DEFAULT 'Y'");
                addAdminMenuSql('setup','config_validator','Validierer','Schalten Sie die Validierer-Links ein, um die G&uuml;ltigkeit Ihres HTML- oder CSS-Codes zu &uuml;berpr&uuml;fen.', 10);
index 743409b569fc694aa2899cb225899c692e8174d0..5e6fbf1dd95e1fc01f3ba5b01f590e2073174048 100644 (file)
@@ -47,7 +47,7 @@ setThisExtensionVersion('0.0.3');
 setExtensionVersionHistory(array('0.0', '0.0.1', '0.0.2', '0.0.3'));
 
 switch (getExtensionMode()) {
 setExtensionVersionHistory(array('0.0', '0.0.1', '0.0.2', '0.0.3'));
 
 switch (getExtensionMode()) {
-       case 'register': // Do stuff when installation is running (modules.php?module=admin is called)
+       case 'register': // Do stuff when installation is running
                // SQL commands to run
                addDropTableSql('user_wernis');
                addCreateTableSql('user_wernis', "(
                // SQL commands to run
                addDropTableSql('user_wernis');
                addCreateTableSql('user_wernis', "(
index 2092dfd70920e3463444a5d6afea7831a061dd7f..555c63ebdb8ff8d3a24474675220c7914e0104a6 100644 (file)
@@ -50,7 +50,7 @@ setExtensionVersionHistory(array('0.0'));
 enableExtensionProductive(false);
 
 switch (getExtensionMode()) {
 enableExtensionProductive(false);
 
 switch (getExtensionMode()) {
-       case 'register': // Do stuff when installation is running (modules.php?module=admin is called)
+       case 'register': // Do stuff when installation is running
                // SQL commands to run
 
                // Register module
                // SQL commands to run
 
                // Register module
index 89743fd55c202785b57d996938636dc5b3571ece..cb16e5b3ca39cbc4214f12f8ef9a92226a3b408f 100644 (file)
@@ -54,7 +54,7 @@ setExtensionAlwaysActive('Y');
 // @TODO Only deprecated when 'ext-network' is ready! setExtensionDeprecated('Y');
 
 switch (getExtensionMode()) {
 // @TODO Only deprecated when 'ext-network' is ready! setExtensionDeprecated('Y');
 
 switch (getExtensionMode()) {
-       case 'register': // Do stuff when installation is running (modules.php?module=admin is called)
+       case 'register': // Do stuff when installation is running
                // SQL commands to run
                addConfigAddSql('yoomedia_id', 'BIGINT(20) UNSIGNED NOT NULL DEFAULT 0');
                addConfigAddSql('yoomedia_sid', 'BIGINT(20) UNSIGNED NOT NULL DEFAULT 0');
                // SQL commands to run
                addConfigAddSql('yoomedia_id', 'BIGINT(20) UNSIGNED NOT NULL DEFAULT 0');
                addConfigAddSql('yoomedia_sid', 'BIGINT(20) UNSIGNED NOT NULL DEFAULT 0');
index 4acb78d90fd96b76bd0857b6ffbd0f8f8e34e134..4d766f980ee59f7b7ad4e581242cd1390c7fdbc2 100644 (file)
@@ -225,7 +225,7 @@ function registerFilter ($filterName, $filterFunction, $silentAbort = true, $for
 
 // "Unregisters" a filter from the given chain
 function unregisterFilter ($F, $L, $filterName, $filterFunction, $force = false, $dry_run = false) {
 
 // "Unregisters" a filter from the given chain
 function unregisterFilter ($F, $L, $filterName, $filterFunction, $force = false, $dry_run = false) {
-       //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'ENTRY: F=' . $F . ',L=' . $L . ',filterName=' . $filterName . ',filterFunction=' . $filterFunction . ',force=' . intval($force) . ',dry=' . intval($dry_run) . ' - ENTERED!');
+       //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'ENTRY: F=' . $F . ',L=' . $L . ',filterName=' . $filterName . ',filterFunction=' . $filterFunction . ',force=' . intval($force) . ',dry_run=' . intval($dry_run) . ' - ENTERED!');
 
        // Extend the filter function name only if not loaded from database
        if (!isset($GLOBALS['cache_array']['filter']['loaded'][$filterName][$filterFunction])) {
 
        // Extend the filter function name only if not loaded from database
        if (!isset($GLOBALS['cache_array']['filter']['loaded'][$filterName][$filterFunction])) {
@@ -246,7 +246,7 @@ function unregisterFilter ($F, $L, $filterName, $filterFunction, $force = false,
                $GLOBALS['cache_array']['filter']['chains'][$filterName][$filterFunction] = 'R';
        } // END - if
 
                $GLOBALS['cache_array']['filter']['chains'][$filterName][$filterFunction] = 'R';
        } // END - if
 
-       //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'ENTRY: F=' . $F . ',L=' . $L . ',filterName=' . $filterName . ',filterFunction=' . $filterFunction . ',force=' . intval($force) . ',dry=' . intval($dry_run) . ' - EXIT!');
+       //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'ENTRY: F=' . $F . ',L=' . $L . ',filterName=' . $filterName . ',filterFunction=' . $filterFunction . ',force=' . intval($force) . ',dry_run=' . intval($dry_run) . ' - EXIT!');
 }
 
 // "Runs" the given filters, filterData is optional and can be any type of data
 }
 
 // "Runs" the given filters, filterData is optional and can be any type of data
index 2132e64b7ad3b0660e8bbca8dbab3abdb00cbbb7..7a7c1b248b599944747cc80508091c68a65c4669 100644 (file)
@@ -41,8 +41,9 @@ if (!defined('__SECURITY')) {
 } // END - if
 
 // Filter for adding link to "active list"
 } // END - if
 
 // Filter for adding link to "active list"
-function FILTER_ADD_LINK_ACTIVE_LIST () {
+function FILTER_ADD_LINK_ACTIVE_LIST ($data) {
        // Is ext-active/online there?
        // Is ext-active/online there?
+       //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'Called!');
        if ((isExtensionActive('active')) && (isExtensionActive('online'))) {
                // Init fake-content because there is no `what`='active' in database
                $content = array(
        if ((isExtensionActive('active')) && (isExtensionActive('online'))) {
                // Init fake-content because there is no `what`='active' in database
                $content = array(
@@ -55,6 +56,10 @@ function FILTER_ADD_LINK_ACTIVE_LIST () {
                // Add link to "we were active today" page
                $GLOBALS['rows'] .= loadTemplate('guest_menu_bottom', true, $content);
        } // END - if
                // Add link to "we were active today" page
                $GLOBALS['rows'] .= loadTemplate('guest_menu_bottom', true, $content);
        } // END - if
+
+       // Return data
+       //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'Done!');
+       return $data;
 }
 
 // [EOF]
 }
 
 // [EOF]
index 81beec2b1920ee17ab0fe9d758a2c26169479687..677f1d295b8d951952b2b769f57f15545084a4fe 100644 (file)
@@ -43,18 +43,21 @@ if (!defined('__SECURITY')) {
 // Filter for adding extra data to the query
 function FILTER_ADD_EXTRA_SQL_DATA ($add = '') {
        // Is the admins extension updated? (should be!)
 // Filter for adding extra data to the query
 function FILTER_ADD_EXTRA_SQL_DATA ($add = '') {
        // Is the admins extension updated? (should be!)
+       //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'Called!');
        if (isExtensionInstalledAndNewer('admins', '0.3.0')) $add .= ', `default_acl` AS def_acl';
        if (isExtensionInstalledAndNewer('admins', '0.6.7')) $add .= ', `la_mode`';
        if (isExtensionInstalledAndNewer('admins', '0.7.2')) $add .= ', `login_failures`, UNIX_TIMESTAMP(`last_failure`) AS last_failure';
        if (isExtensionInstalledAndNewer('admins', '0.7.3')) $add .= ', `expert_settings`, `expert_warning`';
 
        // Return it
        if (isExtensionInstalledAndNewer('admins', '0.3.0')) $add .= ', `default_acl` AS def_acl';
        if (isExtensionInstalledAndNewer('admins', '0.6.7')) $add .= ', `la_mode`';
        if (isExtensionInstalledAndNewer('admins', '0.7.2')) $add .= ', `login_failures`, UNIX_TIMESTAMP(`last_failure`) AS last_failure';
        if (isExtensionInstalledAndNewer('admins', '0.7.3')) $add .= ', `expert_settings`, `expert_warning`';
 
        // Return it
+       //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'Done!');
        return $add;
 }
 
 // Reset the login failures
 function FILTER_RESET_ADMINS_LOGIN_FAILURES ($data) {
        // Store it in session
        return $add;
 }
 
 // Reset the login failures
 function FILTER_RESET_ADMINS_LOGIN_FAILURES ($data) {
        // Store it in session
+       //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'Called!');
        setSession('mailer_admin_failures'    , getAdminLoginFailures($data['id']));
        setSession('mailer_admin_last_failure', getAdminLastFailure($data['id']));
 
        setSession('mailer_admin_failures'    , getAdminLoginFailures($data['id']));
        setSession('mailer_admin_last_failure', getAdminLastFailure($data['id']));
 
@@ -70,12 +73,14 @@ function FILTER_RESET_ADMINS_LOGIN_FAILURES ($data) {
        rebuildCache('admin');
 
        // Return the data for further processing
        rebuildCache('admin');
 
        // Return the data for further processing
+       //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'Done!');
        return $data;
 }
 
 // Count the login failure
 function FILTER_COUNT_ADMINS_LOGIN_FAILURE ($data) {
        // Prepare update data
        return $data;
 }
 
 // Count the login failure
 function FILTER_COUNT_ADMINS_LOGIN_FAILURE ($data) {
        // Prepare update data
+       //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'Called!');
        $postData['login'][getCurrentAdminId()]          = $data['login'];
        $postData['login_failures'][getCurrentAdminId()] = '`login_failures`+1';
        $postData['last_failure'][getCurrentAdminId()]   = 'NOW()';
        $postData['login'][getCurrentAdminId()]          = $data['login'];
        $postData['login_failures'][getCurrentAdminId()] = '`login_failures`+1';
        $postData['last_failure'][getCurrentAdminId()]   = 'NOW()';
@@ -87,12 +92,14 @@ function FILTER_COUNT_ADMINS_LOGIN_FAILURE ($data) {
        rebuildCache('admin');
 
        // Return the data for further processing
        rebuildCache('admin');
 
        // Return the data for further processing
+       //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'Done!');
        return $data;
 }
 
 // Rehashes the given plain admin password and stores it the database
 function FILTER_REHASH_ADMINS_PASSWORD ($data) {
        // Generate new hash
        return $data;
 }
 
 // Rehashes the given plain admin password and stores it the database
 function FILTER_REHASH_ADMINS_PASSWORD ($data) {
        // Generate new hash
+       //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'Called!');
        $newHash = generateHash($data['plain_pass']);
 
        // Prepare update data
        $newHash = generateHash($data['plain_pass']);
 
        // Prepare update data
@@ -110,6 +117,7 @@ function FILTER_REHASH_ADMINS_PASSWORD ($data) {
        rebuildCache('admin');
 
        // Return the data for further processing
        rebuildCache('admin');
 
        // Return the data for further processing
+       //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'Done!');
        return $data;
 }
 
        return $data;
 }
 
index 5faccd7cb23669996c6d5b85697a57ad45248511..34ee4408088f4b53a315aaec6fb6d24aebb631fb 100644 (file)
@@ -41,8 +41,9 @@ if (!defined('__SECURITY')) {
 } // END - if
 
 // Filter for adding login bonus to the user's account
 } // END - if
 
 // Filter for adding login bonus to the user's account
-function FILTER_ADD_LOGIN_BONUS () {
+function FILTER_ADD_LOGIN_BONUS ($data) {
        // Is the user data valid?
        // Is the user data valid?
+       //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'Called!');
        if (!isMember()) {
                // Do only run for logged in members
                debug_report_bug(__FUNCTION__, __LINE__, 'Please only run this filter for logged in users.');
        if (!isMember()) {
                // Do only run for logged in members
                debug_report_bug(__FUNCTION__, __LINE__, 'Please only run this filter for logged in users.');
@@ -77,6 +78,10 @@ LIMIT 1',
                // No login bonus added!
                $GLOBALS['message'] .= '<div class="notice">{--MEMBER_BONUS_LOGIN_BONUS_NOT_ADDED--}</div>';
        }
                // No login bonus added!
                $GLOBALS['message'] .= '<div class="notice">{--MEMBER_BONUS_LOGIN_BONUS_NOT_ADDED--}</div>';
        }
+
+       // Return data
+       //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'Done!');
+       return $data;
 }
 
 // [EOF]
 }
 
 // [EOF]
index 4fb2b207abca5cd8a06c8d8289a7770ad1dbc89f..1b88ed5f1647a8fe24a5c9a704b5d02538dd9b41 100644 (file)
@@ -43,9 +43,11 @@ if (!defined('__SECURITY')) {
 // Filter for adding booking record
 function FILTER_ADD_BOOKING_RECORD ($data) {
        // Add a record
 // Filter for adding booking record
 function FILTER_ADD_BOOKING_RECORD ($data) {
        // Add a record
+       //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'Called!');
        addBookingRecord($data['subject'], $data['userid'], $data['points'], $data['mode']);
 
        // Return data
        addBookingRecord($data['subject'], $data['userid'], $data['points'], $data['mode']);
 
        // Return data
+       //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'Done!');
        return $data;
 }
 
        return $data;
 }
 
index ec708e1ce01190c7f0db384d75399775b6dd0e68..dd9d22b7d8be6df9dde9e6f4d6e02dfd163ca0b5 100644 (file)
@@ -43,34 +43,48 @@ if (!defined('__SECURITY')) {
 // Destroy the cache on extension changes
 function FILTER_CACHE_DESTROY_ON_EXT_CHANGE ($data) {
        // Return the data anyway if there is no cache extension
 // Destroy the cache on extension changes
 function FILTER_CACHE_DESTROY_ON_EXT_CHANGE ($data) {
        // Return the data anyway if there is no cache extension
-       if (!isCacheInstanceValid()) return $data;
+       //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'Called!');
+       if (!isCacheInstanceValid()) {
+               return false;
+       } // END - if
 
        // Remove cache
        foreach (array('config','extension','filter','modules') as $cache) {
 
        // Remove cache
        foreach (array('config','extension','filter','modules') as $cache) {
-               if ($GLOBALS['cache_instance']->loadCacheFile($cache)) $GLOBALS['cache_instance']->removeCacheFile();
+               if ($GLOBALS['cache_instance']->loadCacheFile($cache)) {
+                       $GLOBALS['cache_instance']->removeCacheFile();
+               } // END - if
        } // END - foreach
 
        // Return it
        } // END - foreach
 
        // Return it
+       //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'Done!');
        return $data;
 }
 
 // Destroy the cache on changing admin
 function FILTER_CACHE_DESTROY_ON_ADMIN_CHANGE ($data) {
        // Skip this step if the cache instance is not there
        return $data;
 }
 
 // Destroy the cache on changing admin
 function FILTER_CACHE_DESTROY_ON_ADMIN_CHANGE ($data) {
        // Skip this step if the cache instance is not there
-       if (!isCacheInstanceValid()) return false;
+       //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'Called!');
+       if (!isCacheInstanceValid()) {
+               return false;
+       } // END - if
 
        // Remove cache
 
        // Remove cache
-       if ($GLOBALS['cache_instance']->loadCacheFile('admin')) $GLOBALS['cache_instance']->removeCacheFile();
+       if ($GLOBALS['cache_instance']->loadCacheFile('admin')) {
+               $GLOBALS['cache_instance']->removeCacheFile();
+       } // END - if
 
        // Return the data
 
        // Return the data
+       //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'Done!');
        return $data;
 }
 
 // Destroy all cache files
        return $data;
 }
 
 // Destroy all cache files
-function FILTER_CACHE_DESTROY_ALL () {
+function FILTER_CACHE_DESTROY_ALL ($data) {
        // Skip this step if the cache instance is not there
        //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'Called!');
        // Skip this step if the cache instance is not there
        //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'Called!');
-       if (!isCacheInstanceValid()) return false;
+       if (!isCacheInstanceValid()) {
+               return false;
+       } // END - if
 
        // Remove cache files
        foreach (array('admin','admin_acls','config','extension','modules','refdepths','refsystem','themes','filter','imprint') as $cache) {
 
        // Remove cache files
        foreach (array('admin','admin_acls','config','extension','modules','refdepths','refsystem','themes','filter','imprint') as $cache) {
@@ -81,16 +95,26 @@ function FILTER_CACHE_DESTROY_ALL () {
                        $GLOBALS['cache_instance']->removeCacheFile();
                } // END - if
        } // END - foreach
                        $GLOBALS['cache_instance']->removeCacheFile();
                } // END - if
        } // END - foreach
+
        //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'Done!');
        //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'Done!');
+       return $data;
 }
 
 // Filter for purging 'filter' cache
 }
 
 // Filter for purging 'filter' cache
-function FILTER_CACHE_DESTROY_FILTER () {
+function FILTER_CACHE_DESTROY_FILTER ($data) {
        // Skip this step if the cache instance is not there
        // Skip this step if the cache instance is not there
-       if ((!isCacheInstanceValid()) || (getConfig('update_filter_usage') != 'Y')) return false;
+       //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'Called!');
+       if ((!isCacheInstanceValid()) || (getConfig('update_filter_usage') != 'Y')) {
+               return false;
+       } // END - if
 
        // Remove cache files
 
        // Remove cache files
-       if ($GLOBALS['cache_instance']->loadCacheFile('filter')) $GLOBALS['cache_instance']->removeCacheFile();
+       if ($GLOBALS['cache_instance']->loadCacheFile('filter')) {
+               $GLOBALS['cache_instance']->removeCacheFile();
+       } // END - if
+
+       //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'Done!');
+       return $data;
 }
 
 // [EOF]
 }
 
 // [EOF]
diff --git a/inc/filter/coupon_filter.php b/inc/filter/coupon_filter.php
new file mode 100644 (file)
index 0000000..cafe31b
--- /dev/null
@@ -0,0 +1,64 @@
+<?php
+/************************************************************************
+ * Mailer v0.2.1-FINAL                                Start: 06/29/2011 *
+ * ===================                          Last change: 06/29/2011 *
+ *                                                                      *
+ * -------------------------------------------------------------------- *
+ * File              : coupon_filter.php                                *
+ * -------------------------------------------------------------------- *
+ * Short description : Filters for ext-coupon                           *
+ * -------------------------------------------------------------------- *
+ * Kurzbeschreibung  : Filter fuer ext-coupon                           *
+ * -------------------------------------------------------------------- *
+ * $Revision::                                                        $ *
+ * $Date::                                                            $ *
+ * $Tag:: 0.2.1-FINAL                                                 $ *
+ * $Author::                                                          $ *
+ * -------------------------------------------------------------------- *
+ * Copyright (c) 2003 - 2009 by Roland Haeder                           *
+ * Copyright (c) 2009 - 2011 by Mailer Developer Team                   *
+ * For more information visit: http://www.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
+
+// Filter to change column name for the right "points account"
+function FILTER_COUPON_CHANGE_POINTS_COLUMN_NAME ($data) {
+       //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'Called!');
+       // Are the points locked?
+       if (($data['locked'] === true) && (getConfig('coupon_locked_points_mode') == 'LOCKED')) {
+               // Locked points may be routed to special account
+               $data['column'] = 'locked_order_points';
+       } elseif (getConfig('coupon_points_account') == 'ORDER') {
+               // These points should be routed to 'order' account
+               $data['column'] = 'order_points';
+       } else {
+               // Else all went to general account
+               $data['column'] = 'points';
+       }
+
+       // Return data
+       //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'Done!');
+       return $data;
+}
+
+// [EOF]
+?>
index 102ee3f7f129ffa45e09b803b01cc82e2d3a012a..54bc2c710ee76d81ecb60dc7ac49ec22d70abe32 100644 (file)
@@ -43,9 +43,11 @@ if (!defined('__SECURITY')) {
 // Filter for updating media data
 function FILTER_UPDATE_MEDIADATA_ENTRY ($data) {
        // Execute the filter function
 // Filter for updating media data
 function FILTER_UPDATE_MEDIADATA_ENTRY ($data) {
        // Execute the filter function
-       $data['added'] = ($data['added'] && updateMediadataEntry(array('total_points'), $data['mode'], $data['points']));
+       //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'Called!');
+       $data['added'] = ($data['added'] === true && updateMediadataEntry(array('total_points'), $data['mode'], $data['points']));
 
        // Return data
 
        // Return data
+       //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'Done!');
        return $data;
 }
 
        return $data;
 }
 
index ca48771cd95e1bdfd76849b0f5be8512a1fa64f2..d31c793c63484772b2885b102f6bbc04bfb799ed 100644 (file)
@@ -41,8 +41,9 @@ if (!defined('__SECURITY')) {
 } // END - if
 
 // Filter for updates/extends on the online list
 } // END - if
 
 // Filter for updates/extends on the online list
-function FILTER_UPDATE_ONLINE_LIST () {
+function FILTER_UPDATE_ONLINE_LIST ($data) {
        // Do not update online list when extension is deactivated
        // Do not update online list when extension is deactivated
+       //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'Called!');
        if (!isExtensionActive('online', true)) {
                // Extension not active
                return;
        if (!isExtensionActive('online', true)) {
                // Extension not active
                return;
@@ -126,6 +127,10 @@ LIMIT 1",
 
        // Purge old entries
        SQL_QUERY('DELETE LOW_PRIORITY FROM `{?_MYSQL_PREFIX?}_online` WHERE (UNIX_TIMESTAMP() - `timestamp`) >= {?online_timeout?}', __FUNCTION__, __LINE__);
 
        // Purge old entries
        SQL_QUERY('DELETE LOW_PRIORITY FROM `{?_MYSQL_PREFIX?}_online` WHERE (UNIX_TIMESTAMP() - `timestamp`) >= {?online_timeout?}', __FUNCTION__, __LINE__);
+
+       // Return data
+       //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'Done!');
+       return $data;
 }
 
 // [EOF]
 }
 
 // [EOF]
index 17fa7113c9a1c223b4c67840880c57f67acda788..029483e975e31e872749b4d5dcf533dbd4a2cb08 100644 (file)
@@ -41,12 +41,17 @@ if (!defined('__SECURITY')) {
 } // END - if
 
 // Filter for debugging SQLs
 } // END - if
 
 // Filter for debugging SQLs
-function FILTER_DISPLAY_DEBUG_SQL () {
+function FILTER_DISPLAY_DEBUG_SQL ($data) {
        // Shall we display SQL queries?
        // Shall we display SQL queries?
+       //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'Called!');
        if ((isAdmin()) && (isDisplayDebugSqlEnabled()) && (!isGetRequestParameterSet('frame')) && ($GLOBALS['header_sent'] == 2)) {
                // Then display it here
                displayDebugSqls();
        } // END - if
        if ((isAdmin()) && (isDisplayDebugSqlEnabled()) && (!isGetRequestParameterSet('frame')) && ($GLOBALS['header_sent'] == 2)) {
                // Then display it here
                displayDebugSqls();
        } // END - if
+
+       // Return data
+       //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'Done!');
+       return $data;
 }
 
 // [EOF]
 }
 
 // [EOF]
index 8a66346a2d934674dcf469f191a4e7ee7ccbd9b6..56ed51f16700e8f519f2f396d96f58da63903de2 100644 (file)
@@ -41,12 +41,17 @@ if (!defined('__SECURITY')) {
 } // END - if
 
 // Filter for displaying politician_stop snippet
 } // END - if
 
 // Filter for displaying politician_stop snippet
-function FILTER_DISPLAY_POLITICIAN_STOP_SNIPPET () {
+function FILTER_DISPLAY_POLITICIAN_STOP_SNIPPET ($data) {
        // Shall we include the politician_stop snippet?
        // Shall we include the politician_stop snippet?
+       //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'Called!');
        if ((!isGetRequestParameterSet('frame')) && (isExtensionActive('politician_stop')) && (getModule() != 'admin') && ($GLOBALS['header_sent'] == 2)) {
                // Then display it here
                loadPoliticianStopSnippet();
        } // END - if
        if ((!isGetRequestParameterSet('frame')) && (isExtensionActive('politician_stop')) && (getModule() != 'admin') && ($GLOBALS['header_sent'] == 2)) {
                // Then display it here
                loadPoliticianStopSnippet();
        } // END - if
+
+       // Return data
+       //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'Done!');
+       return $data;
 }
 
 // [EOF]
 }
 
 // [EOF]
index cda5e6bc2eec26d8f96d9925aa9b92e799314f31..5e7d925e6caefe1f7aedc65d7cee8b491cabad4f 100644 (file)
@@ -41,9 +41,14 @@ if (!defined('__SECURITY')) {
 } // END - if
 
 // Filter for extra-autpurge
 } // END - if
 
 // Filter for extra-autpurge
-function FILTER_RALLYE_EXTRA_AUTOPURGE () {
+function FILTER_RALLYE_EXTRA_AUTOPURGE ($data) {
        // Check expired rallyes (hard-coded 3 days limit for displaying expired rallyes!)
        // Check expired rallyes (hard-coded 3 days limit for displaying expired rallyes!)
+       //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'Done!');
        purgeExpiredReferalRallyes();
        purgeExpiredReferalRallyes();
+
+       // Return data
+       //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'Done!');
+       return $data;
 }
 
 // [EOF]
 }
 
 // [EOF]
index e73d8a45a9a182a66ad1d74c5efebd781c468a72..61af1b755e1e1647a003b755cba751cd4efeb2e3 100644 (file)
@@ -43,6 +43,7 @@ if (!defined('__SECURITY')) {
 // Run a filter for must-fillout fields
 function FILTER_REGISTER_MUST_FILLOUT ($content) {
        // Get all fields for output
 // Run a filter for must-fillout fields
 function FILTER_REGISTER_MUST_FILLOUT ($content) {
        // Get all fields for output
+       //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'Called!');
        $result = SQL_QUERY('SELECT `field_name`, `field_required` FROM `{?_MYSQL_PREFIX?}_must_register` ORDER BY `id` ASC',
                __FUNCTION__, __LINE__);
 
        $result = SQL_QUERY('SELECT `field_name`, `field_required` FROM `{?_MYSQL_PREFIX?}_must_register` ORDER BY `id` ASC',
                __FUNCTION__, __LINE__);
 
@@ -62,6 +63,7 @@ function FILTER_REGISTER_MUST_FILLOUT ($content) {
        SQL_FREERESULT($result);
 
        // Return it
        SQL_FREERESULT($result);
 
        // Return it
+       //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'Done!');
        return $content;
 }
 
        return $content;
 }
 
index 39afe012573dee4ede756df87500d0b2f43825ff..850038abb664b553a17810c12187fdd9063c03c5 100644 (file)
@@ -43,15 +43,17 @@ if (!defined('__SECURITY')) {
 // Filter for adding anonymity notice to the output stream
 function FILTER_ADD_ANONYMITY_NOTICE ($data) {
        // Init content
 // Filter for adding anonymity notice to the output stream
 function FILTER_ADD_ANONYMITY_NOTICE ($data) {
        // Init content
+       //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'Called!');
        $content = $data;
 
        // Extension removeip activated?
        $content = $data;
 
        // Extension removeip activated?
-       if ((isExtensionActive('removeip')) && (getConfig('removeip_'.strtolower($data['access_level']).'_show') == 'Y')) {
+       if ((isExtensionActive('removeip')) && (getConfig('removeip_' . strtolower($data['access_level']) . '_show') == 'Y')) {
                // Add anoymity/privacy infos
                $content['content'] .= addAnonymityLevel() . "<br />\n";
        } // END - if
 
        // Return it
                // Add anoymity/privacy infos
                $content['content'] .= addAnonymityLevel() . "<br />\n";
        } // END - if
 
        // Return it
+       //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'Done!');
        return $content;
 }
 
        return $content;
 }
 
index 5cb385c9949fca852d83278af6635a6d136df1f8..d969424337fd7e0160ff9858cc7a633acc3d5145 100644 (file)
@@ -41,8 +41,9 @@ if (!defined('__SECURITY')) {
 } // END - if
 
 // Filter for generic handling of theme change
 } // END - if
 
 // Filter for generic handling of theme change
-function FILTER_HANDLE_THEME_CHANGE () {
+function FILTER_HANDLE_THEME_CHANGE ($data) {
        // Check if new theme is selcted
        // Check if new theme is selcted
+       //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'Called!');
        if ((isPostRequestParameterSet('new_theme')) && (postRequestParameter('new_theme') != getCurrentTheme())) {
                // Set new theme for guests
                $newTheme = postRequestParameter('new_theme');
        if ((isPostRequestParameterSet('new_theme')) && (postRequestParameter('new_theme') != getCurrentTheme())) {
                // Set new theme for guests
                $newTheme = postRequestParameter('new_theme');
@@ -59,10 +60,14 @@ function FILTER_HANDLE_THEME_CHANGE () {
                // Redirect to same URL
                redirectToRequestUri();
        } // END - if
                // Redirect to same URL
                redirectToRequestUri();
        } // END - if
+
+       // Return data
+       //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'Done!');
+       return $data;
 }
 
 // Filter for settings theme from user profile, must be executed only if FILTER_FETCH_USER_DATA() ran before
 }
 
 // Filter for settings theme from user profile, must be executed only if FILTER_FETCH_USER_DATA() ran before
-function FILTER_SET_USERS_THEME () {
+function FILTER_SET_USERS_THEME ($data) {
        // Is the user data valid?
        if (!isMember()) {
                // Do only run for logged in members
        // Is the user data valid?
        if (!isMember()) {
                // Do only run for logged in members
@@ -71,6 +76,10 @@ function FILTER_SET_USERS_THEME () {
 
        // Change to new theme
        setTheme(getUserData('curr_theme'));
 
        // Change to new theme
        setTheme(getUserData('curr_theme'));
+
+       // Return data
+       //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'Done!');
+       return $data;
 }
 
 // [EOF]
 }
 
 // [EOF]
index 7ff31c151b7e433d9f7cd8d7bb959dd379a75fbd..aa4268ea1ac90d99185d6a040bd30c6949410789 100644 (file)
@@ -41,12 +41,17 @@ if (!defined('__SECURITY')) {
 } // END - if
 
 // Filter for setting the timezone
 } // END - if
 
 // Filter for setting the timezone
-function FILTER_INIT_TIMEZONE () {
+function FILTER_INIT_TIMEZONE ($data) {
        // Just set it if the required function is there
        // Just set it if the required function is there
+       //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'Called!');
        if (function_exists('date_default_timezone_set')) {
                // CFG: TIME-ZONE
                date_default_timezone_set(getConfig('timezone'));
        } // END - if
        if (function_exists('date_default_timezone_set')) {
                // CFG: TIME-ZONE
                date_default_timezone_set(getConfig('timezone'));
        } // END - if
+
+       // Return data
+       //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'Done!');
+       return $data;
 }
 
 // [EOF]
 }
 
 // [EOF]
index ec30e1a778d2dc0d6a307543c95ad389f76de5da..faa0fe165892b9165d8a15d16567d67bab5c0b41 100644 (file)
@@ -41,12 +41,17 @@ if (!defined('__SECURITY')) {
 } // END - if
 
 // Filter for displaying uberwach snippet
 } // END - if
 
 // Filter for displaying uberwach snippet
-function FILTER_DISPLAY_UBERWACH_SNIPPET () {
+function FILTER_DISPLAY_UBERWACH_SNIPPET ($data) {
        // Shall we include the uberwach snippet?
        // Shall we include the uberwach snippet?
+       //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'Called!');
        if ((!isGetRequestParameterSet('frame')) && (isExtensionActive('uberwach')) && (getModule() != 'admin') && ($GLOBALS['header_sent'] == 2)) {
                // Then display it here
                loadUberwachSnippet();
        } // END - if
        if ((!isGetRequestParameterSet('frame')) && (isExtensionActive('uberwach')) && (getModule() != 'admin') && ($GLOBALS['header_sent'] == 2)) {
                // Then display it here
                loadUberwachSnippet();
        } // END - if
+
+       // Return data
+       //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'Done!');
+       return $data;
 }
 
 // [EOF]
 }
 
 // [EOF]
index 6f570cdd1ffc2afa2b191fba0d67a3ebc7ee5673..be1223d7b40a3a7ca61983734dae43382adf51bc 100644 (file)
@@ -926,7 +926,7 @@ function generateHash ($plainText, $salt = '', $hash = true) {
                // Sanity check on salt
                if (strlen($salt) != getSaltLength()) {
                        // Not the same!
                // Sanity check on salt
                if (strlen($salt) != getSaltLength()) {
                        // Not the same!
-                       debug_report_bug(__FUNCTION__, __LINE__, 'salt length mismatch! ('.strlen($salt).'/'.getSaltLength().')');
+                       debug_report_bug(__FUNCTION__, __LINE__, 'salt length mismatch! (' . strlen($salt) . '/' . getSaltLength() . ')');
                } // END - if
        }
 
                } // END - if
        }
 
@@ -2316,6 +2316,33 @@ function getArrayKeysFromSubStrArray ($heystack, array $needles, $offset = 0) {
        return $keys;
 }
 
        return $keys;
 }
 
+// Determines database column name from given subject and locked
+function determinePointsColumnFromSubjectLocked ($subject, $locked) {
+       // Default is 'normal' points
+       $pointsColumn = 'points';
+
+       // Which points, locked or normal?
+       if ($locked === true) {
+               $pointsColumn = 'locked_points';
+       } // END - if
+
+       // Prepare array for filter
+       $filterData = array(
+               'subject' => $subject,
+               'locked'  => $locked,
+               'column'  => $pointsColumn
+       );
+
+       // Run the filter
+       $filterData = runFilterChain('determine_points_column_name', $filterData);
+
+       // Extract column name from array
+       $pointsColumn = $filterData['column'];
+
+       // Return it
+       return $pointsColumn;
+}
+
 //-----------------------------------------------------------------------------
 // Automatically re-created functions, all taken from user comments on www.php.net
 //-----------------------------------------------------------------------------
 //-----------------------------------------------------------------------------
 // Automatically re-created functions, all taken from user comments on www.php.net
 //-----------------------------------------------------------------------------
index f09d5c5740969e28943b62f6ba916a79171c46dc..4055aaa394aa73cc51584c9aa0c86d9c0c54e359 100644 (file)
@@ -75,8 +75,6 @@ addMessages(array(
        'ADMIN_BEG_POINTS_MAX' => "Maximale erbettelbare {?POINTS?} bei Klick auf Bettellink",
        'ADMIN_BEG_USERID' => "Mitglied-Account zum Abbuchen der erbettelten {?POINTS?}",
        'ADMIN_SELECT_BEG_MODE' => "Verg&uuml;tungsmodus der erbettelten {?POINTS?}",
        'ADMIN_BEG_POINTS_MAX' => "Maximale erbettelbare {?POINTS?} bei Klick auf Bettellink",
        'ADMIN_BEG_USERID' => "Mitglied-Account zum Abbuchen der erbettelten {?POINTS?}",
        'ADMIN_SELECT_BEG_MODE' => "Verg&uuml;tungsmodus der erbettelten {?POINTS?}",
-       'BEG_MODE_DIRECT' => "Nur direktem Mitglied gutschreiben.",
-       'BEG_MODE_REF' => "Auch dem Werber des Mitgliedes gutschreiben.",
        'BEG_SORRY_YOURE_LOGGED_IN_1' => "Oh, schade! Sie haben vermutlich auf Ihren eigenen Bettel-Link mit der Mitglieder-Id ",
        'BEG_SORRY_YOURE_LOGGED_IN_2' => " geklickt. Sie haben somit auch keine ",
        'BEG_SORRY_YOURE_LOGGED_IN_3' => " {?POINTS?} erhalten.",
        'BEG_SORRY_YOURE_LOGGED_IN_1' => "Oh, schade! Sie haben vermutlich auf Ihren eigenen Bettel-Link mit der Mitglieder-Id ",
        'BEG_SORRY_YOURE_LOGGED_IN_2' => " geklickt. Sie haben somit auch keine ",
        'BEG_SORRY_YOURE_LOGGED_IN_3' => " {?POINTS?} erhalten.",
index 330d4b40a5d2da2b6da500f3222f16d4be458fc6..2276598dee0896b0bfbf2d33b109ef35561a7f5d 100644 (file)
@@ -49,8 +49,6 @@ addMessages(array(
        'MEMBER_BIRTHDAY_CANNOT_STATUS' => "Kann keine {?POINTS?} gutschreiben! Status Ihres Accounts: <span class=\"data\">%s</span>",
        'MEMBER_BIRTHDAY_CANNOT_LOAD_DATA' => "Entweder haben Sie bereits Ihr Geburtsgeschenk erhalten oder Sie haben heute keinen Geburtstag.",
        'ADMIN_SELECT_BIRTHDAY_MODE' => "Verg&uuml;tungsmodus der {?POINTS?}",
        'MEMBER_BIRTHDAY_CANNOT_STATUS' => "Kann keine {?POINTS?} gutschreiben! Status Ihres Accounts: <span class=\"data\">%s</span>",
        'MEMBER_BIRTHDAY_CANNOT_LOAD_DATA' => "Entweder haben Sie bereits Ihr Geburtsgeschenk erhalten oder Sie haben heute keinen Geburtstag.",
        'ADMIN_SELECT_BIRTHDAY_MODE' => "Verg&uuml;tungsmodus der {?POINTS?}",
-       'ADMIN_BIRTHDAY_MODE_DIRECT' => "Nur direktem Mitglied gutschreiben.",
-       'ADMIN_BIRTHDAY_MODE_REF' => "Auch dem Werber des Mitgliedes gutschreiben.",
        'ADMIN_BIRTHDAY_ONLY_ACTIVE' => "Nur aktive Mitglieder erhalten die Geburtstagsgutschrift?<br /><div class=\"notice\">(Nur in Verbindung mit der Erweiterung <strong>autopurge</strong>!)</div>",
 ));
 
        'ADMIN_BIRTHDAY_ONLY_ACTIVE' => "Nur aktive Mitglieder erhalten die Geburtstagsgutschrift?<br /><div class=\"notice\">(Nur in Verbindung mit der Erweiterung <strong>autopurge</strong>!)</div>",
 ));
 
index 9d8ceaf896c601d1f9461cc243b5d5e3a78d6c69..e796cd41461ada19cb4e9b3de2acbdce362b05b4 100644 (file)
@@ -81,7 +81,7 @@ addMessages(array(
        'ADMIN_BONUS_WINNER_HIGLIGHTED' => "M&ouml;gliche Gewinner der Aktiv-Rallye sind dick marktiert.",
        'ADMIN_BONUS_ALREADY_WITHDRAW' => "Manuelle Verg&uuml;tungvorbereitung bereits bet&auml;tigt.",
        'ADMIN_BONUS_TIMEOUT' => "Es werden nur Mitglieder ausgewertet und hier aufgelistet, die sp&auml;testens am <span class=\"data\">%s</span> noch aktiv waren. Alle anderen Mitglieder erhalten die Verg&uuml;tung nicht.",
        'ADMIN_BONUS_WINNER_HIGLIGHTED' => "M&ouml;gliche Gewinner der Aktiv-Rallye sind dick marktiert.",
        'ADMIN_BONUS_ALREADY_WITHDRAW' => "Manuelle Verg&uuml;tungvorbereitung bereits bet&auml;tigt.",
        'ADMIN_BONUS_TIMEOUT' => "Es werden nur Mitglieder ausgewertet und hier aufgelistet, die sp&auml;testens am <span class=\"data\">%s</span> noch aktiv waren. Alle anderen Mitglieder erhalten die Verg&uuml;tung nicht.",
-       'ADMIN_BONUS_USERID' => "Mitgliedskonto zum Abbuchen der {?POINTS?}",
+       'ADMIN_CONFIG_BONUS_USERID' => "Mitgliedskonto zum Abbuchen der {?POINTS?}",
        'ADMIN_CONFIG_BONUS_TIMEOUT' => "Verweildauer von Aktiv-Bonus-Eintr&auml;gen",
        'ADMIN_LIST_BONUS_RALLYE_TITLE' => "Alle an der Aktiv-Rallye teilnehmenden Mitglieder:",
        'ADMIN_BONUS_TURBO_LINES' => "Anzahl angezeigter Aktiv-Bonus-Empf&auml;nger in <strong>show_bonus.php</strong>",
        'ADMIN_CONFIG_BONUS_TIMEOUT' => "Verweildauer von Aktiv-Bonus-Eintr&auml;gen",
        'ADMIN_LIST_BONUS_RALLYE_TITLE' => "Alle an der Aktiv-Rallye teilnehmenden Mitglieder:",
        'ADMIN_BONUS_TURBO_LINES' => "Anzahl angezeigter Aktiv-Bonus-Empf&auml;nger in <strong>show_bonus.php</strong>",
index 90637aca7e136420ddffddff838cbcaba387a721..b5e760f6f7a587091f82cef9c145b01371ecfff1 100644 (file)
@@ -46,6 +46,12 @@ addMessages(array(
        'ADMIN_CONFIG_COUPON_SETTINGS_TITLE' => "Allgemeine Einstellungen zu den Gutscheinen",
        'ADMIN_CONFIG_COUPON_DEFAULT_TIME' => "Zeit, bis Gutscheine ablaufen sollen. Sie k&ouml;nnen diesen Ausgangswert beim Erstellen von neuen Gutscheinen nachtr&auml;glich anpassen.",
        'ADMIN_CONFIG_COUPON_DEFAULT_POINTS' => "Ausgangsverg&uuml;tung in {?POINTS?}. Sie k&ouml;nnen diesen Ausgangswert beim Erstellen von neuen Gutscheinen nachtr&auml;glich anpassen.",
        'ADMIN_CONFIG_COUPON_SETTINGS_TITLE' => "Allgemeine Einstellungen zu den Gutscheinen",
        'ADMIN_CONFIG_COUPON_DEFAULT_TIME' => "Zeit, bis Gutscheine ablaufen sollen. Sie k&ouml;nnen diesen Ausgangswert beim Erstellen von neuen Gutscheinen nachtr&auml;glich anpassen.",
        'ADMIN_CONFIG_COUPON_DEFAULT_POINTS' => "Ausgangsverg&uuml;tung in {?POINTS?}. Sie k&ouml;nnen diesen Ausgangswert beim Erstellen von neuen Gutscheinen nachtr&auml;glich anpassen.",
+       'ADMIN_CONFIG_COUPON_AUTOPURGE_TIME' => "Dauer bis abgelaufene Gutscheine aus der Datenbank entfernt werden",
+       'ADMIN_CONFIG_COUPON_SELECT_PAYMENT_METHOD' => "Soll nur dem Mitglied direkt die Gutschrift aus dem Einl&ouml;sen von Gutscheinen oder &uuml;ber das Referal-System gutgeschrieben werden?",
+       'ADMIN_CONFIG_COUPON_SELECT_POINTS_ACCOUNT' => "Sollen die {?POINTS?} aus den eingel&ouml;sten Gutscheinen dem allgemeinen oder dem Werbekonto gutgeschrieben werden?",
+       'ADMIN_CONFIG_COUPON_SELECT_LOCKED_POINTS_MODE' => "Wenn das Mitglied noch zu best&auml;tigende Mails offen hat, sollen die eingel&ouml;sten Gutscheine einem gesperrten Konto oder dem oben eingestellten gutgeschrieben werden?",
+       'ADMIN_CONFIG_COUPON_USERID' => "Mitgliederaccount, von dem die eingel&ouml;sten {?POINTS?} abgebucht werden sollen:",
+
        // Admin - Send coupon to members
        'ADMIN_SEND_COUPON_TITLE' => "Gutschein versenden (aktuell nur Code-Gutscheine)",
        'ADMIN_SEND_COUPON_EXPIRATION_TIME' => "Ablaufzeit (ab Versandzeitpunkt)",
        // Admin - Send coupon to members
        'ADMIN_SEND_COUPON_TITLE' => "Gutschein versenden (aktuell nur Code-Gutscheine)",
        'ADMIN_SEND_COUPON_EXPIRATION_TIME' => "Ablaufzeit (ab Versandzeitpunkt)",
@@ -60,10 +66,14 @@ addMessages(array(
        'MEMBER_CASH_COUPON_NOTE' => "Geben Sie hier den Gutschein-Code ein, den Sie aus unserer Mail erhalten haben. Sie erhalten dann eine Meldung, auf welches Konto die Gutschrift aufgebucht wurde.",
        'MEMBER_CASH_COUPON' => "Gutschein einl&ouml;sen",
        'MEMBER_ENTER_COUPON_CODE' => "Gutschein-Code eingeben:",
        'MEMBER_CASH_COUPON_NOTE' => "Geben Sie hier den Gutschein-Code ein, den Sie aus unserer Mail erhalten haben. Sie erhalten dann eine Meldung, auf welches Konto die Gutschrift aufgebucht wurde.",
        'MEMBER_CASH_COUPON' => "Gutschein einl&ouml;sen",
        'MEMBER_ENTER_COUPON_CODE' => "Gutschein-Code eingeben:",
+       'MEMBER_COUPON_CODE_EMPTY' => "Sie haben keinen Gutschein-Code eingegeben. Bitte versuchen Sie es erneut.",
+       'MEMBER_COUPON_CODE_ALREADY_USED' => "Der von Ihnen eingegebene Gutschein-Code ist entweder ung&uuml;tig, Ihnen nicht zugewiesen, bereits abgelaufen, oder Sie haben ihn bereits eingel&ouml;st.",
+       'MEMBER_COUPON_CODE_CASHED' => "Ihr Gutschein im Wert von <span class=\"data\">{%%pipe,translateComma=%s%%} {?POINTS?}</span> wurde soeben eingel&ouml;st und Ihrem Konto gutgeschrieben.",
 
        // Subject lines
        'MEMBER_COUPON_SUBJECT' => "Gutschein bei {?MAIN_TITLE?}",
 
        // Subject lines
        'MEMBER_COUPON_SUBJECT' => "Gutschein bei {?MAIN_TITLE?}",
-       'ADMIN_COUPON_SUBJECT'  => "Es wurde ein Gutschein versendet",
+       'ADMIN_COUPON_SUBJECT' => "Es wurde ein Gutschein versendet",
+       'ADMIN_COUPON_CASHED_SUBJECT' => "Ein Mitglied hat seinen Gutschein eingel&ouml;st",
 ));
 
 // [EOF]
 ));
 
 // [EOF]
index 5dc0b744eb32b79584e433b47108a90072ff5e03..022f64f30c59b2b25d3e9b51fd417e23400433d0 100644 (file)
@@ -1151,6 +1151,18 @@ addMessages(array(
        'ADMIN_EXPERT_SETTINGS_NOTE' => "Sie sind im Begriff Einstellungen zu &auml;ndern, die sehr sensibel sind und sich auf die Funktionalit&auml;t Ihres {?mt_word2?} negativ auswirken k&ouml;nnen. Sie sollten daher hier nichts &auml;ndern, solange Sie nicht wissen, was Sie da tun.",
        'ADMIN_EXPERT_SETTINGS_MAKE_PERMANENT' => "Ja, ich weiss was ich tue und m&ouml;chte diesen Hinweis nicht mehr angezeigt bekommen.",
        'ADMIN_EXPERT_SETTINGS_CONTINUE' => "Dennoch die Experten-Einstellungen aufrufen",
        'ADMIN_EXPERT_SETTINGS_NOTE' => "Sie sind im Begriff Einstellungen zu &auml;ndern, die sehr sensibel sind und sich auf die Funktionalit&auml;t Ihres {?mt_word2?} negativ auswirken k&ouml;nnen. Sie sollten daher hier nichts &auml;ndern, solange Sie nicht wissen, was Sie da tun.",
        'ADMIN_EXPERT_SETTINGS_MAKE_PERMANENT' => "Ja, ich weiss was ich tue und m&ouml;chte diesen Hinweis nicht mehr angezeigt bekommen.",
        'ADMIN_EXPERT_SETTINGS_CONTINUE' => "Dennoch die Experten-Einstellungen aufrufen",
+
+       // Payment modes
+       'ADMIN_CONFIG_PAYMENT_MODE_DIRECT' => "Nur direktem Mitglied gutschreiben.",
+       'ADMIN_CONFIG_PAYMENT_MODE_REF' => "Auch dem Werber des Mitgliedes gutschreiben.",
+
+       // Locked-points modes
+       'ADMIN_CONFIG_LOCKED_POINTS_MODE_LOCKED' => "Einem gesperrten Konto gutschreiben.",
+       'ADMIN_CONFIG_LOCKED_POINTS_MODE_UNLOCKED' => "Dem voreingestellten Konto gutschreiben.",
+
+       // Points account
+       'ADMIN_CONFIG_POINTS_ACCOUNT_ORDER' => "Dem Werbekonto gutschreiben.",
+       'ADMIN_CONFIG_POINTS_ACCOUNT_GENERAL' => "Dem allgemeinen Konto gutschreiben.",
 ));
 
 // Description of all months
 ));
 
 // Description of all months
index 49b4beb6e62481a501b88e9a0130154491263a41..b3622839f1bbe93b30b84189018c7281b1bd16be 100644 (file)
@@ -54,11 +54,11 @@ function addPointsBeg ($userid, $points) {
                // Add points to account
                // @TODO Try to rewrite the following unset()
                unset($GLOBALS['ref_level']);
                // Add points to account
                // @TODO Try to rewrite the following unset()
                unset($GLOBALS['ref_level']);
-               $added = addPointsThroughReferalSystem('beg', $userid, $points, false, 0, strtolower(getBegMode()));
+               $added = addPointsThroughReferalSystem('beg', $userid, $points, false, 0, getBegMode());
        }
 
        // Subtract begged points from member account if the admin has selected one
        }
 
        // Subtract begged points from member account if the admin has selected one
-       if (getBegUserid() > 0) {
+       if (isValidUserId(getBegUserid())) {
                // Subtract from this account
                subtractPoints('beg_payout', getBegUserid(), $points);
        } // END - if
                // Subtract from this account
                subtractPoints('beg_payout', getBegUserid(), $points);
        } // END - if
index bd3948445860d43f39270df080dfdb1f82804aee..9033627032e8fa88e1a83ae2ef46af2fa7ccaf7e 100644 (file)
@@ -218,7 +218,7 @@ function handleBonusPoints ($mode) {
        if (!isBonusRallyeActive()) return;
 
        // Switch to jackpot-mode when no UID is supplied but userid-mode is selected
        if (!isBonusRallyeActive()) return;
 
        // Switch to jackpot-mode when no UID is supplied but userid-mode is selected
-       if ((getBonusMode() == 'UID') && (getBonusUserId() == '0') && (isExtensionActive('jackpot'))) {
+       if ((getBonusMode() == 'UID') && (getBonusUserid() == '0') && (isExtensionActive('jackpot'))) {
                // Update database & config
                updateConfiguration('bonus_mode', 'JACKPOT');
        } // END - if
                // Update database & config
                updateConfiguration('bonus_mode', 'JACKPOT');
        } // END - if
@@ -232,7 +232,7 @@ function handleBonusPoints ($mode) {
        }
 
        // Check his amount first
        }
 
        // Check his amount first
-       $total = getTotalPoints(getBonusUserId());
+       $total = getTotalPoints(getBonusUserid());
 
        // Subtract points from...
        switch (getBonusMode()) {
 
        // Subtract points from...
        switch (getBonusMode()) {
@@ -241,10 +241,10 @@ function handleBonusPoints ($mode) {
                        break;
 
                case 'JACKPOT': // ... jackpot
                        break;
 
                case 'JACKPOT': // ... jackpot
-                       if ((isExtensionActive('jackpot')) && (subtractPointsFromJackpot($points) == -1) && (isValidUserId(getBonusUserId()))) {
+                       if ((isExtensionActive('jackpot')) && (subtractPointsFromJackpot($points) == -1) && (isValidUserId(getBonusUserid()))) {
                                if ($total >= $points) {
                                        // Subtract points from userid's account
                                if ($total >= $points) {
                                        // Subtract points from userid's account
-                                       subtractPointsFromJackpot('bonus_payout_jackpot', getBonusUserId(), $points);
+                                       subtractPointsFromJackpot('bonus_payout_jackpot', getBonusUserid(), $points);
                                } // END - if
                        } // END - if
                        break;
                                } // END - if
                        } // END - if
                        break;
@@ -252,7 +252,7 @@ function handleBonusPoints ($mode) {
                case 'UID': // ... userid's account
                        if ($total >= $points) {
                                // Subtract points from userid's account
                case 'UID': // ... userid's account
                        if ($total >= $points) {
                                // Subtract points from userid's account
-                               subtractPoints('bonus_payout_userid', getBonusUserId(), $points);
+                               subtractPoints('bonus_payout_userid', getBonusUserid(), $points);
                        } elseif (isExtensionActive('jackpot')) {
                                // Try to subtract from jackpot
                                $dummy = subtractPointsFromJackpot($points);
                        } elseif (isExtensionActive('jackpot')) {
                                // Try to subtract from jackpot
                                $dummy = subtractPointsFromJackpot($points);
index eb205ec7345e7edd84dadf394b85ac0e42a1614f..f077b9ba45c0bd1f0331982ca411c3fb3679974f 100644 (file)
@@ -45,7 +45,7 @@ function addValidHtmlTags() {
        $OUT = '';
        if (!is_array($GLOBALS['html_tags'])) return "";
        foreach ($GLOBALS['html_tags'] as $tag) {
        $OUT = '';
        if (!is_array($GLOBALS['html_tags'])) return "";
        foreach ($GLOBALS['html_tags'] as $tag) {
-               $OUT .= ", ".strtoupper($tag);
+               $OUT .= ', ' . strtoupper($tag);
        }
        $OUT = substr($OUT, 2);
        return $OUT;
        }
        $OUT = substr($OUT, 2);
        return $OUT;
index 151aa2783e31a7002a3dd06f9ac1f5538aa9a78c..60b713ae1d207585c63b101bc40e8f7ca63b1024 100644 (file)
@@ -81,13 +81,13 @@ LIMIT 1", array($key), __FUNCTION__, __LINE__);
 
                        // Check affected rows
                        if (is_null($added)) {
 
                        // Check affected rows
                        if (is_null($added)) {
-                               //* DEBUG: */ debugOutput(__FUNCTION__ . '(<font color="#0000aa">' . __LINE__ . '</font>):added='.intval($added));
+                               //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'added='.intval($added));
                                $added = (!SQL_HASZEROAFFECTED());
                                $added = (!SQL_HASZEROAFFECTED());
-                               //* DEBUG: */ debugOutput(__FUNCTION__ . '(<font color="#0000aa">' . __LINE__ . '</font>):added='.intval($added));
+                               //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'added='.intval($added));
                        } else {
                        } else {
-                               //* DEBUG: */ debugOutput(__FUNCTION__ . '(<font color="#0000aa">' . __LINE__ . '</font>):added='.intval($added));
+                               //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'added='.intval($added));
                                $added = ($added && (!SQL_HASZEROAFFECTED()));
                                $added = ($added && (!SQL_HASZEROAFFECTED()));
-                               //* DEBUG: */ debugOutput(__FUNCTION__ . '(<font color="#0000aa">' . __LINE__ . '</font>):added='.intval($added));
+                               //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'added='.intval($added));
                        }
                } // END - foreach
        } // END - if
                        }
                } // END - foreach
        } // END - if
index b720966c23b19dec3c9fdbbfc35df579580c4bec..fd085a87b841851d5de34d8d603555405762ac05 100644 (file)
@@ -77,8 +77,8 @@ if (isFormSent()) {
        $content['pay_mode_' . strtolower(getBegPayMode())] = ' selected="selected"';
 
        // Init beg_mode elements
        $content['pay_mode_' . strtolower(getBegPayMode())] = ' selected="selected"';
 
        // Init beg_mode elements
-       foreach (array('direct', 'ref') as $entry) {
-               $content['beg_mode_' . $entry] = '';
+       foreach (array('DIRECT', 'REFERAL') as $entry) {
+               $content['beg_mode_' . strtolower($entry)] = '';
        } // END - foreach
 
        // Set default mode
        } // END - foreach
 
        // Set default mode
index 73206717aa2967258d15c2565615b62361e33aac..cac121f34ca9c2178db4b31b3bba2aa2f3878d6c 100644 (file)
@@ -47,7 +47,7 @@ if (isFormSent()) {
        // Save configuration
        adminSaveSettingsFromPostData();
 } else {
        // Save configuration
        adminSaveSettingsFromPostData();
 } else {
-       // Init all other templates
+       // Init all other template entries
        foreach (array('active_y','active_n','mode_direct','mode_ref') as $entry) {
                $content[$entry] = '';
        } // END - foreach
        foreach (array('active_y','active_n','mode_direct','mode_ref') as $entry) {
                $content[$entry] = '';
        } // END - foreach
index 478c040521a8dc96190576f58cacd244d4f941e4..5f2a8d9e4638b7362d387e2526e59a5c66dfef06 100644 (file)
@@ -71,7 +71,7 @@ if (isFormSent()) {
        setConfigEntry('bonus_disable_notify', postRequestParameter('bonus_disable_notify'));
 } else {
        // Transfer options to template
        setConfigEntry('bonus_disable_notify', postRequestParameter('bonus_disable_notify'));
 } else {
        // Transfer options to template
-       $content['bonus_userid'] = addMemberSelectionBox(getBonusUserId(), false, true, true, 'bonus_userid');
+       $content['bonus_userid'] = addMemberSelectionBox(getBonusUserid(), false, true, true, 'bonus_userid');
 
        // Initialize array for the points list
        $RANKS = explode(';', getConfig('turbo_rates'));
 
        // Initialize array for the points list
        $RANKS = explode(';', getConfig('turbo_rates'));
index fb9a11a90e7557ff8d9cf401ac36303b5fd7829e..36118680ad409a554b917d4524ce62f56d4d5f33 100644 (file)
@@ -50,8 +50,22 @@ if (isFormSent()) {
        // Save data
        adminSaveSettingsFromPostData();
 } else {
        // Save data
        adminSaveSettingsFromPostData();
 } else {
+       // Add userid selection
+       $content['coupon_userid'] = addMemberSelectionBox(getConfig('coupon_userid'), false, true, true, 'coupon_userid');
+
+       // Init all other template entries
+       foreach (array('payment_method_ref', 'payment_method_direct', 'points_account_order', 'points_account_general', 'locked_points_mode_locked', 'locked_points_mode_unlocked') as $entry) {
+               $content['coupon_' . $entry] = '';
+       } // END - foreach
+
+       // Set current selections
+       foreach (array('payment_method', 'points_account', 'locked_points_mode') as $entry) {
+               $content['coupon_' . $entry . '_' . strtolower(getConfig('coupon_' . $entry))] = ' checked="checked"';
+       } // END - foreach
+
        // Prepare some template data
        // Prepare some template data
-       $content['coupon_default_time_selection'] = createConfigurationTimeSelections('coupon_default_time', 'WDh');
+       $content['coupon_default_time_selection']   = createConfigurationTimeSelections('coupon_default_time'  , 'WDh');
+       $content['coupon_autopurge_time_selection'] = createConfigurationTimeSelections('coupon_autopurge_time', 'WDh');
 
        // Load template
        loadTemplate('admin_config_coupon', false, $content);
 
        // Load template
        loadTemplate('admin_config_coupon', false, $content);
index a3329ae3e3614f4a1518b46e324d44ed775fbece..b304dbe7bada516e5bf1f2f642d5d2af1ee3c620 100644 (file)
@@ -49,7 +49,7 @@ if (isFormSent()) {
        if (!isPostRequestParameterSet('points')) {
                // Points not entered
                displayMessage('{--ADMIN_SEND_COUPON_POINTS_NOT_ENTERED--}');
        if (!isPostRequestParameterSet('points')) {
                // Points not entered
                displayMessage('{--ADMIN_SEND_COUPON_POINTS_NOT_ENTERED--}');
-       } elseif (!isPostRequestParameterSet('description')) {
+       } elseif (!isPostRequestParameterSet('coupon_description')) {
                // Description not entered
                displayMessage('{--ADMIN_SEND_COUPON_DESCRIPTION_NOT_ENTERED--}');
        } else {
                // Description not entered
                displayMessage('{--ADMIN_SEND_COUPON_DESCRIPTION_NOT_ENTERED--}');
        } else {
@@ -63,12 +63,12 @@ if (isFormSent()) {
                        $expirationTime = time() + createEpocheTimeFromSelections('coupon_default_time', postRequestArray());
 
                        // Insert coupon data
                        $expirationTime = time() + createEpocheTimeFromSelections('coupon_default_time', postRequestArray());
 
                        // Insert coupon data
-                       SQL_QUERY_ESC("INSERT INTO `{?_MYSQL_PREFIX?}_coupon_data` (`timestamp_expired`, `total_created`, `points`, `coupon_description`) VALUES('{%%pipe,SQL_EPOCHE_TO_TIMESTAMP=%s%%}', %s,%s,'%s')",
+                       SQL_QUERY_ESC("INSERT INTO `{?_MYSQL_PREFIX?}_coupon_data` (`coupon_expired`, `total_created`, `points`, `coupon_description`) VALUES('{%%pipe,SQL_EPOCHE_TO_TIMESTAMP=%s%%}', %s,%s,'%s')",
                                array(
                                        $expirationTime,
                                        SQL_NUMROWS($result),
                                        bigintval(postRequestParameter('points')),
                                array(
                                        $expirationTime,
                                        SQL_NUMROWS($result),
                                        bigintval(postRequestParameter('points')),
-                                       postRequestParameter('description')
+                                       postRequestParameter('coupon_description')
                                ), __FILE__, __LINE__
                        );
 
                                ), __FILE__, __LINE__
                        );
 
@@ -104,7 +104,7 @@ if (isFormSent()) {
                                        'userid'         => $userid,
                                        'points'         => bigintval(postRequestParameter('points')),
                                        'coupon_code'    => $couponCode,
                                        'userid'         => $userid,
                                        'points'         => bigintval(postRequestParameter('points')),
                                        'coupon_code'    => $couponCode,
-                                       'coupon_expires' => generateDateTime($expirationTime, '0')
+                                       'coupon_expired' => generateDateTime($expirationTime, '0')
                                );
 
                                // Load member email template
                                );
 
                                // Load member email template
@@ -123,12 +123,12 @@ if (isFormSent()) {
 
                // Prepare content for template
                $content = array(
 
                // Prepare content for template
                $content = array(
-                       'userids'        => implode(',', $adminUserids),
-                       'userid_count'   => count($adminUserids),
-                       'coupon_id'      => $couponId,
-                       'points'         => bigintval(postRequestParameter('points')),
-                       'description'    => postRequestParameter('description'),
-                       'coupon_expires' => generateDateTime($expirationTime, '0')
+                       'userids'            => implode(',', $adminUserids),
+                       'userid_count'       => count($adminUserids),
+                       'coupon_id'          => $couponId,
+                       'points'             => bigintval(postRequestParameter('points')),
+                       'coupon_description' => postRequestParameter('coupon_description'),
+                       'coupon_expired'     => generateDateTime($expirationTime, '0')
                );
 
                // Send admin notification
                );
 
                // Send admin notification
index 2984ec788dcf755dd9cdcc11c4fc297514455573..90280846df88b3def065737e16b1e4f0a7a11d33 100644 (file)
@@ -53,7 +53,100 @@ if ((!isExtensionActive('coupon')) && (!isAdmin())) {
 
 // Is the form sent?
 if (isFormSent()) {
 
 // Is the form sent?
 if (isFormSent()) {
-       // @TODO
+       // Is the coupon code entered?
+       if (isPostRequestParameterSet('coupon_code')) {
+               // Search for the coupon
+               $result = SQL_QUERY_ESC("SELECT
+       c.`coupon_id`,
+       UNIX_TIMESTAMP(d.`coupon_created`) AS `coupon_created`,
+       UNIX_TIMESTAMP(d.`coupon_expired`) AS `coupon_expired`,
+       d.`coupon_type`,
+       d.`total_created`,
+       d.`total_used`,
+       d.`points`,
+       d.`coupon_description`
+FROM
+       `{?_MYSQL_PREFIX?}_user_coupons` AS c
+INNER JOIN
+       `{?_MYSQL_PREFIX?}_coupon_data` AS d
+ON
+       c.`coupon_id`=d.`id`
+WHERE
+       c.`coupon_code`='%s' AND
+       c.`userid`=%s AND
+       c.`cashed_on` IS NULL AND
+       UNIX_TIMESTAMP(d.`coupon_expired`) > UNIX_TIMESTAMP()
+LIMIT 1",
+                       array(
+                               postRequestParameter('coupon_code'),
+                               getMemberId()
+                       ), __FILE__, __LINE__);
+
+               // Do we have an entry?
+               if (SQL_NUMROWS($result) == 1) {
+                       // Load data
+                       $content = SQL_FETCHARRAY($result);
+
+                       // Mark it as "cashed"
+                       SQL_QUERY_ESC("UPDATE
+       `{?_MYSQL_PREFIX?}_user_coupons`
+SET
+       `cashed_on`=NOW(),
+       `coupon_code`=NULL
+WHERE
+       `coupon_code`='%s' AND
+       `userid`=%s
+LIMIT 1",
+                               array(
+                                       postRequestParameter('coupon_code'),
+                                       getMemberId()
+                               ), __FILE__, __LINE__);
+
+                       // Does it work?
+                       if (SQL_HASZEROAFFECTED()) {
+                               // Abort it here, it always must work
+                               debug_report_bug(__FILE__, __LINE__, 'User coupon cannot be updated! coupon_id=' . $content['coupon_id']);
+                       } // END - if
+
+                       // Update count as well
+                       SQL_QUERY_ESC("UPDATE `{?_MYSQL_PREFIX?}_coupon_data` SET `total_used`=`total_used`+1 WHERE `id`=%s AND `total_used` < `total_created` LIMIT 1",
+                               array(bigintval($content['coupon_id'])), __FILE__, __LINE__);
+
+                       // Does it work?
+                       if (SQL_HASZEROAFFECTED()) {
+                               // Abort it here, it always must work
+                               debug_report_bug(__FILE__, __LINE__, 'Coupon data cannot be updated! coupon_id=' . $content['coupon_id']);
+                       } // END - if
+
+                       // Now we just need to book that points on the user's account
+                       addPointsThroughReferalSystem('coupon_cashed', getMemberId(), $content['points'], false, 0, getConfig('coupon_payment_method'));
+
+                       // Subtract points from member account if the admin has selected one
+                       if (isValidUserId(getConfig('coupon_userid'))) {
+                               // Subtract from this account
+                               subtractPoints('cashed_coupon', getConfig('coupon_userid'), $content['points']);
+                       } // END - if
+
+                       // Translate some data
+                       $content['coupon_expired'] = generateDateTime($content['coupon_expired'], '0');
+                       $content['coupon_created'] = generateDateTime($content['coupon_created'], '0');
+
+                       // Send admin notification
+                       sendAdminNotification('{--ADMIN_COUPON_CASHED_SUBJECT--}', 'admin_coupon_cashed', $content, getMemberId());
+
+                       // Display message
+                       displayMessage(getMaskedMessage('MEMBER_COUPON_CODE_CASHED', $content['points']));
+               } else {
+                       // No coupon found
+                       displayMessage('{--MEMBER_COUPON_CODE_ALREADY_USED--}');
+               }
+
+               // Free the result
+               SQL_FREERESULT($result);
+       } else {
+               // No code entered!
+               displayMessage('{--MEMBER_COUPON_CODE_EMPTY--}');
+       }
 } else {
        // Load form template
        loadTemplate('member_cash_coupon', false);
 } else {
        // Load form template
        loadTemplate('member_cash_coupon', false);
index 65abc76504b93fd9e585997d272411cde69c4d8f..5505c9dbb7e2a8c1a1bec1b5f730a05e0ab02c52 100644 (file)
@@ -74,7 +74,7 @@ LIMIT 1",
        } // END - if
 
        // Display it depending on mail (data) type
        } // END - if
 
        // Display it depending on mail (data) type
-       loadTemplate('member_mail_bonus_'.strtolower($content['data_type']), false, $content);
+       loadTemplate('member_mail_bonus_' . strtolower($content['data_type']), false, $content);
 
        // Free result
        SQL_FREERESULT($result_data);
 
        // Free result
        SQL_FREERESULT($result_data);
index 9a774b446cebaa14de8930dc3375e201b04e7cda..0ab004d2fcc9110e82d2290ab82915c990653314 100644 (file)
@@ -752,7 +752,7 @@ function getActionFromModuleWhat ($module, $what) {
                // Get it directly from URL
                return getAction();
        }
                // Get it directly from URL
                return getAction();
        }
-       //* DEBUG: */ debugOutput(__FUNCTION__ . '(<font color="#0000aa">' . __LINE__ . '</font>): ret=' . $data['action']);
+       //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, ' ret=' . $data['action']);
 
        // Does the module have a menu?
        if (ifModuleHasMenu($module)) {
 
        // Does the module have a menu?
        if (ifModuleHasMenu($module)) {
@@ -1007,16 +1007,16 @@ function getReferalLevelPercents ($level) {
  * sendNotify  = shall I send the referal an email or not?
  * refid       = inc/modules/guest/what-confirm.php need this
  * locked      = Shall I pay it to normal (false) or locked (true) points ammount?
  * sendNotify  = shall I send the referal an email or not?
  * refid       = inc/modules/guest/what-confirm.php need this
  * locked      = Shall I pay it to normal (false) or locked (true) points ammount?
- * add_mode    = Add points only to $userid or also refs? (WARNING! Changing 'ref' to 'direct'
+ * add_mode    = Add points only to $userid or also refs? (WARNING! Changing 'REFERAL' to 'DIRECT'
  *               for default value will cause no referal will get points ever!!!)
  */
  *               for default value will cause no referal will get points ever!!!)
  */
-function addPointsThroughReferalSystem ($subject, $userid, $points, $sendNotify = false, $refid = '0', $addMode = 'ref') {
+function addPointsThroughReferalSystem ($subject, $userid, $points, $sendNotify = false, $refid = '0', $addMode = 'REFERAL') {
        // By default nothing has been added
        $added = false;
 
        //* DEBUG: */ debugOutput('----------------------- <font color="#00aa00">' . __FUNCTION__ . ' - ENTRY</font> ------------------------<ul><li>');
        // By default nothing has been added
        $added = false;
 
        //* DEBUG: */ debugOutput('----------------------- <font color="#00aa00">' . __FUNCTION__ . ' - ENTRY</font> ------------------------<ul><li>');
-       // Convert mode to lower-case
-       $addMode = strtolower($addMode);
+       // Convert mode to upper-case
+       $addMode = strtoupper($addMode);
 
        // When $userid = '0' add points to jackpot
        if (($userid == '0') && (isExtensionActive('jackpot'))) {
 
        // When $userid = '0' add points to jackpot
        if (($userid == '0') && (isExtensionActive('jackpot'))) {
@@ -1027,16 +1027,16 @@ function addPointsThroughReferalSystem ($subject, $userid, $points, $sendNotify
        // Count up referal depth
        if (!isset($GLOBALS['ref_level'])) {
                // Initialialize referal system
        // Count up referal depth
        if (!isset($GLOBALS['ref_level'])) {
                // Initialialize referal system
-               //* DEBUG: */ debugOutput(__FUNCTION__ . '(<font color="#0000aa">' . __LINE__ . '</font>): Referal system initialized!');
+               //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, ' Referal system initialized!');
                $GLOBALS['ref_level'] = '0';
        } else {
                // Increase referal level
                $GLOBALS['ref_level']++;
                $GLOBALS['ref_level'] = '0';
        } else {
                // Increase referal level
                $GLOBALS['ref_level']++;
-               //* DEBUG: */ debugOutput(__FUNCTION__ . '(<font color="#0000aa">' . __LINE__ . '</font>): Referal level increased. DEPTH='.$GLOBALS['ref_level']);
+               //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, ' Referal level increased. DEPTH='.$GLOBALS['ref_level']);
        }
 
        // Check user account
        }
 
        // Check user account
-       //* DEBUG: */ debugOutput(__FUNCTION__ . '(<font color="#0000aa">' . __LINE__ . '</font>):userid='.$userid.',points='.$points);
+       //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'userid='.$userid.',points='.$points);
        if (fetchUserData($userid)) {
                // Determine wether the user has some mails to click before he/she gets the points
                $locked = ifUserPointsLocked($userid);
        if (fetchUserData($userid)) {
                // Determine wether the user has some mails to click before he/she gets the points
                $locked = ifUserPointsLocked($userid);
@@ -1049,19 +1049,19 @@ function addPointsThroughReferalSystem ($subject, $userid, $points, $sendNotify
 
                // Get percents
                $per = getReferalLevelPercents($GLOBALS['ref_level']);
 
                // Get percents
                $per = getReferalLevelPercents($GLOBALS['ref_level']);
-               //* DEBUG: */ debugOutput(__FUNCTION__ . '(<font color="#0000aa">' . __LINE__ . '</font>):userid='.$userid.',points='.$points.',depth='.$GLOBALS['ref_level'].',per='.$per.',mode='.$addMode);
+               //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'userid='.$userid.',points='.$points.',depth='.$GLOBALS['ref_level'].',per='.$per.',mode='.$addMode);
 
                // Some percents found?
                if ($per > 0) {
                        // Calculate new points
 
                // Some percents found?
                if ($per > 0) {
                        // Calculate new points
-                       //* DEBUG: */ debugOutput(__FUNCTION__ . '(<font color="#0000aa">' . __LINE__ . '</font>):userid='.$userid.',points='.$points.',per='.$per.',depth='.$GLOBALS['ref_level']);
+                       //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'userid='.$userid.',points='.$points.',per='.$per.',depth='.$GLOBALS['ref_level']);
                        $ref_points = $points * $per / 100;
 
                        // Pay refback here if level > 0 and in ref-mode
                        $ref_points = $points * $per / 100;
 
                        // Pay refback here if level > 0 and in ref-mode
-                       if ((isExtensionActive('refback')) && ($GLOBALS['ref_level'] > 0) && ($per < 100) && ($addMode == 'ref') && (isset($GLOBALS['cache_array']['add_userid'][$userid]))) {
-                               //* DEBUG: */ debugOutput(__FUNCTION__ . '(<font color="#0000aa">' . __LINE__ . '</font>):userid='.$userid.',data='.$GLOBALS['cache_array']['add_userid'][$userid].',ref_points='.$ref_points.',depth='.$GLOBALS['ref_level'].' - BEFORE!');
+                       if ((isExtensionActive('refback')) && ($GLOBALS['ref_level'] > 0) && ($per < 100) && ($addMode == 'REFERAL') && (isset($GLOBALS['cache_array']['add_userid'][$userid]))) {
+                               //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'userid='.$userid.',data='.$GLOBALS['cache_array']['add_userid'][$userid].',ref_points='.$ref_points.',depth='.$GLOBALS['ref_level'].' - BEFORE!');
                                $ref_points = addRefbackPoints($GLOBALS['cache_array']['add_userid'][$userid], $userid, $points, $ref_points);
                                $ref_points = addRefbackPoints($GLOBALS['cache_array']['add_userid'][$userid], $userid, $points, $ref_points);
-                               //* DEBUG: */ debugOutput(__FUNCTION__ . '(<font color="#0000aa">' . __LINE__ . '</font>):userid='.$userid.',data='.$GLOBALS['cache_array']['add_userid'][$userid].',ref_points='.$ref_points.',depth='.$GLOBALS['ref_level'].' - AFTER!');
+                               //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'userid='.$userid.',data='.$GLOBALS['cache_array']['add_userid'][$userid].',ref_points='.$ref_points.',depth='.$GLOBALS['ref_level'].' - AFTER!');
                        } // END - if
 
                        // Update points...
                        } // END - if
 
                        // Update points...
@@ -1073,7 +1073,7 @@ function addPointsThroughReferalSystem ($subject, $userid, $points, $sendNotify
                                        bigintval($userid),
                                        bigintval($GLOBALS['ref_level'])
                                ), __FUNCTION__, __LINE__);
                                        bigintval($userid),
                                        bigintval($GLOBALS['ref_level'])
                                ), __FUNCTION__, __LINE__);
-                       //* DEBUG: */ debugOutput(__FUNCTION__ . '(<font color="#0000aa">' . __LINE__ . '</font>):pointsColumn='.$pointsColumn.',ref_points='.$ref_points.',userid='.$userid.',depth='.$GLOBALS['ref_level'].',mode='.$addMode.' - UPDATE! ('.SQL_AFFECTEDROWS().')');
+                       //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'pointsColumn='.$pointsColumn.',ref_points='.$ref_points.',userid='.$userid.',depth='.$GLOBALS['ref_level'].',mode='.$addMode.' - UPDATE! ('.SQL_AFFECTEDROWS().')');
 
                        // No entry updated?
                        if (SQL_HASZEROAFFECTED()) {
 
                        // No entry updated?
                        if (SQL_HASZEROAFFECTED()) {
@@ -1085,12 +1085,12 @@ function addPointsThroughReferalSystem ($subject, $userid, $points, $sendNotify
                                                bigintval($GLOBALS['ref_level']),
                                                $ref_points
                                        ), __FUNCTION__, __LINE__);
                                                bigintval($GLOBALS['ref_level']),
                                                $ref_points
                                        ), __FUNCTION__, __LINE__);
-                               //* DEBUG: */ debugOutput(__FUNCTION__ . '(<font color="#0000aa">' . __LINE__ . '</font>):data='.$pointsColumn.',ref_points='.$ref_points.',userid='.$userid.',depth='.$GLOBALS['ref_level'].',mode='.$addMode.' - INSERTED! ('.SQL_AFFECTEDROWS().')');
+                               //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'data='.$pointsColumn.',ref_points='.$ref_points.',userid='.$userid.',depth='.$GLOBALS['ref_level'].',mode='.$addMode.' - INSERTED! ('.SQL_AFFECTEDROWS().')');
                        } // END - if
 
                        // Check affected rows
                        $added = SQL_AFFECTEDROWS();
                        } // END - if
 
                        // Check affected rows
                        $added = SQL_AFFECTEDROWS();
-                       //* DEBUG: */ debugOutput(__FUNCTION__ . '(<font color="#0000aa">' . __LINE__ . '</font>):added='.intval($added));
+                       //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'added='.intval($added));
 
                        // Prepare data for the filter
                        $filterData = array(
 
                        // Prepare data for the filter
                        $filterData = array(
@@ -1112,7 +1112,7 @@ function addPointsThroughReferalSystem ($subject, $userid, $points, $sendNotify
 
                        // Extract $added
                        $added = $filterData['added'];
 
                        // Extract $added
                        $added = $filterData['added'];
-                       //* DEBUG: */ debugOutput(__FUNCTION__ . '(<font color="#0000aa">' . __LINE__ . '</font>):added='.intval($added));
+                       //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'added='.intval($added));
 
                        // Points updated, maybe I shall send him an email?
                        if (($sendNotify === true) && (isValidUserId(getUserData('refid'))) && ($locked === false)) {
 
                        // Points updated, maybe I shall send him an email?
                        if (($sendNotify === true) && (isValidUserId(getUserData('refid'))) && ($locked === false)) {
@@ -1128,7 +1128,7 @@ function addPointsThroughReferalSystem ($subject, $userid, $points, $sendNotify
 
                                // Send email
                                sendEmail($userid, '{--THANX_REFERAL_ONE_SUBJECT--}', $message);
 
                                // Send email
                                sendEmail($userid, '{--THANX_REFERAL_ONE_SUBJECT--}', $message);
-                       } elseif (($sendNotify === true) && (!isValidUserId(getUserData('refid'))) && ($locked === false) && ($addMode == 'direct')) {
+                       } elseif (($sendNotify === true) && (!isValidUserId(getUserData('refid'))) && ($locked === false) && ($addMode == 'DIRECT')) {
                                // Prepare content
                                $content = array(
                                        'reason' => '{--REASON_DIRECT_PAYMENT--}',
                                // Prepare content
                                $content = array(
                                        'reason' => '{--REASON_DIRECT_PAYMENT--}',
@@ -1147,9 +1147,9 @@ function addPointsThroughReferalSystem ($subject, $userid, $points, $sendNotify
                        }
 
                        // Maybe there's another ref?
                        }
 
                        // Maybe there's another ref?
-                       if ((isValidUserId(getUserData('refid'))) && ($points > 0) && (getUserData('refid') != $userid) && ($addMode == 'ref')) {
+                       if ((isValidUserId(getUserData('refid'))) && ($points > 0) && (getUserData('refid') != $userid) && ($addMode == 'REFERAL')) {
                                // Then let's credit him here...
                                // Then let's credit him here...
-                               //* DEBUG: */ debugOutput(__FUNCTION__ . '(<font color="#0000aa">' . __LINE__ . '</font>):userid='.$userid.',ref='.getUserData('refid').',points='.$points.' - ADVANCE!');
+                               //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'userid='.$userid.',ref='.getUserData('refid').',points='.$points.' - ADVANCE!');
                                $added = ($added && addPointsThroughReferalSystem(sprintf("%s_ref:%s", $subject, $GLOBALS['ref_level']), getUserData('refid'), $points, $sendNotify, getUserData('refid')));
                        } // END - if
                } // END - if
                                $added = ($added && addPointsThroughReferalSystem(sprintf("%s_ref:%s", $subject, $GLOBALS['ref_level']), getUserData('refid'), $points, $sendNotify, getUserData('refid')));
                        } // END - if
                } // END - if
@@ -1163,14 +1163,14 @@ function addPointsThroughReferalSystem ($subject, $userid, $points, $sendNotify
 function updateReferalCounter ($userid) {
        // Make it sure referal level zero (member him-/herself) is at least selected
        if (empty($GLOBALS['cache_array']['ref_level'][$userid])) $GLOBALS['cache_array']['ref_level'][$userid] = 1;
 function updateReferalCounter ($userid) {
        // Make it sure referal level zero (member him-/herself) is at least selected
        if (empty($GLOBALS['cache_array']['ref_level'][$userid])) $GLOBALS['cache_array']['ref_level'][$userid] = 1;
-       //* DEBUG: */ debugOutput(__FUNCTION__ . '(<font color="#0000aa">' . __LINE__ . '</font>):userid='.$userid.',level='.$GLOBALS['cache_array']['ref_level'][$userid]);
+       //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'userid='.$userid.',level='.$GLOBALS['cache_array']['ref_level'][$userid]);
 
        // Update counter
        SQL_QUERY_ESC("UPDATE `{?_MYSQL_PREFIX?}_refsystem` SET `counter`=`counter`+1 WHERE `userid`=%s AND `level`='%s' LIMIT 1",
                array(bigintval($userid), $GLOBALS['cache_array']['ref_level'][$userid]), __FUNCTION__, __LINE__);
 
        // When no entry was updated then we have to create it here
 
        // Update counter
        SQL_QUERY_ESC("UPDATE `{?_MYSQL_PREFIX?}_refsystem` SET `counter`=`counter`+1 WHERE `userid`=%s AND `level`='%s' LIMIT 1",
                array(bigintval($userid), $GLOBALS['cache_array']['ref_level'][$userid]), __FUNCTION__, __LINE__);
 
        // When no entry was updated then we have to create it here
-       //* DEBUG: */ debugOutput(__FUNCTION__ . '(<font color="#0000aa">' . __LINE__ . '</font>):updated=' . SQL_AFFECTEDROWS());
+       //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'updated=' . SQL_AFFECTEDROWS());
        if (SQL_HASZEROAFFECTED()) {
                // First count!
                SQL_QUERY_ESC("INSERT INTO `{?_MYSQL_PREFIX?}_refsystem` (`userid`, `level`, `counter`) VALUES (%s,%s,1)",
        if (SQL_HASZEROAFFECTED()) {
                // First count!
                SQL_QUERY_ESC("INSERT INTO `{?_MYSQL_PREFIX?}_refsystem` (`userid`, `level`, `counter`) VALUES (%s,%s,1)",
@@ -1178,7 +1178,7 @@ function updateReferalCounter ($userid) {
                                bigintval($userid),
                                $GLOBALS['cache_array']['ref_level'][$userid]
                        ), __FUNCTION__, __LINE__);
                                bigintval($userid),
                                $GLOBALS['cache_array']['ref_level'][$userid]
                        ), __FUNCTION__, __LINE__);
-               //* DEBUG: */ debugOutput(__FUNCTION__ . '(<font color="#0000aa">' . __LINE__ . '</font>):userid='.$userid);
+               //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'userid='.$userid);
        } // END - if
 
        // Init referal id
        } // END - if
 
        // Init referal id
@@ -1190,17 +1190,17 @@ function updateReferalCounter ($userid) {
                $ref = getUserData('refid');
        } // END - if
 
                $ref = getUserData('refid');
        } // END - if
 
-       //* DEBUG: */ debugOutput(__FUNCTION__ . '(<font color="#0000aa">' . __LINE__ . '</font>):userid='.$userid.',ref='.$ref);
+       //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'userid='.$userid.',ref='.$ref);
 
        // When he has a referal...
        if (($ref > 0) && ($ref != $userid)) {
                // Move to next referal level and count his counter one up!
 
        // When he has a referal...
        if (($ref > 0) && ($ref != $userid)) {
                // Move to next referal level and count his counter one up!
-               //* DEBUG: */ debugOutput(__FUNCTION__ . '(<font color="#0000aa">' . __LINE__ . '</font>):ref='.$ref.' - ADVANCE!');
+               //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'ref='.$ref.' - ADVANCE!');
                $GLOBALS['cache_array']['ref_level'][$userid]++;
                updateReferalCounter($ref);
        } elseif ((($ref == $userid) || ($ref == '0')) && (isExtensionInstalledAndNewer('cache', '0.1.2'))) {
                // Remove cache here
                $GLOBALS['cache_array']['ref_level'][$userid]++;
                updateReferalCounter($ref);
        } elseif ((($ref == $userid) || ($ref == '0')) && (isExtensionInstalledAndNewer('cache', '0.1.2'))) {
                // Remove cache here
-               //* DEBUG: */ debugOutput(__FUNCTION__ . '(<font color="#0000aa">' . __LINE__ . '</font>):ref='.$ref.' - CACHE!');
+               //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'ref='.$ref.' - CACHE!');
                rebuildCache('refsystem', 'refsystem');
        }
 
                rebuildCache('refsystem', 'refsystem');
        }
 
@@ -2009,32 +2009,5 @@ function updateLastActivity($userid) {
                ), __FUNCTION__, __LINE__);
 }
 
                ), __FUNCTION__, __LINE__);
 }
 
-// Determines database column name from given subject and locked
-function determinePointsColumnFromSubjectLocked ($subject, $locked) {
-       // Default is 'normal' points
-       $pointsColumn = 'points';
-
-       // Which points, locked or normal?
-       if ($locked === true) {
-               $pointsColumn = 'locked_points';
-       } // END - if
-
-       // Prepare array for filter
-       $filterData = array(
-               'subject' => $subject,
-               'locked'  => $locked,
-               'column'  => $pointsColumn
-       );
-
-       // Run the filter
-       $filterData = runFilterChain('determine_points_column_name', $filterData);
-
-       // Extract column name from array
-       $pointsColumn = $filterData['column'];
-
-       // Return it
-       return $pointsColumn;
-}
-
 // [EOF]
 ?>
 // [EOF]
 ?>
diff --git a/inc/purge/.htaccess b/inc/purge/.htaccess
new file mode 100644 (file)
index 0000000..3a42882
--- /dev/null
@@ -0,0 +1 @@
+Deny from all
diff --git a/inc/purge/purge- b/inc/purge/purge-
new file mode 100644 (file)
index 0000000..4d82704
--- /dev/null
@@ -0,0 +1,50 @@
+<?php
+/************************************************************************
+ * Mailer v0.2.1-FINAL                                Start: 09/14/2008 *
+ * ===================                          Last change: 09/14/2008 *
+ *                                                                      *
+ * -------------------------------------------------------------------- *
+ * File              : purge-                                           *
+ * -------------------------------------------------------------------- *
+ * Short description :                                                  *
+ * -------------------------------------------------------------------- *
+ * Kurzbeschreibung  :                                                  *
+ * -------------------------------------------------------------------- *
+ * $Revision::                                                        $ *
+ * $Date::                                                            $ *
+ * $Tag:: 0.2.1-FINAL                                                 $ *
+ * $Author::                                                          $ *
+ * -------------------------------------------------------------------- *
+ * Copyright (c) 2003 - 2009 by Roland Haeder                           *
+ * Copyright (c) 2009 - 2011 by Mailer Developer Team                   *
+ * For more information visit: http://www.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
+
+// Abort if autopurge is not active or disabled by admin
+if ((!isExtensionActive('autopurge')) || (getConfig('auto_purge_active') != 'Y')) {
+       // Abort here
+       return false;
+} // END - if
+
+// [EOF]
+?>
diff --git a/inc/purge/purge-general.php b/inc/purge/purge-general.php
new file mode 100644 (file)
index 0000000..30c1897
--- /dev/null
@@ -0,0 +1,155 @@
+<?php
+/************************************************************************
+ * Mailer v0.2.1-FINAL                                Start: 09/14/2008 *
+ * ===================                          Last change: 09/14/2008 *
+ *                                                                      *
+ * -------------------------------------------------------------------- *
+ * File              : purge-general.php                                *
+ * -------------------------------------------------------------------- *
+ * Short description : General autopurging, nothing extension-specific  *
+ * -------------------------------------------------------------------- *
+ * Kurzbeschreibung  : Allgemeine, nicht erweiterunsabhaengige Auto-    *
+ *                     Loeschung                                        *
+ * -------------------------------------------------------------------- *
+ * $Revision::                                                        $ *
+ * $Date::                                                            $ *
+ * $Tag:: 0.2.1-FINAL                                                 $ *
+ * $Author::                                                          $ *
+ * -------------------------------------------------------------------- *
+ * Copyright (c) 2003 - 2009 by Roland Haeder                           *
+ * Copyright (c) 2009 - 2011 by Mailer Developer Team                   *
+ * For more information visit: http://www.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();
+} elseif ((!isExtensionActive('autopurge')) || (!isAutoPurgingActive())) {
+       // Abort here
+       return false;
+}
+
+if (getAutoPurge() > 0) {
+       // Init SQLs
+       initSqls();
+
+       // Init variables
+       $admin_points = '0';
+
+       // Then check for outdated mail order. We don't delete them just the confirmation links will be deleted.
+       $result = SQL_QUERY('SELECT
+       s.id, s.userid, s.pool_id, t.price
+FROM
+       `{?_MYSQL_PREFIX?}_user_stats` AS s
+LEFT JOIN
+       `{?_MYSQL_PREFIX?}_payments` AS t
+ON
+       s.`payment_id`=t.`id`
+WHERE
+       (UNIX_TIMESTAMP() - s.`timestamp_ordered`) >= {?auto_purge?}
+ORDER BY
+       s.userid ASC', __FILE__, __LINE__);
+       if (!SQL_HASZERONUMS($result)) {
+               // Start deleting procedure
+               $userid = '0'; $points = '0';
+               while ($content = SQL_FETCHARRAY($result)) {
+                       // Check if confirmation links are purged or not
+                       $result_links = SQL_QUERY_ESC("SELECT `id` FROM `{?_MYSQL_PREFIX?}_user_links` WHERE `stats_id`=%s LIMIT 1",
+                               array(bigintval($content['id'])), __FILE__, __LINE__);
+                       if (SQL_NUMROWS($result_links) == 1) {
+                               // Free memory
+                               SQL_FREERESULT($result_links);
+
+                               // At least one link was found, enougth to pay back the points
+                               if (($userid != $content['userid']) && (isValidUserId($userid)) && ($points > 0)) {
+                                       // Directly add points back to senders account
+                                       addPointsAutoPurge($userid, $points);
+                                       $points = '0';
+                               } // END - if
+
+                               // Add points
+                               $userid = $content['userid']; $points += $content['price']; $admin_points += $content['price'];
+
+                               // Remove confirmation links from queue
+                               addSql(SQL_QUERY_ESC("DELETE LOW_PRIORITY FROM `{?_MYSQL_PREFIX?}_user_links` WHERE `stats_id`=%s",
+                                       array(bigintval($content['id'])), __FILE__, __LINE__, false));
+
+                               // Update status of order
+                               addSql(SQL_QUERY_ESC("UPDATE `{?_MYSQL_PREFIX?}_pool` SET `data_type`='DELETED' WHERE `id`=%s LIMIT 1",
+                                       array(bigintval($content['pool_id'])), __FILE__, __LINE__, false));
+                       } // END - if
+               } // END - while
+
+               // Add last points to last user account
+               if ($points > 0) addPointsAutoPurge($userid, $points);
+       } // END - if
+
+       // Free memory
+       SQL_FREERESULT($result);
+
+       // Is the 'bonus' extension installed and activated?
+       if (isExtensionActive('bonus', true)) {
+               // Check for bonus campaigns
+               $result = SQL_QUERY("SELECT `id`, `points` FROM `{?_MYSQL_PREFIX?}_bonus` WHERE `data_type`='SEND' AND `timestamp` <= {?auto_purge?} ORDER BY `id` ASC", __FILE__, __LINE__);
+               if (!SQL_HASZERONUMS($result)) {
+                       // Start deleting procedure
+                       $points = '0';
+                       while ($content = SQL_FETCHARRAY($result)) {
+                               // Check if confirmation links are purged or not
+                               $result_links = SQL_QUERY_ESC("SELECT `id` FROM `{?_MYSQL_PREFIX?}_user_links` WHERE `bonus_id`=%s",
+                                       array(bigintval($content['id'])), __FILE__, __LINE__);
+                               if (!SQL_HASZERONUMS($result_links)) {
+                                       // At least one link was found, enougth to pay back the points
+                                       $points += $content['points'] * SQL_NUMROWS($result_links);
+
+                                       // Free memory
+                                       SQL_FREERESULT($result_links);
+
+                                       // Remove confirmation links from queue
+                                       addSql(SQL_QUERY_ESC("DELETE LOW_PRIORITY FROM `{?_MYSQL_PREFIX?}_user_links` WHERE `bonus_id`=%s",
+                                               array(bigintval($content['id'])), __FILE__, __LINE__, false));
+
+                                       // Update status of order
+                                       addSql(SQL_QUERY_ESC("UPDATE `{?_MYSQL_PREFIX?}_bonus` SET `data_type`='DELETED' WHERE `id`=%s LIMIT 1",
+                                               array(bigintval($content['id'])), __FILE__, __LINE__, false));
+                               } // END - if
+                       } // END - while
+
+                       // Add points to jackpot
+                       if (isExtensionActive('jackpot')) addPointsToJackpot($points);
+
+                       // Add points for the admin
+                       $admin_points += $points;
+               } // END - if
+
+               // Free memory
+               SQL_FREERESULT($result);
+       } // END - if
+
+       // Add points from deleted accounts to jackpot, but here just add to notify mail
+       if ($admin_points > 0) {
+               // Send mail to admin
+               sendAdminNotification('{--ADMIN_AUTOPURGE_SUBJECT--}', 'admin_autopurge_points', $admin_points);
+       } // END - if
+
+       // Run all SQLs here
+       runFilterChain('run_sqls');
+} // END - if
+
+// [EOF]
+?>
diff --git a/inc/purge/purge-inact.php b/inc/purge/purge-inact.php
new file mode 100644 (file)
index 0000000..917ff93
--- /dev/null
@@ -0,0 +1,168 @@
+<?php
+/************************************************************************
+ * Mailer v0.2.1-FINAL                                Start: 09/14/2008 *
+ * ===================                          Last change: 09/14/2008 *
+ *                                                                      *
+ * -------------------------------------------------------------------- *
+ * File              : purge-inactive.php                               *
+ * -------------------------------------------------------------------- *
+ * Short description : Purge of inactive users                          *
+ * -------------------------------------------------------------------- *
+ * Kurzbeschreibung  : Auto-Loeschung von inaktiven Mitgliedern         *
+ * -------------------------------------------------------------------- *
+ * $Revision::                                                        $ *
+ * $Date::                                                            $ *
+ * $Tag:: 0.2.1-FINAL                                                 $ *
+ * $Author::                                                          $ *
+ * -------------------------------------------------------------------- *
+ * Copyright (c) 2003 - 2009 by Roland Haeder                           *
+ * Copyright (c) 2009 - 2011 by Mailer Developer Team                   *
+ * For more information visit: http://www.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
+
+// Abort if autopurge is not active or disabled by admin
+if ((!isExtensionActive('autopurge')) || (!isAutoPurgingActive())) {
+       // Abort here
+       return false;
+} // END - if
+
+// Shall I look for inactive accounts and autopurge inactive accounts?
+if (isAutopurgeInactiveEnabled()) {
+       // Init SQLs
+       initSqls();
+
+       // Init exclusion list
+       // @TODO Rewrite these if() blocks to a filter
+       $EXCLUDE_LIST = '';
+       if (isValidUserId(getDefRefid())) $EXCLUDE_LIST .= ' AND `userid` != {?def_refid?}';
+
+       // Check for more extensions
+       if (isExtensionActive('beg'))     $EXCLUDE_LIST .= ' AND `userid` != {?beg_userid?}';
+       if (isExtensionActive('bonus'))   $EXCLUDE_LIST .= ' AND `userid` != {?bonus_userid?}';
+       if (isExtensionActive('doubler')) $EXCLUDE_LIST .= ' AND `userid` != {?doubler_userid?}';
+
+       // Check for new holiday extension
+       if (isExtensionInstalledAndNewer('holiday', '0.1.3')) {
+               // Include only users with no active holiday
+               $EXCLUDE_LIST .= " AND `holiday_active`='N'";
+       } // END - if
+
+       // Check for all accounts
+       $result_inactive = SQL_QUERY("SELECT
+       `userid`, `email`, `last_online`
+FROM
+       `{?_MYSQL_PREFIX?}_user_data`
+WHERE
+       `status`='CONFIRMED' AND
+       (UNIX_TIMESTAMP() - `joined`) >= {?ap_inactive_since?} AND
+       (UNIX_TIMESTAMP() - `last_online`) >= {?ap_inactive_since?} AND
+       (UNIX_TIMESTAMP() - `ap_notified`) >= {?ap_inactive_since?}
+       " . $EXCLUDE_LIST . "
+ORDER BY
+       `userid` ASC", __FILE__, __LINE__);
+
+       if (!SQL_HASZERONUMS($result_inactive)) {
+               // Prepare variables and constants...
+               $useridsContent = '';
+               $content['since'] = (getApInactiveSince() / 60 / 60);
+               $content['time']  = (getApInactiveTime()  / 60 / 60);
+
+               // Mark found accounts as inactive and send an email
+               while ($row = SQL_FETCHARRAY($result_inactive)) {
+                       // Merge both arrays
+                       $content = merge_array($content, $row);
+
+                       // Remember userids for the admin
+                       $useridsContent .= $content['userid'] . ', ';
+
+                       // Get date/time from timestamp
+                       $content['last_online'] = generateDateTime($content['last_online'], 0);
+
+                       // Load mail template
+                       $message = loadEmailTemplate('member_autopurge_inactive', $content, bigintval($content['userid']));
+                       sendEmail($content['email'], '{--MEMBER_AUTOPURGE_INACTIVE_SUBJECT--}', $message);
+
+                       // Update this account
+                       addSql(SQL_QUERY_ESC("UPDATE `{?_MYSQL_PREFIX?}_user_data` SET `ap_notified`=UNIX_TIMESTAMP() WHERE `userid`=%s LIMIT 1",
+                               array(bigintval($content['userid'])), __FILE__, __LINE__, false));
+               } // END - while
+
+               // Remove last comma
+               $useridsContent = str_replace(', ', "\n", substr($useridsContent, 0, -2));
+
+               // Send mail notification to admin
+               sendAdminNotification('{--ADMIN_AUTOPURGE_INACTIVE_SUBJECT--}', 'admin_autopurge_inactive', $useridsContent);
+       } // END - if
+
+       // Free memory
+       SQL_FREERESULT($result_inactive);
+
+       // Now let's have a look for inactive accounts we want to delete we newly use the same exclude list
+       // here for e.g. excluding holiday users
+       $result_inactive = SQL_QUERY("SELECT
+       `userid`, `email`, `last_online`
+FROM
+       `{?_MYSQL_PREFIX?}_user_data`
+WHERE
+       `status`='CONFIRMED' AND
+       (UNIX_TIMESTAMP() - `joined`) >= {?ap_inactive_since?} AND
+       (UNIX_TIMESTAMP() - `last_online`) >= {?ap_inactive_since?} AND
+       (UNIX_TIMESTAMP() - `ap_notified`) >= {?ap_inactive_time?}
+" . $EXCLUDE_LIST . "
+ORDER BY
+       `userid` ASC", __FILE__, __LINE__);
+
+       if (!SQL_HASZERONUMS($result_inactive)) {
+               // Prepare userid array for admin...
+               $userids = array();
+
+               // Delete inactive accounts
+               while ($content = SQL_FETCHARRAY($result_inactive)) {
+                       // Remember userids for the admin
+                       $useridsContent[] = $content['userid'];
+
+                       // Get date/time from timestamp
+                       $content['last_online'] = generateDateTime($content['last_online'], 0);
+
+                       // Finnaly delete this inactive account
+                       deleteUserAccount($content['userid'], loadEmailTemplate('member_autopurge_delete', $content['last_online'], ''));
+               } // END - while
+
+               // Display all userids
+               $useridsContent = implode("\n", $userids);
+
+               // Send mail notification to admin
+               if (getConfig('ap_in_notify') == 'Y') {
+                       sendAdminNotification('{--ADMIN_AUTOPURGE_DELETE_SUBJECT--}', 'admin_autopurge_delete', $useridsContent);
+               } // END - if
+       } // END - if
+
+       // Free memory
+       SQL_FREERESULT($result_inactive);
+
+       // Run all SQLs
+       runFilterChain('run_sqls');
+} // END - if
+
+// [EOF]
+?>
diff --git a/inc/purge/purge-mails.php b/inc/purge/purge-mails.php
new file mode 100644 (file)
index 0000000..61f911b
--- /dev/null
@@ -0,0 +1,139 @@
+<?php
+/************************************************************************
+ * Mailer v0.2.1-FINAL                                Start: 05/29/2004 *
+ * ===================                          Last change: 11/26/2004 *
+ *                                                                      *
+ * -------------------------------------------------------------------- *
+ * File              : autopurge.php                                    *
+ * -------------------------------------------------------------------- *
+ * Short description : Automatical purging of outdated mail links       *
+ * -------------------------------------------------------------------- *
+ * Kurzbeschreibung  : Auto-Loeschung von veralteten Mail-Links         *
+ * -------------------------------------------------------------------- *
+ * $Revision::                                                        $ *
+ * $Date::                                                            $ *
+ * $Tag:: 0.2.1-FINAL                                                 $ *
+ * $Author::                                                          $ *
+ * -------------------------------------------------------------------- *
+ * Copyright (c) 2003 - 2009 by Roland Haeder                           *
+ * Copyright (c) 2009 - 2011 by Mailer Developer Team                   *
+ * For more information visit: http://www.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
+
+// Abort if autopurge is not active or disabled by admin
+if ((!isExtensionActive('autopurge')) || (!isAutoPurgingActive()) || (getConfig('ap_del_mails') != 'Y')) {
+       // Abort here
+       return false;
+} // END - if
+
+// Okay, let's check for deleted mails
+$result_mails = SQL_QUERY("SELECT
+       `sender`
+FROM
+       `{?_MYSQL_PREFIX?}_pool`
+WHERE
+       `data_type`='DELETED' AND
+       (UNIX_TIMESTAMP() - `timestamp`) >= {?ap_dm_timeout?}
+ORDER BY
+       `sender` ASC", __FILE__, __LINE__);
+
+// Reset counter...
+$deletedStats = '0';
+
+// Do we have "purged" mails?
+if (!SQL_HASZERONUMS($result_mails)) {
+       // Okay, check for their sender's
+       while ($content = SQL_FETCHARRAY($result_mails)) {
+               // Check now...
+               if (!fetchUserData($content['sender'])) {
+                       // Okay we found some mails!
+                       SQL_QUERY_ESC("DELETE LOW_PRIORITY FROM `{?_MYSQL_PREFIX?}_pool` WHERE `sender`=%s",
+                               array(bigintval($content['sender'])), __FILE__, __LINE__);
+
+                       // Get all affected (deleted) rows
+                       $deletedStats += SQL_AFFECTEDROWS();
+
+                       // Reset query (to prevent possible errors) ...;
+                       $result_mails = SQL_QUERY("SELECT
+       `sender`
+FROM
+       `{?_MYSQL_PREFIX?}_pool`
+WHERE
+       `data_type`='DELETED' AND
+       (UNIX_TIMESTAMP() - `timestamp`) >= {?ap_dm_timeout?}
+ORDER BY
+       `sender` ASC", __FILE__, __LINE__);
+               } // END - if
+       } // END - while
+} // END - if
+
+// Free memory
+SQL_FREERESULT($result_mails);
+
+// Now let's check for stats entries as well;
+$result_mails = SQL_QUERY("SELECT
+       `userid` AS `sender`
+FROM
+       `{?_MYSQL_PREFIX?}_user_stats`
+WHERE
+       (UNIX_TIMESTAMP() - `timestamp_send`) >= {?ap_dm_timeout?}
+ORDER BY
+       `userid` ASC", __FILE__, __LINE__);
+
+// Do we have "purged" mails?
+if (!SQL_HASZERONUMS($result_mails)) {
+       // Okay, check for their sender's
+       while ($content = SQL_FETCHARRAY($result_mails)) {
+               // Check now...
+               if (!fetchUserData($content['sender'])) {
+                       // Okay we found some mails!
+                       SQL_QUERY_ESC("DELETE LOW_PRIORITY FROM `{?_MYSQL_PREFIX?}_user_stats` WHERE `userid`=%s",
+                               array(bigintval($content['sender'])), __FILE__, __LINE__);
+
+                       // Get all affected (deleted) rows
+                       $deletedStats += SQL_AFFECTEDROWS();
+
+                       // Reset query (to prevent possible errors) ...
+                       $result_mails = SQL_QUERY("SELECT
+       `userid` AS `sender`
+FROM
+       `{?_MYSQL_PREFIX?}_user_stats`
+WHERE
+       (UNIX_TIMESTAMP() - `timestamp_send`) >= {?ap_dm_timeout?}
+ORDER BY
+       `userid` ASC", __FILE__, __LINE__);
+               } // END - if
+       } // END - while
+} // END - if
+
+// Free memory
+SQL_FREERESULT($result_mails);
+
+// Do we have deleted mails and the admin want's to receive a notification
+if (($deletedStats > 0) && (getConfig('ap_dm_notify') == 'Y')) {
+       // Send out email to admin
+       sendAdminNotification('{--ADMIN_AUTOPURGE_DELETE_MAILS_SUBJECT--}', 'admin_autopurge_del_mails', $deletedStats);
+} // END - if
+
+// [EOF]
+?>
diff --git a/inc/purge/purge-tasks.php b/inc/purge/purge-tasks.php
new file mode 100644 (file)
index 0000000..cc5ccd1
--- /dev/null
@@ -0,0 +1,70 @@
+<?php
+/************************************************************************
+ * Mailer v0.2.1-FINAL                                Start: 09/14/2008 *
+ * ===================                          Last change: 09/14/2008 *
+ *                                                                      *
+ * -------------------------------------------------------------------- *
+ * File              : purge-tsks.php                                   *
+ * -------------------------------------------------------------------- *
+ * Short description : Automatical purging of outdated mail links       *
+ * -------------------------------------------------------------------- *
+ * Kurzbeschreibung  : Auto-Loeschung von veralteten Mail-Links         *
+ * -------------------------------------------------------------------- *
+ * $Revision::                                                        $ *
+ * $Date::                                                            $ *
+ * $Tag:: 0.2.1-FINAL                                                 $ *
+ * $Author::                                                          $ *
+ * -------------------------------------------------------------------- *
+ * Copyright (c) 2003 - 2009 by Roland Haeder                           *
+ * Copyright (c) 2009 - 2011 by Mailer Developer Team                   *
+ * For more information visit: http://www.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
+
+// Abort if autopurge is not active or disabled by admin
+if ((!isExtensionActive('autopurge')) || (!isAutoPurgingActive())) {
+       // Abort here
+       return false;
+} // END - if
+
+// Check version (must be >= 0.1.9)
+if ((isExtensionInstalledAndNewer('task', '0.1.9')) && (getConfig('autopurge_tasks') == 'Y')) {
+       // Purge deleted tasks (no notification to admin)
+       SQL_QUERY("DELETE LOW_PRIORITY
+FROM
+       `{?_MYSQL_PREFIX?}_task_system`
+WHERE
+       `status`='DELETED' AND
+       (UNIX_TIMESTAMP() - `task_created`) >= {?ap_tasks_time?}", __FILE__, __LINE__);
+
+       // Get deleted rows
+       $deletedTasks = SQL_AFFECTEDROWS();
+
+       // Do we need to send a notification?
+       if (($deletedTasks > 0) && (getConfig('ap_tasks_notify') == 'Y')) {
+               // Send out email to admin
+               sendAdminNotification('{--ADMIN_AUTOPURGE_TASKS_SUBJECT--}', 'admin_autopurge_tsks', $deletedTasks);
+       } // END - if
+} // END - if
+
+//
+?>
diff --git a/inc/purge/purge-unconfirmed.php b/inc/purge/purge-unconfirmed.php
new file mode 100644 (file)
index 0000000..c4eed02
--- /dev/null
@@ -0,0 +1,95 @@
+<?php
+/************************************************************************
+ * Mailer v0.2.1-FINAL                                Start: 05/29/2004 *
+ * ===================                          Last change: 11/26/2004 *
+ *                                                                      *
+ * -------------------------------------------------------------------- *
+ * File              : autopurge.php                                    *
+ * -------------------------------------------------------------------- *
+ * Short description : Automatical purging of outdated mail links       *
+ * -------------------------------------------------------------------- *
+ * Kurzbeschreibung  : Auto-Loeschung von veralteten Mail-Links         *
+ * -------------------------------------------------------------------- *
+ * $Revision::                                                        $ *
+ * $Date::                                                            $ *
+ * $Tag:: 0.2.1-FINAL                                                 $ *
+ * $Author::                                                          $ *
+ * -------------------------------------------------------------------- *
+ * Copyright (c) 2003 - 2009 by Roland Haeder                           *
+ * Copyright (c) 2009 - 2011 by Mailer Developer Team                   *
+ * For more information visit: http://www.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
+
+// Abort if autopurge is not active or disabled by admin
+if ((!isExtensionActive('autopurge')) || (!isAutoPurgingActive())) {
+       // Abort here
+       return false;
+} // END - if
+
+// Shall I auto-purge unconfirmed accounts?
+if (getConfig('autopurge_unconfirmed') == 'Y') {
+       // Init variables and find unconfirmed accounts which I shall auto-purge;
+       $result_uncon = SQL_QUERY("SELECT
+       `userid`, `email`, `joined`
+FROM
+       `{?_MYSQL_PREFIX?}_user_data`
+WHERE
+       `status`='UNCONFIRMED' AND
+       (UNIX_TIMESTAMP() - `joined`) >= {?ap_unconfirmed_time?}
+ORDER BY
+       `userid` ASC", __FILE__, __LINE__);
+       if (!SQL_HASZERONUMS($result_uncon)) {
+               // Prepare variable...
+               $userids = '';
+               $content['time'] = (getApUnconfirmedTime()  / 60 / 60);
+
+               // Delete inactive accounts
+               while ($row = SQL_FETCHARRAY($result_uncon)) {
+                       // Merge both arrays
+                       $content = merge_array($content, $row);
+
+                       // Remember userids for the admin
+                       $userids .= $content['userid'] . ', ';
+
+                       // Get date/time from timestamp
+                       $content['joined'] = generateDateTime($content['joined'], 0);
+
+                       // Finnaly delete this inactive account
+                       deleteUserAccount($content['userid'], loadEmailTemplate('member_autopurge_unconfirmed', $content, ''));
+               } // END - while
+
+               // Remove last comma
+               $userids = str_replace(', ', "\n", substr($userids, 0, -2));
+
+               // Send mail notification to admin
+               if (getConfig('ap_un_notify') == 'Y') {
+                       sendAdminNotification('{--ADMIN_AUTOPURGE_UNCONFIRMED_SUBJECT--}', 'admin_autopurge_unconfirmed', $userids);
+               } // END - if
+       } // END - if
+
+       // Free memory
+       SQL_FREERESULT($result_uncon);
+} // END - if
+
+// [EOF]
+?>
index ef9e0d8a2eefd6aa3a5d2793d0128b196eb5fb82..6770020637569f208ede247f7018882890337f5d 100644 (file)
@@ -218,7 +218,7 @@ function getArrayFromRepositoryData () {
 
                // Add author to the Tag if the author is set and is not quix0r (lead coder)
                if ((isset($GLOBALS['cache_array']['revision']['Author'][0])) && ($GLOBALS['cache_array']['revision']['Author'][0] != 'quix0r')) {
 
                // Add author to the Tag if the author is set and is not quix0r (lead coder)
                if ((isset($GLOBALS['cache_array']['revision']['Author'][0])) && ($GLOBALS['cache_array']['revision']['Author'][0] != 'quix0r')) {
-                       $GLOBALS['cache_array']['revision']['Tag'][0] .= '-'.strtoupper($GLOBALS['cache_array']['revision']['Author'][0]);
+                       $GLOBALS['cache_array']['revision']['Tag'][0] .= '-' . strtoupper($GLOBALS['cache_array']['revision']['Author'][0]);
                } // END - if
 
        } else {
                } // END - if
 
        } else {
index eeed642ae71b576ecc4d3e9579e18db71b39c107..1520f1191589d24b8c4d5c1f94ee645459b0c6af 100644 (file)
@@ -740,7 +740,7 @@ function addPointsDirectly ($subject, $userid, $points) {
        unset($GLOBALS['ref_level']);
 
        // Call more complicated method (due to more parameters)
        unset($GLOBALS['ref_level']);
 
        // Call more complicated method (due to more parameters)
-       return addPointsThroughReferalSystem($subject, $userid, $points, false, 0, 'direct');
+       return addPointsThroughReferalSystem($subject, $userid, $points, false, 0, 'DIRECT');
 }
 
 // Wrapper for redirectToUrl but URL comes from a configuration entry
 }
 
 // Wrapper for redirectToUrl but URL comes from a configuration entry
index c1d913a03b320d4de8926f570e906edae7a8649d..e033a56f04ae689a41fa81309515fa20739f91d5 100644 (file)
@@ -267,7 +267,7 @@ if ((isValidUserId($userId)) && (($mailId > 0) || ($bonusId > 0)) && (!ifFatalEr
                                                                                        // Is an active-rallye running and this is not a notification mail?
                                                                                        if ((isBonusRallyeActive()) && ($notify != 'Y')) {
                                                                                                // Shall I exclude the webmaster's own userid from the active-rallye?
                                                                                        // Is an active-rallye running and this is not a notification mail?
                                                                                        if ((isBonusRallyeActive()) && ($notify != 'Y')) {
                                                                                                // Shall I exclude the webmaster's own userid from the active-rallye?
-                                                                                               if ((((getBonusUserId() == $userId) && (getConfig('bonus_include_own') == 'Y')) || (getBonusUserId() != $userId)) && (getDefRefid() != $userId)) {
+                                                                                               if ((((getBonusUserid() == $userId) && (getConfig('bonus_include_own') == 'Y')) || (getBonusUserid() != $userId)) && (getDefRefid() != $userId)) {
                                                                                                        // Add points and remember ranking are done in this function....
                                                                                                        addTurboBonus($urlId, $userId, $type);
 
                                                                                                        // Add points and remember ranking are done in this function....
                                                                                                        addTurboBonus($urlId, $userId, $type);
 
diff --git a/templates/de/emails/admin/admin_coupon.tpl b/templates/de/emails/admin/admin_coupon.tpl
new file mode 100644 (file)
index 0000000..8dc38e3
--- /dev/null
@@ -0,0 +1,20 @@
+Hallo Administrator,
+
+Es wurde soeben ein Gutschein erstellt.
+
+Hier sind alle Daten des Gutscheins: (keine Codes)
+--------------------------------------------------
+Gutschein-Id: $content[coupon_id]
+Alle User-Ids: $content[userids]
+Anzahl Gutscheine: $content[userid_count]
+Verg&uuml;tung: {%pipe,translateComma=$content[points]%} {?POINTS?}
+Ablaufzeitpunkt: $content[coupon_expired]
+--------------------------------------------------
+Beschreibung/Hinweis:
+$content[coupon_description]
+--------------------------------------------------
+
+Mit freundlichen Gr&uuml;&szlig;en,
+  Ihr {?MAIN_TITLE?} Team
+
+{?URL?}/login.php ({?WEBMASTER?})
diff --git a/templates/de/emails/admin/admin_coupon_cashed.tpl b/templates/de/emails/admin/admin_coupon_cashed.tpl
new file mode 100644 (file)
index 0000000..095c5a8
--- /dev/null
@@ -0,0 +1,30 @@
+Hallo Administrator,
+
+Hier sind alle Daten des Gutscheins:
+------------------------------------
+Gutschein-Id: $content[coupon_id]
+Verg&uuml;tung: {%pipe,translateComma=$content[points]%} {?POINTS?}
+Einstellungszeitpunkt: $content[coupon_created]
+Ablaufzeitpunkt: $content[coupon_expired]
+------------------------------------
+Beschreibung/Hinweis:
+$content[coupon_description]
+------------------------------------
+
+Daten des Mitgliedes:
+------------------------------
+Seine Mitglieder-Id ist: $userid
+------------------------------
+E-Mail Adresse: {%user,email=$userid%}
+------------------------------
+Vor-, Nachname: {%user,gender,translateGender=$userid%} {%user,surname=$userid%} {%user,family=$userid%}
+------------------------------
+IP-Nummer: {%server,remote_addr%} (Real: {%server,real_ip_address%})
+------------------------------
+Browser: {%server,user_agent%}
+------------------------------
+
+Mit freundlichen Gr&uuml;&szlig;en,
+  Ihr {?MAIN_TITLE?} Team
+
+{?URL?}/login.php ({?WEBMASTER?})
index 395798d6baaa2bbcd11985518aba5dd3f325f9ae..795a58fb87a034f9cbe2833f186dfc15840a25b9 100644 (file)
@@ -9,7 +9,7 @@ E-Mail Adresse: {%user,email=$userid%}
 ------------------------------
 Vor-, Nachname: {%user,gender,translateGender=$userid%} {%user,surname=$userid%} {%user,family=$userid%}
 ------------------------------
 ------------------------------
 Vor-, Nachname: {%user,gender,translateGender=$userid%} {%user,surname=$userid%} {%user,family=$userid%}
 ------------------------------
-IP-Nummer: {%server,remote_addr%} ({%server,real_ip_address%})
+IP-Nummer: {%server,remote_addr%} (Real: {%server,real_ip_address%})
 ------------------------------
 Browser: {%server,user_agent%}
 ------------------------------
 ------------------------------
 Browser: {%server,user_agent%}
 ------------------------------
index cc6dbec45b1551c6dab5b2593abedb970aaf0d2f..43e4a886e54728401c7b45a4e71cc7758d7c82db 100644 (file)
@@ -9,7 +9,7 @@ E-Mail Adresse: {%user,email=$userid%}
 ------------------------------
 Vor-, Nachname: {%user,gender,translateGender=$userid%} {%user,surname=$userid%} {%user,family=$userid%}
 ------------------------------
 ------------------------------
 Vor-, Nachname: {%user,gender,translateGender=$userid%} {%user,surname=$userid%} {%user,family=$userid%}
 ------------------------------
-IP-Nummer: {%server,remote_addr%} ({%server,real_ip_address%})
+IP-Nummer: {%server,remote_addr%} (Real: {%server,real_ip_address%})
 ------------------------------
 Browser: {%server,user_agent%}
 ------------------------------
 ------------------------------
 Browser: {%server,user_agent%}
 ------------------------------
index 63c4d1108faec184c1fe13a85ee1051a636aaa69..66a356dd2eb1852a2e3300abe78e901784729935 100644 (file)
@@ -16,7 +16,7 @@ Hallo Administrator,
 ------------------------------------------
 $content[message]
 ------------------------------------------
 ------------------------------------------
 $content[message]
 ------------------------------------------
-IP-Nummer: {%server,remote_addr%} ({%server,real_ip_address%})
+IP-Nummer: {%server,remote_addr%} (Real: {%server,real_ip_address%})
 ------------------------------------------
 Browser: {%server,user_agent%}
 ------------------------------------------
 ------------------------------------------
 Browser: {%server,user_agent%}
 ------------------------------------------
index cc1585ed84441487b81ac569fecdaf6668f1b18f..e5437c6464e523be1e874b13317097a707888b71 100644 (file)
@@ -9,7 +9,7 @@ E-Mail Adresse: {%user,email=$userid%}
 ------------------------------
 Vor-, Nachname: {%user,gender,translateGender=$userid%} {%user,surname=$userid%} {%user,family=$userid%}
 ------------------------------
 ------------------------------
 Vor-, Nachname: {%user,gender,translateGender=$userid%} {%user,surname=$userid%} {%user,family=$userid%}
 ------------------------------
-IP-Nummer: {%server,remote_addr%} ({%server,real_ip_address%})
+IP-Nummer: {%server,remote_addr%} (Real: {%server,real_ip_address%})
 ------------------------------
 Browser: {%server,user_agent%}
 ------------------------------
 ------------------------------
 Browser: {%server,user_agent%}
 ------------------------------
index 09bb77707ed93dda148c6f67150b5a9ad3a22032..5cacf1e87eb5dd563af0825e74ea828fef7344aa 100644 (file)
@@ -10,7 +10,7 @@ Es hat dabei folgende Angaben gemacht:
 ------------------------------
 Seine Mitglieder-Id ist: $userid
 ------------------------------
 ------------------------------
 Seine Mitglieder-Id ist: $userid
 ------------------------------
-IP-Nummer: {%server,remote_addr%} ({%server,real_ip_address%})
+IP-Nummer: {%server,remote_addr%} (Real: {%server,real_ip_address%})
 ------------------------------
 Browser: {%server,user_agent%}
 ------------------------------
 ------------------------------
 Browser: {%server,user_agent%}
 ------------------------------
index b4a280f045cf9bfd30a32d3e8ec3cd1ce51cb93b..b95b1960a4d0f9be1e1d6b2d5b9603f746afe959 100644 (file)
@@ -10,7 +10,7 @@ Es hat dabei folgende Angaben gemacht:
 ------------------------------
 Seine Mitglieder-Id ist: $userid
 ------------------------------
 ------------------------------
 Seine Mitglieder-Id ist: $userid
 ------------------------------
-IP-Nummer: {%server,remote_addr%} ({%server,real_ip_address%})
+IP-Nummer: {%server,remote_addr%} (Real: {%server,real_ip_address%})
 ------------------------------
 Browser: {%server,user_agent%}
 ------------------------------
 ------------------------------
 Browser: {%server,user_agent%}
 ------------------------------
index 9fae3e2f8c8acaacbbda36b0bf8ae07ce35dc9a4..38f03c27ea8e0fd37debc14db356ee9f76fea4a6 100644 (file)
@@ -12,7 +12,7 @@ Abfrage-String: {%server,request_uri%}
 ------------------------------
 Verwendeter Browser: {%server,user_agent%}
 ------------------------------
 ------------------------------
 Verwendeter Browser: {%server,user_agent%}
 ------------------------------
-IP-Nummer: {%server,remote_addr%} ({%server,real_ip_address%})
+IP-Nummer: {%server,remote_addr%} (Real: {%server,real_ip_address%})
 ------------------------------
 User-Id: {%user,userid%}
 ------------------------------
 ------------------------------
 User-Id: {%user,userid%}
 ------------------------------
index 75786a7567c9f675768795da438b56dd014542ed..beab4d17d7ee0b5a07c02589fc1cc03956b48e00 100644 (file)
@@ -13,7 +13,7 @@ $content[login]
 
 Sollten Sie dies nicht gewesen sein, so ignorieren Sie einfach diese Mail. Hier sind die IP-Nummer und Browserbezeichnung:
 ------------------------------
 
 Sollten Sie dies nicht gewesen sein, so ignorieren Sie einfach diese Mail. Hier sind die IP-Nummer und Browserbezeichnung:
 ------------------------------
-IP-Nummer: {%server,remote_addr%} ({%server,real_ip_address%})
+IP-Nummer: {%server,remote_addr%} (Real: {%server,real_ip_address%})
 ------------------------------
 Browser: {%server,user_agent%}
 ------------------------------
 ------------------------------
 Browser: {%server,user_agent%}
 ------------------------------
index 35325ece362d9e1c8853594ffb55215d56d164ea..00bc991ec99c3df3ca8659fcb9790db2ca8c2a4e 100644 (file)
@@ -25,7 +25,7 @@ Hier sind alle neuen (und in Klammern alten) Daten:
 ------------------------------
 Verwendeter Browser: {%server,user_agent%}
 ------------------------------
 ------------------------------
 Verwendeter Browser: {%server,user_agent%}
 ------------------------------
-IP-Nummer: {%server,remote_addr%} ({%server,real_ip_address%})
+IP-Nummer: {%server,remote_addr%} (Real: {%server,real_ip_address%})
 ------------------------------
 
 Mit freundlichen Gr&uuml;&szlig;en,
 ------------------------------
 
 Mit freundlichen Gr&uuml;&szlig;en,
index 324e71440ccc45160622a43a5711e78c257ef935..d19c3edd7451611bcb96f81c7e13e4115e39006a 100644 (file)
@@ -25,7 +25,7 @@ Hier sind alle neuen (und in Klammern alten) Daten:
 ------------------------------
 Verwendeter Browser: {%server,user_agent%}
 ------------------------------
 ------------------------------
 Verwendeter Browser: {%server,user_agent%}
 ------------------------------
-IP-Nummer: {%server,remote_addr%} ({%server,real_ip_address%})
+IP-Nummer: {%server,remote_addr%} (Real: {%server,real_ip_address%})
 ------------------------------
 
 Mit freundlichen Gr&uuml;&szlig;en,
 ------------------------------
 
 Mit freundlichen Gr&uuml;&szlig;en,
index fb8d29d0b147400714703ba58f73fa927db5d9d1..3b5c7bd1192d2fb83783b8470f6b9b45a57efc32 100644 (file)
@@ -1,6 +1,6 @@
 Hallo Administrator,
 
 Hallo Administrator,
 
-soeben hat ein neuer Sponsor seine EMail-Adresse best&auml;tigt. Dies wurde von der IP-Nummer {%server,remote_addr%} ({%server,real_ip_address%}) aus durchgef&uuml;hrt.
+soeben hat ein neuer Sponsor seine EMail-Adresse best&auml;tigt. Dies wurde von der IP-Nummer {%server,remote_addr%} (Real: {%server,real_ip_address%}) aus durchgef&uuml;hrt.
 
 Bitte setzen Sie sich mit ihm in Verbindung (die EMail-Adresse finden Sie weiter unten) und teilen Sie ihm Ihre Kontoverbindung mit!
 
 
 Bitte setzen Sie sich mit ihm in Verbindung (die EMail-Adresse finden Sie weiter unten) und teilen Sie ihm Ihre Kontoverbindung mit!
 
index 055c718f7824cb0127a7d185b7fd7a003bdcf10c..b3b7cef7685b72cca235a4b4750a5b05038c52e1 100644 (file)
@@ -1,6 +1,6 @@
 Hallo Administrator,
 
 Hallo Administrator,
 
-soeben hat sich ein neuer Sponsor zu unserem {?mt_word?} mit der IP-Nummer {%server,remote_addr%} ({%server,real_ip_address%}) angemeldet. Er wird als n&auml;chstes seine EMail-Adresse best&auml;tigen.
+soeben hat sich ein neuer Sponsor zu unserem {?mt_word?} mit der IP-Nummer {%server,remote_addr%} (Real: {%server,real_ip_address%}) angemeldet. Er wird als n&auml;chstes seine EMail-Adresse best&auml;tigen.
 
 Folgende Daten wurden dabei &uuml;bermittelt:
 ------------------------------
 
 Folgende Daten wurden dabei &uuml;bermittelt:
 ------------------------------
@@ -18,7 +18,7 @@ Nachname: {%sponsor,family=$content[id]%}
 ------------------------------
 Verwendeter Browser: {%server,user_agent%}
 ------------------------------
 ------------------------------
 Verwendeter Browser: {%server,user_agent%}
 ------------------------------
-IP-Nummer: {%server,remote_addr%} ({%server,real_ip_address%})
+IP-Nummer: {%server,remote_addr%} (Real: {%server,real_ip_address%})
 ------------------------------
 
 Die restliche Daten k&ouml;nnen Sie im Admin-Bereich einsehen.
 ------------------------------
 
 Die restliche Daten k&ouml;nnen Sie im Admin-Bereich einsehen.
index e0566fce3b2b5ac6e2448aa69b54c53e0d852f5e..9451228ae4ae4b706026b8b55d3f4ce58a6c4eb5 100644 (file)
@@ -11,7 +11,7 @@ Hier sind alle neuen (und in Klammern alten) Daten:
 ------------------------------
 Verwendeter Browser: {%server,user_agent%}
 ------------------------------
 ------------------------------
 Verwendeter Browser: {%server,user_agent%}
 ------------------------------
-IP-Nummer: {%server,remote_addr%} ({%server,real_ip_address%})
+IP-Nummer: {%server,remote_addr%} (Real: {%server,real_ip_address%})
 ------------------------------
 
 Mit freundlichen Gr&uuml;&szlig;en,
 ------------------------------
 
 Mit freundlichen Gr&uuml;&szlig;en,
index 54d8a724c89ae77463727d2cb0973c79ed317e69..ec0c88357bb6b09ec1c9d4a768f6ff18ad84e19d 100644 (file)
@@ -9,7 +9,7 @@ E-Mail Adresse: {%user,email=$userid%}
 ------------------------------
 Vor-, Nachname: {%user,gender,translateGender=$userid%} {%user,surname=$userid%} {%user,family=$userid%}
 ------------------------------
 ------------------------------
 Vor-, Nachname: {%user,gender,translateGender=$userid%} {%user,surname=$userid%} {%user,family=$userid%}
 ------------------------------
-IP-Nummer: {%server,remote_addr%} ({%server,real_ip_address%})
+IP-Nummer: {%server,remote_addr%} (Real: {%server,real_ip_address%})
 ------------------------------
 Browser: {%server,user_agent%}
 ------------------------------
 ------------------------------
 Browser: {%server,user_agent%}
 ------------------------------
index 0873a31ffe0a8175f1fbc0c8b92c237a5f236c33..1ec07eda034d18f7ba9521726268572ea7cf729c 100644 (file)
@@ -9,7 +9,7 @@ E-Mail Adresse: {%user,email=$userid%}
 ------------------------------
 Vor-, Nachname: {%user,gender,translateGender=$userid%} {%user,surname=$userid%} {%user,family=$userid%}
 ------------------------------
 ------------------------------
 Vor-, Nachname: {%user,gender,translateGender=$userid%} {%user,surname=$userid%} {%user,family=$userid%}
 ------------------------------
-IP-Nummer: {%server,remote_addr%} ({%server,real_ip_address%})
+IP-Nummer: {%server,remote_addr%} (Real: {%server,real_ip_address%})
 ------------------------------
 Browser: {%server,user_agent%}
 ------------------------------
 ------------------------------
 Browser: {%server,user_agent%}
 ------------------------------
index ee84a2a6d653be4a065c41ee5b3fe578337b0ee1..6e71bfa5b5fa94d813b1411e67463d2ddc81cead 100644 (file)
@@ -9,7 +9,7 @@ E-Mail Adresse: {%user,email=$userid%}
 ------------------------------
 Vor-, Nachname: {%user,gender,translateGender=$userid%} {%user,surname=$userid%} {%user,family=$userid%}
 ------------------------------
 ------------------------------
 Vor-, Nachname: {%user,gender,translateGender=$userid%} {%user,surname=$userid%} {%user,family=$userid%}
 ------------------------------
-IP-Nummer: {%server,remote_addr%} ({%server,real_ip_address%})
+IP-Nummer: {%server,remote_addr%} (Real: {%server,real_ip_address%})
 ------------------------------
 Browser: {%server,user_agent%}
 ------------------------------
 ------------------------------
 Browser: {%server,user_agent%}
 ------------------------------
index eba85cf5af615330cb2fda340e1a63750fcbe620..91ad5fa293033cbed46cc9455ff289c4460bbd50 100644 (file)
@@ -16,7 +16,7 @@ Mitglieder-Id: $content[sender][userid]
 Vollst. Name: {%pipe,translateGender=$content[sender][gender]%} $content[sender][surname] $content[sender][family]
 Email-Adresse: $content[sender][email]
 ------------------------------
 Vollst. Name: {%pipe,translateGender=$content[sender][gender]%} $content[sender][surname] $content[sender][family]
 Email-Adresse: $content[sender][email]
 ------------------------------
-IP-Nummer: {%server,remote_addr%} ({%server,real_ip_address%})
+IP-Nummer: {%server,remote_addr%} (Real: {%server,real_ip_address%})
 Browser  : {%server,user_agent%}
 ------------------------------
 Verwendungszweck: $content[reason]
 Browser  : {%server,user_agent%}
 ------------------------------
 Verwendungszweck: $content[reason]
index 18c1daee3a296f99d8da9b95fb4673cdb4557217..bfbf1708dab3979204dd6ed30e931a9944e66d1e 100644 (file)
@@ -10,7 +10,7 @@ Es hat dabei folgende Angaben gemacht:
 ------------------------------
 Seine Mitglieder-Id ist: $userid
 ------------------------------
 ------------------------------
 Seine Mitglieder-Id ist: $userid
 ------------------------------
-IP-Nummer: {%server,remote_addr%} ({%server,real_ip_address%})
+IP-Nummer: {%server,remote_addr%} (Real: {%server,real_ip_address%})
 ------------------------------
 Browser: {%server,user_agent%}
 ------------------------------
 ------------------------------
 Browser: {%server,user_agent%}
 ------------------------------
index 7d0aff2592cb1153951de65fcaf694724deb9689..367aba80a0ac0f153a4855fa818f784aa172826a 100644 (file)
@@ -5,7 +5,7 @@ ein anderer Administrator hat Ihnen soeben eine Mail geschickt!
 ------------------------------------
 $content
 ------------------------------------
 ------------------------------------
 $content
 ------------------------------------
-IP-Nummer: {%server,remote_addr%} ({%server,real_ip_address%})
+IP-Nummer: {%server,remote_addr%} (Real: {%server,real_ip_address%})
 ------------------------------------
 Browser: {%server,user_agent%}
 ------------------------------------
 ------------------------------------
 Browser: {%server,user_agent%}
 ------------------------------------
index 9e41d25393ada683242d02f80f5f9a2b44a18f94..05edcbc31620e1f8e9219dc02dbb0e127832dc44 100644 (file)
@@ -5,7 +5,7 @@ ein anderer Administrator hat Ihnen soeben eine Nachricht in Ihren Account gesch
 ------------------------------------
 $content
 ------------------------------------
 ------------------------------------
 $content
 ------------------------------------
-IP-Nummer: {%server,remote_addr%} ({%server,real_ip_address%})
+IP-Nummer: {%server,remote_addr%} (Real: {%server,real_ip_address%})
 ------------------------------------
 Browser: {%server,user_agent%}
 ------------------------------------
 ------------------------------------
 Browser: {%server,user_agent%}
 ------------------------------------
index 37bbb777e06a72b8a3595b14fd769ad8d862d04a..d80934e8b6d8cdd4c39f6f84ae03508eda12ad72 100644 (file)
@@ -9,7 +9,7 @@ Es wurde soeben ein Gutschein erstellt und der Code Ihnen per Email zugesandt. D
 Hier ist Ihr pers&ouml;nlicher Gutscheincode, den nur Sie kennen:
 $content[coupon_code]
 
 Hier ist Ihr pers&ouml;nlicher Gutscheincode, den nur Sie kennen:
 $content[coupon_code]
 
-Sie k&ouml;nnen diesen im Mitgliedbereich bis zum $content[coupon_expires] einl&ouml;sen.
+Sie k&ouml;nnen diesen im Mitgliedbereich bis zum $content[coupon_expired] einl&ouml;sen.
 
 Sie k&ouml;nnen den Empfang von Gutscheinen jederzeit im Mitgliedsbereich unter Gutscheine->Gutschein einl&ouml;sen abbestellen und auch wieder bestellen.
 
 
 Sie k&ouml;nnen den Empfang von Gutscheinen jederzeit im Mitgliedsbereich unter Gutscheine->Gutschein einl&ouml;sen abbestellen und auch wieder bestellen.
 
index 2f5f854fad9ca7bbd3e8920028f31caabb1f4032..809c23d2be9e764d7c1aa5e983628ab0475598fc 100644 (file)
@@ -14,7 +14,7 @@ Hallo {%user,gender,translateGender=$userid%} {%user,surname=$userid%} {%user,fa
 {--EMAIL--}: {%user,email=$userid%}
 {--PASS_1--}: $content[pass1]
 ------------------------------------------
 {--EMAIL--}: {%user,email=$userid%}
 {--PASS_1--}: $content[pass1]
 ------------------------------------------
-IP-Nummer: {%server,remote_addr%} ({%server,real_ip_address%})
+IP-Nummer: {%server,remote_addr%} (Real: {%server,real_ip_address%})
 ------------------------------------------
 Browser: {%server,user_agent%}
 ------------------------------------------
 ------------------------------------------
 Browser: {%server,user_agent%}
 ------------------------------------------
index 07708f76c6086b8765d8396cf3b5149ea30206dc..1dd1c6f28d2168de50b28330aac1211b0bbca5f8 100644 (file)
@@ -7,7 +7,7 @@ Ihre Login-Id lautet: $userid / Nickname: $content[nickname]
 Neues Passwort: $content[new_pass]
 Sie k&ouml;nnen sich nun hier einloggen:: {?URL?}/login.php
 ------------------------------------
 Neues Passwort: $content[new_pass]
 Sie k&ouml;nnen sich nun hier einloggen:: {?URL?}/login.php
 ------------------------------------
-IP-Nummer: {%server,remote_addr%} ({%server,real_ip_address%})
+IP-Nummer: {%server,remote_addr%} (Real: {%server,real_ip_address%})
 ------------------------------------
 Browser: {%server,user_agent%}
 ------------------------------------
 ------------------------------------
 Browser: {%server,user_agent%}
 ------------------------------------
index 278c286efd45bbfc19c27751af0985ef694ffaf7..25d01afa6a3e8d1bf3821d8504cfd0d88481b6d5 100644 (file)
@@ -15,7 +15,7 @@ Gebuchter Payment-Typ: {%pipe,getPaymentTitlePrice=$content[payment_id]%}
 Betreffzeile in den Mails: $content[subject]
 Gebuchte URL: $content[url]
 ------------------------------------
 Betreffzeile in den Mails: $content[subject]
 Gebuchte URL: $content[url]
 ------------------------------------
-IP-Nummer: {%server,remote_addr%} ({%server,real_ip_address%})
+IP-Nummer: {%server,remote_addr%} (Real: {%server,real_ip_address%})
 ------------------------------------
 Browser: {%server,user_agent%}
 ------------------------------------------------
 ------------------------------------
 Browser: {%server,user_agent%}
 ------------------------------------------------
index 3deee10d75bcdf40d41337a778110e92742fa670..56589329911c0ae6ac9fb175173a919ede329165 100644 (file)
@@ -14,7 +14,7 @@ Wohnort: {%user,city=$userid%}
 Email-Adresse: {%user,email=$userid%}
 Geburtsdatum: $content[birthday]
 -------------------------
 Email-Adresse: {%user,email=$userid%}
 Geburtsdatum: $content[birthday]
 -------------------------
-IP-Nummer: {%server,remote_addr%} ({%server,real_ip_address%})
+IP-Nummer: {%server,remote_addr%} (Real: {%server,real_ip_address%})
 -------------------------
 Browser: {%server,user_agent%}
 -------------------------
 -------------------------
 Browser: {%server,user_agent%}
 -------------------------
index c2023fd434e2130718944a9b9ef95d362a12e69d..88adc8b047164d6a0b4c6548df446323841a62c3 100644 (file)
@@ -1,6 +1,6 @@
 Hallo {%sponsor,gender,translateGender=$content[id]%} {%sponsor,surname=$content[id]%} {%sponsor,family=$content[id]%},
 
 Hallo {%sponsor,gender,translateGender=$content[id]%} {%sponsor,surname=$content[id]%} {%sponsor,family=$content[id]%},
 
-Sie (oder ein anderer mit der IP-Nummer {%server,remote_addr%} ({%server,real_ip_address%})) haben soeben Ihren Best&auml;tigungslink erneut angefordert.
+Sie (oder ein anderer mit der IP-Nummer {%server,remote_addr%} (Real: {%server,real_ip_address%})) haben soeben Ihren Best&auml;tigungslink erneut angefordert.
 
 Hier ist Ihr Link:
 ------------------------------
 
 Hier ist Ihr Link:
 ------------------------------
@@ -16,7 +16,7 @@ Sollten Sie sich nicht angemeldet haben, bitten wir diese Unangenehmlichkeit zu
 ------------------------------
 Verwendeter Browser: {%server,user_agent%}
 ------------------------------
 ------------------------------
 Verwendeter Browser: {%server,user_agent%}
 ------------------------------
-IP-Nummer: {%server,remote_addr%} ({%server,real_ip_address%})
+IP-Nummer: {%server,remote_addr%} (Real: {%server,real_ip_address%})
 ------------------------------
 Angemeldet am: $content[sponsor_created]
 ------------------------------
 ------------------------------
 Angemeldet am: $content[sponsor_created]
 ------------------------------
index 3dc4111c197beac41895a37708c26e41a2c59cb0..2dbad9c007d19a16234c2ec488e88ebb5ff309a1 100644 (file)
@@ -27,7 +27,7 @@ Das Passwort wurde Ihnen aus Sicherheitsgr&uuml;nden nicht mitgesendet.
 ------------------------------
 Verwendeter Browser: {%server,user_agent%}
 ------------------------------
 ------------------------------
 Verwendeter Browser: {%server,user_agent%}
 ------------------------------
-IP-Nummer: {%server,remote_addr%} ({%server,real_ip_address%})
+IP-Nummer: {%server,remote_addr%} (Real: {%server,real_ip_address%})
 ------------------------------
 
 Mit freundlichen Gr&uuml;&szlig;en,
 ------------------------------
 
 Mit freundlichen Gr&uuml;&szlig;en,
index 8a6ac61d497bf591b342132f944d7ebe444e561f..f59990976b6bf26f831ea1dc05bbe28fdfa72383 100644 (file)
@@ -9,7 +9,7 @@ Sollten Sie diesen nicht anklicken k&ouml;nnen, kopieren Sie ihn bitte in die Ad
 ------------------------------
 Verwendeter Browser: {%server,user_agent%}
 ------------------------------
 ------------------------------
 Verwendeter Browser: {%server,user_agent%}
 ------------------------------
-IP-Nummer: {%server,remote_addr%} ({%server,real_ip_address%})
+IP-Nummer: {%server,remote_addr%} (Real: {%server,real_ip_address%})
 ------------------------------
 
 Mit freundlichen Gr&uuml;&szlig;en,
 ------------------------------
 
 Mit freundlichen Gr&uuml;&szlig;en,
index 3d8cd5b6f5513becd11af3586c8c8c69697152ec..b00e85cb16d501a052aea71a0a1d67c94b7a42aa 100644 (file)
@@ -1,6 +1,6 @@
 Hallo {%sponsor,gender,translateGender=$content[id]%} {%sponsor,surname=$content[id]%} {%sponsor,family=$content[id]%},
 
 Hallo {%sponsor,gender,translateGender=$content[id]%} {%sponsor,surname=$content[id]%} {%sponsor,family=$content[id]%},
 
-Sie (oder ein anderer mit der IP-Nummer {%server,remote_addr%} ({%server,real_ip_address%})) haben sich soeben als Sponsor zu unserem {?mt_word?} angemeldet. Sie haben somit den ersten Schritt zu uns getan wof&uuml;r wir uns sehr bedanken.
+Sie (oder ein anderer mit der IP-Nummer {%server,remote_addr%} (Real: {%server,real_ip_address%})) haben sich soeben als Sponsor zu unserem {?mt_word?} angemeldet. Sie haben somit den ersten Schritt zu uns getan wof&uuml;r wir uns sehr bedanken.
 
 Als n&auml;chstes m&uuml;ssen Sie Ihre EMail-Adresse best&auml;tigen. Dieser Schritt ist erforderlich, um sicher zu gehen, dass auch kein anderer Sie angemeldet hat.
 
 
 Als n&auml;chstes m&uuml;ssen Sie Ihre EMail-Adresse best&auml;tigen. Dieser Schritt ist erforderlich, um sicher zu gehen, dass auch kein anderer Sie angemeldet hat.
 
@@ -20,7 +20,7 @@ Sollten Sie sich nicht angemeldet haben, bitten wir diese Unangenehmlichkeit zu
 ------------------------------
 Verwendeter Browser: {%server,user_agent%}
 ------------------------------
 ------------------------------
 Verwendeter Browser: {%server,user_agent%}
 ------------------------------
-IP-Nummer: {%server,remote_addr%} ({%server,real_ip_address%})
+IP-Nummer: {%server,remote_addr%} (Real: {%server,real_ip_address%})
 ------------------------------
 Angemeldet am: $content[timestamp]
 ------------------------------
 ------------------------------
 Angemeldet am: $content[timestamp]
 ------------------------------
index 953ce8647ec62605b2deef2475886963ec06ed9f..3e156853eb0e90be5685c128a16611b624a93ef1 100644 (file)
@@ -14,7 +14,7 @@ Sollten Sie diesen nicht anklicken k&ouml;nnen, kopieren Sie ihn bitte in die Ad
 ------------------------------
 Verwendeter Browser: {%server,user_agent%}
 ------------------------------
 ------------------------------
 Verwendeter Browser: {%server,user_agent%}
 ------------------------------
-IP-Nummer: {%server,remote_addr%} ({%server,real_ip_address%})
+IP-Nummer: {%server,remote_addr%} (Real: {%server,real_ip_address%})
 ------------------------------
 
 Mit freundlichen Gr&uuml;&szlig;en,
 ------------------------------
 
 Mit freundlichen Gr&uuml;&szlig;en,
index e23ce082526265c5b2ebb7265424c7c438835fe2..d852ccd2dad4e445c4478a84b693f862a7a1c85f 100644 (file)
@@ -1,6 +1,6 @@
 Hallo {%sponsor,gender,translateGender=$content[id]%} {%sponsor,surname=$content[id]%} {%sponsor,family=$content[id]%},
 
 Hallo {%sponsor,gender,translateGender=$content[id]%} {%sponsor,surname=$content[id]%} {%sponsor,family=$content[id]%},
 
-Sie (oder ein anderer mit der IP-Nummer {%server,remote_addr%} ({%server,real_ip_address%})) haben soeben ein neues Passwort angefordert.
+Sie (oder ein anderer mit der IP-Nummer {%server,remote_addr%} (Real: {%server,real_ip_address%})) haben soeben ein neues Passwort angefordert.
 
 Hier sind Ihre neuen Zugangsdaten:
 ------------------------------
 
 Hier sind Ihre neuen Zugangsdaten:
 ------------------------------
@@ -14,7 +14,7 @@ Sollten Sie dies nicht angefordert haben, bitten wir diese Unangenehmlichkeit zu
 ------------------------------
 Verwendeter Browser: {%server,user_agent%}
 ------------------------------
 ------------------------------
 Verwendeter Browser: {%server,user_agent%}
 ------------------------------
-IP-Nummer: {%server,remote_addr%} ({%server,real_ip_address%})
+IP-Nummer: {%server,remote_addr%} (Real: {%server,real_ip_address%})
 ------------------------------
 Angemeldet am: $content[sponsor_created]
 ------------------------------
 ------------------------------
 Angemeldet am: $content[sponsor_created]
 ------------------------------
index 855d30a74bdad8cf04c05ca743eb4d71dd990ca8..6749ad0107aa76c550b9688c944218a75f1e70e7 100644 (file)
@@ -1,6 +1,6 @@
 Hallo {%sponsor,gender,translateGender=$content[id]%} {%sponsor,surname=$content[id]%} {%sponsor,family=$content[id]%},
 
 Hallo {%sponsor,gender,translateGender=$content[id]%} {%sponsor,surname=$content[id]%} {%sponsor,family=$content[id]%},
 
-Sie haben soeben Ihre EMail-Adresse best&auml;tigt. Dies wurde von der IP-Nummer {%server,remote_addr%} ({%server,real_ip_address%}) aus durchgef&uuml;hrt.
+Sie haben soeben Ihre EMail-Adresse best&auml;tigt. Dies wurde von der IP-Nummer {%server,remote_addr%} (Real: {%server,real_ip_address%}) aus durchgef&uuml;hrt.
 
 Wir werden uns bald mit Ihnen in Verbindung setzen und Ihnen unsere Kontodaten mitteilen. Zu unserer Sicherheit haben wir diese hier nicht aufgelistet. Bitte notieren Sie sich vorab folgende Daten:
 
 
 Wir werden uns bald mit Ihnen in Verbindung setzen und Ihnen unsere Kontodaten mitteilen. Zu unserer Sicherheit haben wir diese hier nicht aufgelistet. Bitte notieren Sie sich vorab folgende Daten:
 
index c54c8742948d4f9da91cdb366f16eacf56a1d57f..4120fee101468b115c89022865a59adadf10fbf7 100644 (file)
@@ -13,7 +13,7 @@ Das Passwort wurde Ihnen aus Sicherheitsgr&uuml;nden nicht mitgesendet.
 ------------------------------
 Verwendeter Browser: {%server,user_agent%}
 ------------------------------
 ------------------------------
 Verwendeter Browser: {%server,user_agent%}
 ------------------------------
-IP-Nummer: {%server,remote_addr%} ({%server,real_ip_address%})
+IP-Nummer: {%server,remote_addr%} (Real: {%server,real_ip_address%})
 ------------------------------
 
 Mit freundlichen Gr&uuml;&szlig;en,
 ------------------------------
 
 Mit freundlichen Gr&uuml;&szlig;en,
index c2023fd434e2130718944a9b9ef95d362a12e69d..88adc8b047164d6a0b4c6548df446323841a62c3 100644 (file)
@@ -1,6 +1,6 @@
 Hallo {%sponsor,gender,translateGender=$content[id]%} {%sponsor,surname=$content[id]%} {%sponsor,family=$content[id]%},
 
 Hallo {%sponsor,gender,translateGender=$content[id]%} {%sponsor,surname=$content[id]%} {%sponsor,family=$content[id]%},
 
-Sie (oder ein anderer mit der IP-Nummer {%server,remote_addr%} ({%server,real_ip_address%})) haben soeben Ihren Best&auml;tigungslink erneut angefordert.
+Sie (oder ein anderer mit der IP-Nummer {%server,remote_addr%} (Real: {%server,real_ip_address%})) haben soeben Ihren Best&auml;tigungslink erneut angefordert.
 
 Hier ist Ihr Link:
 ------------------------------
 
 Hier ist Ihr Link:
 ------------------------------
@@ -16,7 +16,7 @@ Sollten Sie sich nicht angemeldet haben, bitten wir diese Unangenehmlichkeit zu
 ------------------------------
 Verwendeter Browser: {%server,user_agent%}
 ------------------------------
 ------------------------------
 Verwendeter Browser: {%server,user_agent%}
 ------------------------------
-IP-Nummer: {%server,remote_addr%} ({%server,real_ip_address%})
+IP-Nummer: {%server,remote_addr%} (Real: {%server,real_ip_address%})
 ------------------------------
 Angemeldet am: $content[sponsor_created]
 ------------------------------
 ------------------------------
 Angemeldet am: $content[sponsor_created]
 ------------------------------
index 02b436b673a744c8b50a927552b4b11b8b78b7d5..b7ef6a385240236a631536bae7482019a5e86458 100644 (file)
        </tr>
        <tr>
                <td class="bottom" align="right" height="20">
        </tr>
        <tr>
                <td class="bottom" align="right" height="20">
-                       <input type="radio" class="form_field" name="beg_mode" value="DIRECT"$content[beg_mode_direct] /> {--BEG_MODE_DIRECT--}
+                       <input type="radio" class="form_field" name="beg_mode" value="DIRECT"$content[beg_mode_direct] />
+                       {--ADMIN_CONFIG_PAYMENT_MODE_DIRECT--}
                </td>
                <td class="bottom" align="center">
                </td>
                <td class="bottom" align="center">
-                       <input type="radio" class="form_field" name="beg_mode" value="REF"$content[beg_mode_ref] /> {--BEG_MODE_REF--}
+                       <input type="radio" class="form_field" name="beg_mode" value="REF"$content[beg_mode_ref] />
+                       {--ADMIN_CONFIG_PAYMENT_MODE_REF--}
                </td>
        </tr>
        <tr>
                </td>
        </tr>
        <tr>
index 757f9365ff59da6c0bc346dc29b6a876e80b7bbf..8ab083200738565838603219815e09b3347884d8 100644 (file)
        <tr>
                <td class="bottom" align="right">
                        <input type="radio" class="form_field" name="birthday_mode" value="DIRECT"$content[mode_direct] />
        <tr>
                <td class="bottom" align="right">
                        <input type="radio" class="form_field" name="birthday_mode" value="DIRECT"$content[mode_direct] />
-                       {--ADMIN_BIRTHDAY_MODE_DIRECT--}
+                       {--ADMIN_CONFIG_PAYMENT_MODE_DIRECT--}
                </td>
                <td class="bottom" align="center">
                        <input type="radio" class="form_field" name="birthday_mode" value="REF"$content[mode_ref] />
                </td>
                <td class="bottom" align="center">
                        <input type="radio" class="form_field" name="birthday_mode" value="REF"$content[mode_ref] />
-                       {--ADMIN_BIRTHDAY_MODE_REF--}
+                       {--ADMIN_CONFIG_PAYMENT_MODE_REF--}
                </td>
        </tr>
        <tr>
                </td>
        </tr>
        <tr>
index ae103f10799628b75e2dc97c5559a822d0f51cdc..9315f07fdcc419923919b134280c8eff8df3541d 100644 (file)
                </td>
        </tr>
        <tr>
                </td>
        </tr>
        <tr>
-               <td class="bottom" align="right">{--ADMIN_BONUS_USERID--}:</td>
+               <td class="bottom" align="right">{--ADMIN_CONFIG_BONUS_USERID--}:</td>
                <td class="bottom" align="center">
                        $content[bonus_userid]
                </td>
                <td class="bottom" align="center">
                        $content[bonus_userid]
                </td>
index 3a221b854236191f0f981824315bd8cda88def56..fe53ad2eef4fb17d6be7196b1082f9a9040624b6 100644 (file)
                        $content[coupon_default_time_selection]
                </td>
        </tr>
                        $content[coupon_default_time_selection]
                </td>
        </tr>
+       <tr>
+               <td class="bottom" align="right">{--ADMIN_CONFIG_COUPON_AUTOPURGE_TIME--}:</td>
+               <td class="bottom" align="center">
+                       $content[coupon_autopurge_time_selection]
+               </td>
+       </tr>
        <tr>
                <td class="bottom" align="right">{--ADMIN_CONFIG_COUPON_DEFAULT_POINTS--}:</td>
                <td class="bottom" align="center">
        <tr>
                <td class="bottom" align="right">{--ADMIN_CONFIG_COUPON_DEFAULT_POINTS--}:</td>
                <td class="bottom" align="center">
                        <span class="tiny">({?POINTS?})</span>
                </td>
        </tr>
                        <span class="tiny">({?POINTS?})</span>
                </td>
        </tr>
+       <tr>
+               <td colspan="2" align="center" class="table_header bottom">
+                       <strong>{--ADMIN_CONFIG_COUPON_SELECT_PAYMENT_METHOD--}</strong>
+               </td>
+       </tr>
+       <tr>
+               <td class="bottom" align="right" height="20">
+                       <input type="radio" class="form_field" name="coupon_payment_method" value="DIRECT"$content[coupon_payment_method_direct] />
+                       {--ADMIN_CONFIG_PAYMENT_MODE_DIRECT--}
+               </td>
+               <td class="bottom" align="center">
+                       <input type="radio" class="form_field" name="coupon_payment_method" value="REF"$content[coupon_payment_method_ref] />
+                       {--ADMIN_CONFIG_PAYMENT_MODE_REF--}
+               </td>
+       </tr>
+       <tr>
+               <td colspan="2" align="center" class="table_header bottom">
+                       <strong>{--ADMIN_CONFIG_COUPON_SELECT_POINTS_ACCOUNT--}</strong>
+               </td>
+       </tr>
+       <tr>
+               <td class="bottom" align="right" height="20">
+                       <input type="radio" class="form_field" name="coupon_points_account" value="ORDER"$content[coupon_points_account_order] />
+                       {--ADMIN_CONFIG_POINTS_ACCOUNT_ORDER--}
+               </td>
+               <td class="bottom" align="center">
+                       <input type="radio" class="form_field" name="coupon_points_account" value="GENERAL"$content[coupon_points_account_general] />
+                       {--ADMIN_CONFIG_POINTS_ACCOUNT_GENERAL--}
+               </td>
+       </tr>
+       <tr>
+               <td colspan="2" align="center" class="table_header bottom">
+                       <strong>{--ADMIN_CONFIG_COUPON_SELECT_LOCKED_POINTS_MODE--}</strong>
+               </td>
+       </tr>
+       <tr>
+               <td class="bottom" align="right" height="20">
+                       <input type="radio" class="form_field" name="coupon_locked_points_mode" value="locked"$content[coupon_locked_points_mode_locked] />
+                       {--ADMIN_CONFIG_LOCKED_POINTS_MODE_LOCKED--}
+               </td>
+               <td class="bottom" align="center">
+                       <input type="radio" class="form_field" name="coupon_locked_points_mode" value="unlocked"$content[coupon_locked_points_mode_unlocked] />
+                       {--ADMIN_CONFIG_LOCKED_POINTS_MODE_UNLOCKED--}
+               </td>
+       </tr>
+       <tr>
+               <td class="bottom" align="right">{--ADMIN_CONFIG_COUPON_USERID--}:</td>
+               <td class="bottom" align="center">
+                       $content[coupon_userid]
+               </td>
+       </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 e077a0baa6fd474af14fcc8d4e361fdf7f8bc055..289bef2a986ce2a1c9dcaa0f91fa50182770292d 100644 (file)
@@ -22,7 +22,7 @@
        <tr>
                <td class="bottom" align="right" valign="top" style="padding-top:5px">{--ADMIN_SEND_COUPON_ENTER_DESCRIPTION--}:</td>
                <td class="bottom" align="center">
        <tr>
                <td class="bottom" align="right" valign="top" style="padding-top:5px">{--ADMIN_SEND_COUPON_ENTER_DESCRIPTION--}:</td>
                <td class="bottom" align="center">
-                       <textarea name="description" class="form_field" rows="10" cols="50"></textarea>
+                       <textarea name="coupon_description" class="form_field" rows="10" cols="50"></textarea>
                </td>
        </tr>
        <tr>
                </td>
        </tr>
        <tr>