From c3a69502dc0ac76dd3c3100e6585fe38d1f71104 Mon Sep 17 00:00:00 2001 From: quix0r Date: Tue, 22 Jun 2010 01:57:02 +0000 Subject: [PATCH] Several template fixes/cleanups, naming convention applied: - Several templates fixed (see naming convention below) - Some more HTML code swapped out to templates - New naming convention: _en_ is obsolete, we use _enable_ and same for _di_, we now use _disable_. _mem_ is obsolete, too. We now use _member_. - TODOs.txt updated --- .gitattributes | 1 + DOCS/TODOs.txt | 44 ++-- inc/databases.php | 2 +- inc/expression-functions.php | 4 +- inc/extensions/ext-beg.php | 23 +- inc/extensions/ext-bonus.php | 33 ++- inc/functions.php | 10 +- inc/language/beg_de.php | 8 +- inc/language/bonus_de.php | 8 +- inc/language/de.php | 6 +- inc/libs/rallye_functions.php | 241 +++++++++++------- inc/libs/register_functions.php | 8 +- inc/libs/sponsor_functions.php | 23 +- inc/mails/beg_mails.php | 16 +- inc/mails/bonus_mails.php | 16 +- inc/modules/admin/what-config_beg.php | 26 +- inc/modules/admin/what-config_bonus.php | 8 +- inc/modules/admin/what-list_user.php | 7 +- inc/modules/login.php | 2 +- inc/modules/member/what-refback.php | 7 +- inc/wrapper-functions.php | 2 +- show_bonus.php | 14 +- templates/de/html/admin/admin_config_beg.tpl | 24 +- .../de/html/admin/admin_config_bonus.tpl | 16 +- templates/de/html/admin/admin_del_user.tpl | 6 + .../de/html/admin/admin_list_cats_404.tpl | 2 +- .../de/html/admin/admin_list_user_row.tpl | 14 +- templates/de/html/admin/admin_lock_user.tpl | 4 +- templates/de/html/guest/guest_rallye.tpl | 20 ++ .../guest/guest_rallye_expired_footer.tpl | 8 +- .../guest/guest_rallye_expired_header.tpl | 9 +- .../de/html/guest/guest_rallye_footer.tpl | 12 +- .../de/html/guest/guest_rallye_header.tpl | 7 +- templates/de/html/guest/guest_rallye_row.tpl | 6 + templates/de/html/show_bonus_msg.tpl | 2 +- 35 files changed, 364 insertions(+), 275 deletions(-) create mode 100644 templates/de/html/guest/guest_rallye.tpl create mode 100644 templates/de/html/guest/guest_rallye_row.tpl diff --git a/.gitattributes b/.gitattributes index efdaa45424..94f3f50daf 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1408,6 +1408,7 @@ templates/de/html/guest/guest_menu_title.tpl -text templates/de/html/guest/guest_menu_whats.tpl -text templates/de/html/guest/guest_nickname_login.tpl -text templates/de/html/guest/guest_no_rallyes.tpl -text +templates/de/html/guest/guest_rallye.tpl -text templates/de/html/guest/guest_rallye_expired_footer.tpl -text templates/de/html/guest/guest_rallye_expired_header.tpl -text templates/de/html/guest/guest_rallye_footer.tpl -text diff --git a/DOCS/TODOs.txt b/DOCS/TODOs.txt index 1bcd6a72b6..be9e927d47 100644 --- a/DOCS/TODOs.txt +++ b/DOCS/TODOs.txt @@ -41,22 +41,22 @@ ./inc/extensions-functions.php:143: // @TODO Do we still need this? setExtensionUpdateNotes(''); ./inc/extensions-functions.php:423:// @TODO Change from ext_id to ext_name (not just even the variable! ;-) ) ./inc/extensions-functions.php:539: // @TODO Extension is loaded, what next? -./inc/functions.php:1055:// @TODO $simple/$constants are deprecated -./inc/functions.php:1082: // @TODO Do only use $content and deprecate $GLOBALS and $DATA in templates -./inc/functions.php:2415: // @TODO This can be easily moved out after the merge from EL branch to this is complete -./inc/functions.php:2564: // @TODO Add a little more infos here -./inc/functions.php:2647: // @TODO Move this SQL code into a function, let's say 'getTimestampFromPoolId($id) ? +./inc/functions.php:1052:// @TODO $simple/$constants are deprecated +./inc/functions.php:1079: // @TODO Do only use $content and deprecate $GLOBALS and $DATA in templates +./inc/functions.php:2412: // @TODO This can be easily moved out after the merge from EL branch to this is complete +./inc/functions.php:2561: // @TODO Add a little more infos here +./inc/functions.php:2644: // @TODO Move this SQL code into a function, let's say 'getTimestampFromPoolId($id) ? +./inc/functions.php:2667: // @TODO Rewrite this old lost code to a template ./inc/functions.php:266: // @TODO Remove this sanity-check if all is fine -./inc/functions.php:2670: // @TODO Rewrite this old lost code to a template ./inc/functions.php:269: // @TODO Try to rewrite all $DATA to $content -./inc/functions.php:2760: // @TODO Are these convertions still required? -./inc/functions.php:2778:// @TODO Rewrite this function to use readFromFile() and writeToFile() -./inc/functions.php:3654:// @TODO Lame description for this function -./inc/functions.php:3676: // @TODO Move this in a filter -./inc/functions.php:3800: // @TODO This is still very static, rewrite it somehow -./inc/functions.php:481: // @TODO Do only use $content, not $DATA or raw variables -./inc/functions.php:551: // @TODO Extension 'msg' does not exist -./inc/functions.php:614:// @TODO Rewrite this to an extension 'smtp' +./inc/functions.php:2757: // @TODO Are these convertions still required? +./inc/functions.php:2775:// @TODO Rewrite this function to use readFromFile() and writeToFile() +./inc/functions.php:3651:// @TODO Lame description for this function +./inc/functions.php:3670: // @TODO Move this in a filter +./inc/functions.php:3794: // @TODO This is still very static, rewrite it somehow +./inc/functions.php:478: // @TODO Do only use $content, not $DATA or raw variables +./inc/functions.php:548: // @TODO Extension 'msg' does not exist +./inc/functions.php:611:// @TODO Rewrite this to an extension 'smtp' ./inc/install-functions.php:63: // @TODO DEACTIVATED: changeDataInFile(getConfig('CACHE_PATH') . 'config-local.php', 'OUTPUT-MODE', "setConfigEntry('OUTPUT_MODE', '", "');", postRequestParameter('omode'), 0); ./inc/language/de.php:1143:// @TODO Rewrite these two constants ./inc/language/de.php:1158:// @TODO Rewrite these three constants @@ -74,9 +74,10 @@ ./inc/libs/doubler_functions.php:46:// @TODO Lame description ./inc/libs/doubler_functions.php:94: // @TODO Can't this be moved into EL? ./inc/libs/mailid_functions.php:49: // @TODO Rewrite this to a dynamic include or so -./inc/libs/rallye_functions.php:724: $EXPIRE = 3; // @TODO The hard-coded value... -./inc/libs/rallye_functions.php:806:// @TODO Please document this function -./inc/libs/rallye_functions.php:864: // Load count @TODO Can't we rewrite this to our API? +./inc/libs/rallye_functions.php:708:// @TODO This function does not load min_users, min_prices, please encapsulate loading rallye data with e.g. getRallyeDataFromId() +./inc/libs/rallye_functions.php:779: $EXPIRE = 3; // @TODO The hard-coded value... +./inc/libs/rallye_functions.php:865:// @TODO Please document this function +./inc/libs/rallye_functions.php:923: // Load count @TODO Can't we rewrite this to our API? ./inc/libs/refback_functions.php:61: // @TODO Try to rewrite the following unset() ./inc/libs/register_functions.php:299: // @TODO Rewrite these all to a single filter ./inc/libs/register_functions.php:375: // @TODO Rewrite this to a filter @@ -147,7 +148,7 @@ ./inc/modules/admin/what-list_unconfirmed.php:88: // @TODO "Please do not call me directly." Should be rewritten to a nice selection depending on ext-bonus ./inc/modules/admin/what-list_user.php:157: // @TODO Rewrite these to filters ./inc/modules/admin/what-list_user.php:275: // @TODO Rewrite this into a filter -./inc/modules/admin/what-list_user.php:330: // @TODO Rewrite this into a filter +./inc/modules/admin/what-list_user.php:325: // @TODO Rewrite this into a filter ./inc/modules/admin/what-list_user.php:59:// @TODO Rewrite these if-blocks in a filter ./inc/modules/admin/what-logs.php:69: // @TODO Fix content-type here ./inc/modules/admin/what-logs.php:72: // @TODO Fix content-type here @@ -180,7 +181,7 @@ ./inc/modules/member/what-payout.php:222: // @TODO Rewrite this to a filter ./inc/modules/member/what-points.php:55:// @TODO Should we rewrite this to a filter? ./inc/modules/member/what-rallyes.php:91: // @TODO Reactivate this: $content['admin'] = '' . $content['login'] . ''; -./inc/modules/member/what-refback.php:131: // @TODO UNUSED: $refRow['status'] = translateUserStatus($refRow['status']); +./inc/modules/member/what-refback.php:130: // @TODO UNUSED: $refRow['status'] = translateUserStatus($refRow['status']); ./inc/modules/member/what-reflinks.php:54:// @TODO Move this into a filter ./inc/modules/member/what-transfer.php:132: // @TODO Rewrite this to a filter ./inc/modules/member/what-transfer.php:222: // @TODO Try to rewrite his to $content = SQL_FETCHARRAY(), see some lines above for two different queries @@ -213,6 +214,7 @@ ./mailid_top.php:222: // @TODO Rewrite these blocks to filter ./mailid_top.php:257: // @TODO Try to rewrite the following unset() ./mailid_top.php:99: // @TODO Rewrite this to a filter +./show_bonus.php:107: // @TODO No more needed? $content['points'] = translateComma($content['points']); ./view.php:70: // @TODO No banner found, output some default banner ./templates/de/html/admin/admin_add_country.tpl:23: ./templates/de/html/admin/admin_admins_contct_form.tpl:4: @@ -242,6 +244,10 @@ ./inc/modules/member/what-newsletter.php:2:// @DEPRECATED ./inc/modules/member/what-sponsor.php:2:// @DEPRECATED ./templates/de/html/admin/admin_list_rallye_noselect.tpl:1: +./templates/de/html/guest/guest_rallye_expired_footer.tpl:1: +./templates/de/html/guest/guest_rallye_expired_header.tpl:1: +./templates/de/html/guest/guest_rallye_footer.tpl:1: +./templates/de/html/guest/guest_rallye_header.tpl:1: ### ### template-warnings.log follows: ### ### Warning: Not parsing JavaScript templates/de/html/js/js_order_send.tpl. Warning: Not parsing JavaScript templates/de/html/js/js_cookies_disabled.tpl. diff --git a/inc/databases.php b/inc/databases.php index 35a86969aa..5f383d2a37 100644 --- a/inc/databases.php +++ b/inc/databases.php @@ -76,7 +76,7 @@ addCode('MENU_NOT_VALID' , 0x01f); addCode('LOGIN_FAILED' , 0x020); addCode('BEG_SAME_AS_OWN' , 0x021); addCode('UNHANDLED_STATUS' , 0x022); -addCode('MODULE_MEM_ONLY' , 0x023); +addCode('MODULE_MEMBER_ONLY' , 0x023); addCode('UNKNOWN_ERROR' , 0x024); // Full version diff --git a/inc/expression-functions.php b/inc/expression-functions.php index e112a20bf3..6a7ca12bf6 100644 --- a/inc/expression-functions.php +++ b/inc/expression-functions.php @@ -99,9 +99,9 @@ function doExpressionUser ($data) { if ($data['matches'][4][$data['key']] == '$userid') { // Use dynamic call $functionName = "getFetchedUserData('userid', \$userid, '" . $data['callback'] . "')"; - } elseif ($data['matches'][4][$data['key']] > 0) { + } elseif (!empty($data['matches'][4][$data['key']])) { // User data found - $functionName = "getFetchedUserData('userid', " . $data['matches'][4][$data['key']] . ", " . $data['callback'] . "')"; + $functionName = "getFetchedUserData('userid', " . $data['matches'][4][$data['key']] . ", '" . $data['callback'] . "')"; } } elseif ((!empty($data['callback'])) && (isUserDataValid())) { // "Call-back" alias column for current logged in user's data diff --git a/inc/extensions/ext-beg.php b/inc/extensions/ext-beg.php index db9a335c8e..a8da2f7d48 100644 --- a/inc/extensions/ext-beg.php +++ b/inc/extensions/ext-beg.php @@ -43,10 +43,10 @@ if (!defined('__SECURITY')) { } // END - if // Version number -setThisExtensionVersion('0.2.6'); +setThisExtensionVersion('0.2.7'); // 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')); +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')); switch (getExtensionMode()) { case 'register': // Do stuff when installation is running (modules.php?module=admin is called) @@ -255,7 +255,18 @@ PRIMARY KEY (id) // Update notes (these will be set as task text!) setExtensionUpdateNotes("IP-Lock mit Session-Id erweitert. Tracker-Script eingefügt, dass das Einbinden des Bettel-Links als Bild/Script/CSS verhindern soll."); break; - } + + case '0.2.7': // SQL queries for v0.2.7 + addExtensionSql("ALTER TABLE `{?_MYSQL_PREFIX?}_config` CHANGE `beg_ral_en_notify` `beg_ral_enable_notify` ENUM('Y','N') NOT NULL DEFAULT 'N'"); + addExtensionSql("ALTER TABLE `{?_MYSQL_PREFIX?}_config` CHANGE `beg_ral_di_notify` `beg_ral_disable_notify` ENUM('Y','N') NOT NULL DEFAULT 'N'"); + addExtensionSql("ALTER TABLE `{?_MYSQL_PREFIX?}_config` CHANGE `beg_new_mem_notify` `beg_new_member_notify` ENUM('Y','N') NOT NULL DEFAULT 'N'"); + addExtensionSql("ALTER TABLE `{?_MYSQL_PREFIX?}_user_data` CHANGE `beg_ral_en_notify` `beg_ral_enable_notify` BIGINT(20) UNSIGNED NOT NULL DEFAULT 0"); + addExtensionSql("ALTER TABLE `{?_MYSQL_PREFIX?}_user_data` CHANGE `beg_ral_di_notify` `beg_ral_disable_notify` BIGINT(20) UNSIGNED NOT NULL DEFAULT 0"); + + // Update notes (these will be set as task text!) + setExtensionUpdateNotes("Umbenannt nach neuer Namenskonvention"); + break; + } // END - switch break; case 'modify': // When the extension got modified @@ -271,7 +282,7 @@ PRIMARY KEY (id) $result_ext = SQL_QUERY("DELETE LOW_PRIORITY FROM `{?_MYSQL_PREFIX?}_beg_ips` WHERE `timeout` < (UNIX_TIMESTAMP() -".($OLD + 60*60).")", __FILE__, __LINE__); // Check for beg rallye is active and send mails out - if ((getConfig('beg_rallye') == 'Y') && (getConfig('beg_new_mem_notify') == 'Y')) { + if ((getConfig('beg_rallye') == 'Y') && (getConfig('beg_new_member_notify') == 'Y')) { // Include file for sending out mails addIncludeToPool('notify', 'inc/mails/beg_mails.php'); } // END - if @@ -280,7 +291,7 @@ PRIMARY KEY (id) default: // Unknown extension mode logDebugMessage(__FILE__, __LINE__, sprintf("Unknown extension mode %s in extension %s detected.", getExtensionMode(), getCurrentExtensionName())); break; -} +} // END - switch -// +// [EOF] ?> diff --git a/inc/extensions/ext-bonus.php b/inc/extensions/ext-bonus.php index 8651fdd1ef..6f6c007fe5 100644 --- a/inc/extensions/ext-bonus.php +++ b/inc/extensions/ext-bonus.php @@ -43,10 +43,10 @@ if (!defined('__SECURITY')) { } // END - if // Version of this extension -setThisExtensionVersion('0.9.0'); +setThisExtensionVersion('0.9.1'); // Version history array (add more with , '0.1.0' and so on) -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')); +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')); switch (getExtensionMode()) { case 'register': // Do stuff when installation is running (modules.php?module=admin is called) @@ -465,14 +465,14 @@ WHERE `last_online` < ".$mark." ORDER BY `userid` ASC"); break; case '0.7.7': // SQL queries for v0.7.7 - addExtensionSql("ALTER TABLE `{?_MYSQL_PREFIX?}_config` ADD bonus_en_notify ENUM('Y','N') NOT NULL DEFAULT 'N'"); - addExtensionSql("ALTER TABLE `{?_MYSQL_PREFIX?}_config` ADD bonus_di_notify ENUM('Y','N') NOT NULL DEFAULT 'N'"); - addExtensionSql("ALTER TABLE `{?_MYSQL_PREFIX?}_config` ADD bonus_new_mem_notify ENUM('Y','N') NOT NULL DEFAULT 'N'"); - addExtensionSql("ALTER TABLE `{?_MYSQL_PREFIX?}_config` ADD bonus_notify_points FLOAT(20,5) UNSIGNED NOT NULL DEFAULT 0.00000"); - addExtensionSql("ALTER TABLE `{?_MYSQL_PREFIX?}_config` ADD bonus_notify_wait BIGINT(20) UNSIGNED NOT NULL DEFAULT '30'"); - addExtensionSql("ALTER TABLE `{?_MYSQL_PREFIX?}_user_data` ADD bonus_ral_notify BIGINT(20) UNSIGNED NOT NULL DEFAULT 0"); - addExtensionSql("ALTER TABLE `{?_MYSQL_PREFIX?}_user_data` ADD bonus_ral_en_notify BIGINT(20) UNSIGNED NOT NULL DEFAULT 0"); - addExtensionSql("ALTER TABLE `{?_MYSQL_PREFIX?}_user_data` ADD bonus_ral_di_notify BIGINT(20) UNSIGNED NOT NULL DEFAULT 0"); + addExtensionSql("ALTER TABLE `{?_MYSQL_PREFIX?}_config` ADD `bonus_en_notify` ENUM('Y','N') NOT NULL DEFAULT 'N'"); + addExtensionSql("ALTER TABLE `{?_MYSQL_PREFIX?}_config` ADD `bonus_di_notify` ENUM('Y','N') NOT NULL DEFAULT 'N'"); + addExtensionSql("ALTER TABLE `{?_MYSQL_PREFIX?}_config` ADD `bonus_new_mem_notify` ENUM('Y','N') NOT NULL DEFAULT 'N'"); + addExtensionSql("ALTER TABLE `{?_MYSQL_PREFIX?}_config` ADD `bonus_notify_points` FLOAT(20,5) UNSIGNED NOT NULL DEFAULT 0.00000"); + addExtensionSql("ALTER TABLE `{?_MYSQL_PREFIX?}_config` ADD `bonus_notify_wait` BIGINT(20) UNSIGNED NOT NULL DEFAULT '30'"); + addExtensionSql("ALTER TABLE `{?_MYSQL_PREFIX?}_user_data` ADD `bonus_ral_en_notify` BIGINT(20) UNSIGNED NOT NULL DEFAULT 0"); + addExtensionSql("ALTER TABLE `{?_MYSQL_PREFIX?}_user_data` ADD `bonus_ral_di_notify` BIGINT(20) UNSIGNED NOT NULL DEFAULT 0"); + addExtensionSql("ALTER TABLE `{?_MYSQL_PREFIX?}_user_data` ADD `bonus_ral_notify` BIGINT(20) UNSIGNED NOT NULL DEFAULT 0"); // Update notes (these will be set as task text!) setExtensionUpdateNotes("Optionale automatische Benachrichtigung über aktivierte und/oder deaktivierte Aktiv-Rallye einstellbar."); @@ -550,7 +550,16 @@ WHERE `last_online` < ".$mark." ORDER BY `userid` ASC"); // Update notes setExtensionUpdateNotes("Filter hinzugefügt der den Login-Bonus aktualisiert (bzw. soll) (internes TODO)."); break; - } + + case '0.9.1': // SQL queries for v0.9.1 + addExtensionSql("ALTER TABLE `{?_MYSQL_PREFIX?}_config` CHANGE `bonus_en_notify` `bonus_enable_notify` ENUM('Y','N') NOT NULL DEFAULT 'N'"); + addExtensionSql("ALTER TABLE `{?_MYSQL_PREFIX?}_config` CHANGE `bonus_di_notify` `bonus_disable_notify` ENUM('Y','N') NOT NULL DEFAULT 'N'"); + addExtensionSql("ALTER TABLE `{?_MYSQL_PREFIX?}_config` CHANGE `bonus_new_mem_notify` `bonus_new_member_notify` ENUM('Y','N') NOT NULL DEFAULT 'N'"); + + // Update notes + setExtensionUpdateNotes("Umbenannt nach neuer Konvention (bitte Einstellungen kontrollieren)."); + break; + } // END - switch break; case 'modify': // When the extension got modified @@ -561,7 +570,7 @@ WHERE `last_online` < ".$mark." ORDER BY `userid` ASC"); case 'init': // Do stuff when extension is initialized // Check for bonus rallye is active and send mails out - if ((getConfig('bonus_active') == 'Y') && (getConfig('bonus_new_mem_notify') == 'Y')) { + if ((getConfig('bonus_active') == 'Y') && (getConfig('bonus_new_member_notify') == 'Y')) { // Include file for sending out mails addIncludeToPool('notify', 'inc/mails/bonus_mails.php'); } // END - if diff --git a/inc/functions.php b/inc/functions.php index f010daf758..887faea62a 100644 --- a/inc/functions.php +++ b/inc/functions.php @@ -471,9 +471,6 @@ function loadEmailTemplate ($template, $content = array(), $userid = '0') { //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, "content()=".count($content)." - AFTER
"); } // END - if - // Translate M to male or F to female if present - if (isset($content['gender'])) $content['gender'] = translateGender($content['gender']); - // Overwrite email from data if present if (isset($content['email'])) $email = $content['email']; @@ -2611,11 +2608,11 @@ function getMessageFromErrorCode ($code) { case getCode('COOKIES_DISABLED') : $message = getMessage('LOGIN_COOKIES_DISABLED'); break; case getCode('BEG_SAME_AS_OWN') : $message = getMessage('BEG_SAME_UID_AS_OWN'); break; case getCode('LOGIN_FAILED') : $message = getMessage('LOGIN_FAILED_GENERAL'); break; - case getCode('MODULE_MEM_ONLY') : $message = getMaskedMessage('MODULE_MEM_ONLY', getRequestParameter('mod')); break; + case getCode('MODULE_MEMBER_ONLY') : $message = getMaskedMessage('MODULE_MEMBER_ONLY', getRequestParameter('mod')); break; case getCode('OVERLENGTH') : $message = getMessage('MEMBER_TEXT_OVERLENGTH'); break; case getCode('URL_FOUND') : $message = getMessage('MEMBER_TEXT_CONTAINS_URL'); break; case getCode('SUBJ_URL') : $message = getMessage('MEMBER_SUBJ_CONTAINS_URL'); break; - case getCode('BLIST_URL') : $message = "{--MEMBER_URL_BLACK_LISTED--}
\n{--MEMBER_BLIST_TIME--}: ".generateDateTime(getRequestParameter('blist'), 0); break; + case getCode('BLIST_URL') : $message = '{--MEMBER_URL_BLACK_LISTED--}
{--MEMBER_BLIST_TIME--}: ' . generateDateTime(getRequestParameter('blist'), 0); break; case getCode('NO_RECS_LEFT') : $message = getMessage('MEMBER_SELECTED_MORE_RECS'); break; case getCode('INVALID_TAGS') : $message = getMessage('MEMBER_HTML_INVALID_TAGS'); break; case getCode('MORE_POINTS') : $message = getMessage('MEMBER_MORE_POINTS_NEEDED'); break; @@ -3666,9 +3663,6 @@ function sendModeMails ($mod, $modes) { // Load the data $content = getUserDataArray(); - // Translate gender - $content['gender'] = translateGender($content['gender']); - // Clear/init the content variable $content['message'] = ''; diff --git a/inc/language/beg_de.php b/inc/language/beg_de.php index 50dbbab0ff..6cf9a06e83 100644 --- a/inc/language/beg_de.php +++ b/inc/language/beg_de.php @@ -125,8 +125,8 @@ addMessages(array( 'BEG_RALLYE_NO_ONE_JOINED' => "Niemand nimmt an der Bettel-Rallye dran teil, oder sie ist administrativ deaktiviert worden.", 'ADMIN_BEG_RALLYE_DEACTIVATED' => "Bettel-Rallye nicht aktiviert.", 'ADMIN_EDIT_BEG_RALLYE_NOTIFICATIONS' => "Benachrichtungen per Mail zur Bettel-Rallye", - 'ADMIN_BEG_RAL_EN_NOTIFY' => "Benachtigen, wenn Bettel-Rallye aktiviert wurde?", - 'ADMIN_BEG_RAL_DI_NOTIFY' => "Benachtigen, wenn Bettel-Rallye deaktiviert wurde?", + 'ADMIN_BEG_RAL_ENABLE_NOTIFY' => "Benachtigen, wenn Bettel-Rallye aktiviert wurde?", + 'ADMIN_BEG_RAL_DISABLE_NOTIFY' => "Benachtigen, wenn Bettel-Rallye deaktiviert wurde?", 'ADMIN_BEG_NOTIFY_BONUS' => "Bonus-Mail mit Anzahl {?POINTS?} aussenden, wenn Bettel-Rallye aktiviert wurde.
(0 = Unvergütete Benachrichtigung aussenden; nur in Verbindung mit der Erweiterung bonus!)
", 'ADMIN_BEG_NEW_MEMBER_NOTIFY' => "Sollen neue Mitglieder mit selber Mail über eine laufende Bettel-Rallye benachrichtigt werden?", 'ADMIN_BEG_NOTIFY_WAIT' => "Wie lange soll die Wartezeit der Bonus-Mail sein?", @@ -138,8 +138,8 @@ addMessages(array( 'ADMIN_TASK_LIST_BEG_TITLE' => "Es nehmen Mitglieder an der Bettel-Rallye dran teil.", // Subject lines - 'BEG_RALLYE_EN_NOTIFY' => "HINWEIS: Eine Bettel-Rallye ist am Laufen.", - 'BEG_RALLYE_DI_NOTIFY' => "HINWEIS: Eine Bettel-Rallye wurde gestoppt.", + 'BEG_RALLYE_ENABLE_NOTIFY' => "HINWEIS: Eine Bettel-Rallye ist am Laufen.", + 'BEG_RALLYE_DISABLE_NOTIFY' => "HINWEIS: Eine Bettel-Rallye wurde gestoppt.", )); // [EOF] diff --git a/inc/language/bonus_de.php b/inc/language/bonus_de.php index 84eaf36674..6f051154d9 100644 --- a/inc/language/bonus_de.php +++ b/inc/language/bonus_de.php @@ -110,8 +110,8 @@ addMessages(array( 'BONUS_MEMBER_TOTAL' => "Gesamtbonus aller teilnehmenden Mitglieder", 'ADMIN_BONUS_RALLYE_DEACTIVATED' => "Aktiv-Rallye deaktiviert.", 'ADMIN_BONUS_RALLYE_NOTIFTICATIONS' => "Benachrichtigungen per Mail über Bonus-Rallye", - 'ADMIN_BONUS_RALLYE_EN_NOTIFY' => "Sollen die Mitglieder bei Aktivierung benachtichtigt werden?", - 'ADMIN_BONUS_RALLYE_DI_NOTIFY' => "Sollen die Mitglieder bei Deaktivierung benachtichtigt werden?", + 'ADMIN_BONUS_RALLYE_ENABLE_NOTIFY' => "Sollen die Mitglieder bei Aktivierung benachtichtigt werden?", + 'ADMIN_BONUS_RALLYE_DISABLE_NOTIFY' => "Sollen die Mitglieder bei Deaktivierung benachtichtigt werden?", 'ADMIN_BONUS_RALLYE_NOTIFY_POINTS' => "Bonus-Mail mit Anzahl {?POINTS?} aussenden, wenn Bonus-Rallye aktiviert wurde.
(0 = Unvergütete Benachrichtigung aussenden)
", 'ADMIN_BONUS_RALLYE_NEW_MEMBER_NOTIFY' => "Sollen neue Mitglieder mit selber Mail über eine laufende Bonus-Rallye benachrichtigt werden?", 'ADMIN_BONUS_RALLYE_NOTIFY_WAIT' => "Wie lange soll die Wartezeit der Bonus-Mail sein?", @@ -134,8 +134,8 @@ addMessages(array( 'MEMBER_MAIL_BONUS_DETAILS_TITLE' => "Details zur Bonusmail %s:", // Subject lines - 'BONUS_RALLYE_DI_NOTIFY' => "HINWEIS: Aktiv-Rallye gestoppt.", - 'BONUS_RALLYE_EN_NOTIFY' => "HINWEIS: Aktiv-Rallye ist am Laufen.", + 'BONUS_RALLYE_DISABLE_NOTIFY' => "HINWEIS: Aktiv-Rallye gestoppt.", + 'BONUS_RALLYE_ENABLE_NOTIFY' => "HINWEIS: Aktiv-Rallye ist am Laufen.", )); // [EOF] diff --git a/inc/language/de.php b/inc/language/de.php index 9c261f7db3..220016b421 100644 --- a/inc/language/de.php +++ b/inc/language/de.php @@ -316,7 +316,7 @@ addMessages(array( 'LIFE_WEEKS' => "Woche(n)", 'LIFE_MONTHS' => "Monat(e)", 'LIFE_YEARS' => "Jahr(e)", - 'MODULE_MEM_ONLY' => "Auf das ausgewählte Modul %s dürfen nur eingeloggte Mitglieder zugreifen.", + 'MODULE_MEMBER_ONLY' => "Auf das ausgewählte Modul %s dürfen nur eingeloggte Mitglieder zugreifen.", 'MEMBER_404_ACTION' => "Das Mitgliedsaktionsmodul %s ist nicht auffindbar.", 'USERNAME_GUEST' => "Gast", 'USERNAME_INSTALLER' => "Installation", @@ -622,8 +622,8 @@ addMessages(array( 'KBYTES' => "KBytes", 'DEFAULT_SUBJECT_LINE' => "Klick-Mail von {?MAIN_TITLE?}", 'MEBER_UPDATE_PWD_WRONG' => "Sie haben das falsche Passwort eingegeben! Bitte nochmal versuchen.", - 'ADMIN_MEM_NO_CATS_1' => "Das Mitglied ", - 'ADMIN_MEM_NO_CATS_2' => " hat keine Kategorien ausgewählt.", + 'ADMIN_MEMBER_NO_CATS_1' => "Das Mitglied ", + 'ADMIN_MEMBER_NO_CATS_2' => " hat keine Kategorien ausgewählt.", 'USER_ID' => "Mitglied", 'UNCONFIRMED_LINKS' => "Unbestätigte Mails", 'ADMIN_MEMBER_LINKS' => "Das Mitglied %s hat alle seine Mails bestätigt.", diff --git a/inc/libs/rallye_functions.php b/inc/libs/rallye_functions.php index c8662e6dc7..acb09444c5 100644 --- a/inc/libs/rallye_functions.php +++ b/inc/libs/rallye_functions.php @@ -51,7 +51,13 @@ function autostartReferalRallyes ($result) { SQL_FREERESULT($result); // Set notified to Y - SQL_QUERY_ESC("UPDATE `{?_MYSQL_PREFIX?}_rallye_data` SET `notified`='Y' WHERE `id`=%s LIMIT 1", + SQL_QUERY_ESC("UPDATE + `{?_MYSQL_PREFIX?}_rallye_data` +SET + `notified`='Y' +WHERE + `id`=%s +LIMIT 1", array(bigintval($id)), __FUNCTION__, __LINE__); // Transfer all neccessary data to the $content array @@ -70,7 +76,14 @@ function autostartReferalRallyes ($result) { $content['prices'] = addReferalRallyePrices($id); // Query all users - $result_user = SQL_QUERY("SELECT `userid` FROM `{?_MYSQL_PREFIX?}_user_data` WHERE `status`='CONFIRMED' ORDER BY `userid` ASC", __FUNCTION__, __LINE__); + $result_user = SQL_QUERY("SELECT + `userid` +FROM + `{?_MYSQL_PREFIX?}_user_data` +WHERE + `status`='CONFIRMED' +ORDER BY + `userid` ASC", __FUNCTION__, __LINE__); // Let's begin with the userids... while ($row = SQL_FETCHARRAY($result_user)) { @@ -84,7 +97,14 @@ function autostartReferalRallyes ($result) { if (empty($cnt)) $cnt = '0'; // Added prevent some unknown troubles... :-? // Check if line is already included... - $result_ref = SQL_QUERY_ESC("SELECT `id` FROM `{?_MYSQL_PREFIX?}_rallye_users` WHERE `rallye_id`=%s AND `userid`=%s LIMIT 1", + $result_ref = SQL_QUERY_ESC("SELECT + `id` +FROM + `{?_MYSQL_PREFIX?}_rallye_users` +WHERE + `rallye_id`=%s AND + `userid`=%s +LIMIT 1", array(bigintval($id), bigintval($content['userid'])), __FUNCTION__, __LINE__); if (SQL_NUMROWS($result_ref) == 0) { // Free memory @@ -104,8 +124,8 @@ WHERE d.max_mails > 0 AND d.mails_confirmed >= {?ref_payout?} AND p.ref_depth=1 AND - p.points > 0 - AND d.userid=%s", + p.points > 0 AND + d.userid=%s", array(bigintval($content['userid'])), __FUNCTION__, __LINE__); // Get points @@ -117,8 +137,11 @@ WHERE if (empty($cpoints)) $cpoints = '0.00000'; // Add info line - SQL_QUERY_ESC("INSERT INTO `{?_MYSQL_PREFIX?}_rallye_users` (`rallye_id`, `userid`, `refs`, `curr_points`) -VALUES (%s, %s, %s, %s)", + SQL_QUERY_ESC("INSERT INTO + `{?_MYSQL_PREFIX?}_rallye_users` +(`rallye_id`, `userid`, `refs`, `curr_points`) + VALUES +(%s, %s, %s, %s)", array( bigintval($id), bigintval($content['userid']), @@ -151,10 +174,10 @@ VALUES (%s, %s, %s, %s)", } // -function addReferalRallyePrices ($rallye, $mode='email') { +function addReferalRallyePrices ($rallye, $mode = 'email') { // Output mode switch($mode) { - case 'email': $mode = "\n"; break; + case 'email': $mode = "\n"; break; case 'html' : $mode = "
\n"; break; } // END - switch @@ -172,7 +195,8 @@ ORDER BY // Entries found? if (SQL_NUMROWS($result_prices) > 0) { // Load prices - if ($mode == "\n") $prices = "{--RALLYE_MEMBER_PRICES_ADDED--}:".$mode."------------------------------".$mode; + if ($mode == "\n") $prices = '{--RALLYE_MEMBER_PRICES_ADDED--}:' . $mode . '------------------------------' . $mode; + $prices = ''; while ($content = SQL_FETCHARRAY($result_prices)) { $prices .= $content['price_level']. '{--RALLYE_PRICE--}: '; @@ -200,11 +224,11 @@ ORDER BY // function addReferalRallyeTopUsers ($rallye, $default=0) { + // Init variables + $min_users = 0; $min_prices = 0; + // First check how many prices are set - $result = SQL_QUERY_ESC("SELECT `id` FROM `{?_MYSQL_PREFIX?}_rallye_prices` WHERE `rallye_id`=%s ORDER BY price_level", - array(bigintval($rallye)), __FUNCTION__, __LINE__); - $prices = SQL_NUMROWS($result); - SQL_FREERESULT($result); + $prices = countSumTotalData($rallye, 'rallye_prices', 'id', 'rallye_id', true); // And load only limited users $result = SQL_QUERY_ESC("SELECT @@ -220,18 +244,20 @@ LEFT JOIN ON u.rallye_id=rd.id WHERE - u.`rallye_id`=%s AND r.counter > 0 + u.`rallye_id`=%s AND + r.counter > 0 ORDER BY u.refs DESC", array(bigintval($rallye)), __FUNCTION__, __LINE__); // Load users $DATA = array( - 'userid' => array(), - 'ref' => array(), - 'cpoints' => array() + 'userid' => array(), + 'ref' => array(), + 'cpoints' => array() ); + // Load all users while ($content = SQL_FETCHARRAY($result)) { // Get current refs $cnt = getReferalRallyeRefsCount($content['userid'], $content['refs']); @@ -284,37 +310,42 @@ LIMIT 1", array_pk_sort($DATA, array('ref', 'cpoints'), 0, 1, true); // Generate table - $OUT = loadTemplate('guest_rallye_header', true); + $OUT = ''; $SW = 2; for ($idx = '0'; $idx < $prices; $idx++) { if (empty($DATA['userid'][$idx])) $DATA['userid'][$idx] = '---'; if (empty($DATA['ref'][$idx])) $DATA['ref'][$idx] = '---'; - // Add row - $OUT .= " - ".($idx+1).". - "; - if (($DATA['userid'][$idx] == $default) && ($default > 0)) $OUT .= ''; - $OUT .= $DATA['userid'][$idx]; - if (($DATA['userid'][$idx] == $default) && ($default > 0)) $OUT .= ''; - $OUT .= " - "; - if (($DATA['userid'][$idx] == $default) && ($default > 0)) $OUT .= ''; - $OUT .= $DATA['ref'][$idx]; - if (($DATA['userid'][$idx] == $default) && ($default > 0)) $OUT .= ''; - $OUT .= " -\n"; + + // Prepare marking of default (maybe current user's) id + $start = ''; $end = ''; + if (($DATA['userid'][$idx] == $default) && ($default > 0)) { + $start = ''; + $end = ''; + } // END - if + + // Prepare content + $content = array( + 'sw' => $SW, + 'idx' => ($idx + 1), + 'start' => $start, + 'end' => $end, + 'userid' => $DATA['userid'][$idx], + 'ref' => $DATA['ref'][$idx], + 'info' => '' + ); + + // Load row template and switch color + $OUT .= loadTemplate('guest_rallye_row', true, $content); $SW = 3 - $SW; } // END - for // Add min_prices/users + $content['rows'] = $OUT; $content['min_prices'] = bigintval($min_prices); $content['min_users'] = bigintval($min_users); - // Add footer - $OUT .= loadTemplate('guest_rallye_footer', true, $content); - // And finnally return the output - return $OUT; + return loadTemplate('guest_rallye', true, $content); } // Run this function only when a new member has confirmed his email address! @@ -323,7 +354,7 @@ function addUserToReferalRallye ($userid, $content = array()) { // Updated extension? if (isExtensionInstalledAndNewer('rallye', '0.2.0')) { - $add .= ", `min_users`, `min_prices`"; + $add .= ', `min_users`, `min_prices`'; } // END - if // Check for an auto-add rallye @@ -374,7 +405,14 @@ LIMIT 1", __FUNCTION__, __LINE__); } // END - if // Check if line is already included... - $result = SQL_QUERY_ESC("SELECT `id` FROM `{?_MYSQL_PREFIX?}_rallye_users` WHERE `rallye_id`=%s AND `userid`=%s LIMIT 1", + $result = SQL_QUERY_ESC("SELECT + `id` +FROM + `{?_MYSQL_PREFIX?}_rallye_users` +WHERE + `rallye_id`=%s AND + `userid`=%s +LIMIT 1", array( bigintval($id), bigintval($userid) @@ -383,8 +421,11 @@ LIMIT 1", __FUNCTION__, __LINE__); // Is this user added? if (SQL_NUMROWS($result) < 1) { // Add userid and his ref count to table - SQL_QUERY_ESC("INSERT INTO `{?_MYSQL_PREFIX?}_rallye_users` (`rallye_id`, `userid`, `refs`) -VALUES ('%s','%s',0)", + SQL_QUERY_ESC("INSERT INTO + `{?_MYSQL_PREFIX?}_rallye_users` +(`rallye_id`, `userid`, `refs`) + VALUES +(%s,%s,0)", array( bigintval($id), bigintval($userid) @@ -410,7 +451,8 @@ function markReferalRallyesAsExpired ($result) { $prices = getArrayFromReferalRallyeUsers($id); // Init array - $DATA = array(); $cnt = '0'; + $DATA = array(); + $cnt = '0'; $users = array(); $DATA['title'] = $title; $DATA['start'] = generateDateTime($start, 1); @@ -422,17 +464,8 @@ function markReferalRallyesAsExpired ($result) { foreach($prices['userid'] as $key => $userid) { // Check status // active = 1: account is still confirmed - // active = '0': account is deleted or locked - $result = SQL_QUERY_ESC("SELECT - COUNT(`userid`) AS active -FROM - `{?_MYSQL_PREFIX?}_user_data` -WHERE - `userid`=%s AND `status`='CONFIRMED' -LIMIT 1", - array(bigintval($userid)), __FUNCTION__, __LINE__); - list($active) = SQL_FETCHROW($result); - SQL_FREERESULT($result); + // active = 0: account is deleted or locked + $active = countSumTotalData($DATA['userid'][$idx], 'user_data', 'userid', 'userid', true, " AND `status`='CONFIRMED'"); $prices['active'][$key] = $active; @@ -531,8 +564,20 @@ function getReferalRallyeUserDataFromArray ($userIds) { $ret = ''; // Load users - $result = SQL_QUERY_ESC("SELECT `userid`, `gender`, `surname`, `family`, `email` FROM `{?_MYSQL_PREFIX?}_user_data` WHERE `userid` IN(%s) AND `status`='CONFIRMED' ORDER BY `userid` ASC LIMIT %s", - array($userid_string, count($userIds)), __FUNCTION__, __LINE__); + $result = SQL_QUERY_ESC("SELECT + `userid`, `gender`, `surname`, `family`, `email` +FROM + `{?_MYSQL_PREFIX?}_user_data` +WHERE + `userid` IN(%s) AND + `status`='CONFIRMED' +ORDER BY + `userid` ASC +LIMIT %s", + array( + $userid_string, + count($userIds) + ), __FUNCTION__, __LINE__); while ($content = SQL_FETCHARRAY($result)) { // Construct the message masked and add it $ret .= sprintf("%s %s %s (%s) - %s\n", @@ -558,8 +603,15 @@ function getArrayFromReferalRallyePrices ($rallye) { ); // Load prices - $result = SQL_QUERY_ESC("SELECT price_level, points, info FROM `{?_MYSQL_PREFIX?}_rallye_prices` WHERE `rallye_id`=%s ORDER BY price_level", - array(bigintval($rallye)), __FUNCTION__, __LINE__); + $result = SQL_QUERY_ESC("SELECT + `price_level`, `points`, `info` +FROM + `{?_MYSQL_PREFIX?}_rallye_prices` +WHERE + `rallye_id`=%s +ORDER BY + `price_level` ASC", + array(bigintval($rallye)), __FUNCTION__, __LINE__); // Transfer elements while ($content = SQL_FETCHARRAY($result)) { @@ -582,7 +634,7 @@ function getArrayFromReferalRallyeUsers ($rallye) { // Init multi array $users = array( - 'userid' => array(), + 'userid' => array(), 'ref' => array(), 'cpoints' => array(), ); @@ -623,7 +675,7 @@ LIMIT 1", if (empty($refpoints)) $refpoints = '0'; // Store calculated new refs to array - $users['userid'][] = $content['userid']; + $users['userid'][] = $content['userid']; $users['ref'][] = abs($cnt - $content['refs']); $users['cpoints'][] = $refpoints - $content['curr_points']; } // END - while @@ -632,7 +684,7 @@ LIMIT 1", SQL_FREERESULT($result_user); // Sort array for refs (descending) - array_pk_sort($users, array("ref", "cpoints"), 0, 1, true); + array_pk_sort($users, array('ref', 'cpoints'), 0, 1, true); // Load prices array (!) $prices = getArrayFromReferalRallyePrices($rallye); @@ -653,7 +705,7 @@ LIMIT 1", return $prices; } -// +// @TODO This function does not load min_users, min_prices, please encapsulate loading rallye data with e.g. getRallyeDataFromId() function addReferalRallyeWinners ($rallye, $default=0) { // First check how many prices are set $result_prices = SQL_QUERY_ESC("SELECT `id` FROM `{?_MYSQL_PREFIX?}_rallye_prices` WHERE `rallye_id`=%s ORDER BY `price_level` ASC", @@ -665,12 +717,11 @@ function addReferalRallyeWinners ($rallye, $default=0) { $DATA = getArrayFromReferalRallyeUsers($rallye); // Generate table - $OUT = loadTemplate('guest_rallye_expired_header', true); - $SW = 2; + $OUT = ''; $SW = 2; for ($idx = '0'; $idx < $prices; $idx++) { // Check status // active = 1: account is still confirmed - // active = '0': account is deleted or locked + // active = 0: account is deleted or locked $active = countSumTotalData($DATA['userid'][$idx], 'user_data', 'userid', 'userid', true, " AND `status`='CONFIRMED'"); if (empty($DATA['userid'][$idx])) $DATA['userid'][$idx] = '---'; @@ -688,43 +739,51 @@ function addReferalRallyeWinners ($rallye, $default=0) { $DATA['infos'][$idx] = $DATA['points'][$idx] . ' {?POINTS?}'; } - // Add row - $add = ''; - $OUT .= " - ".($idx+1).". - "; - if (($DATA['userid'][$idx] == $default) && ($default > 0)) $OUT .= ''; - $OUT .= $DATA['userid'][$idx]; - if (($DATA['userid'][$idx] == $default) && ($default > 0)) $OUT .= ''; - $OUT .= " - "; - if (($DATA['userid'][$idx] == $default) && ($default > 0)) $OUT .= ''; - $OUT .= $DATA['ref'][$idx]; - if (($DATA['userid'][$idx] == $default) && ($default > 0)) $OUT .= ''; - $OUT .= " - "; - if (($DATA['userid'][$idx] == $default) && ($default > 0)) $OUT .= ''; - $OUT .= $DATA['infos'][$idx]; - if (($DATA['userid'][$idx] == $default) && ($default > 0)) $OUT .= ''; - $OUT .= " -\n"; + // Prepare marking of default (maybe current user's) id + $start = ''; $end = ''; + if (($DATA['userid'][$idx] == $default) && ($default > 0)) { + $start = ''; + $end = ''; + } // END - if + + // Prepare content + $content = array( + 'sw' => $SW, + 'idx' => ($idx + 1), + 'userid' => $DATA['userid'][$idx], + 'ref' => $DATA['ref'][$idx], + 'infos' => $DATA['infos'][$idx], + 'start' => $start, + 'end' => $end + ); + + // Load row template + $OUT .= loadTemplate('guest_rallye_row', true, $content); $SW = 3 - $SW; } // END - for - // Add footer - $OUT .= loadTemplate('guest_rallye_expired_footer', true); + // Prepare content + $content = array( + 'rows' => $OUT, + 'min_users' => '???', + 'min_prices' => '???' + ); - // And finnally return the output - return $OUT; + // Load main template and finnally return the output + return loadTemplate('guest_rallye', true, $content); } // function purgeExpiredReferalRallyes () { // Check for expired rallyes $EXPIRE = 3; // @TODO The hard-coded value... - $result_rallye = SQL_QUERY_ESC("SELECT id, title, start_time, end_time -FROM `{?_MYSQL_PREFIX?}_rallye_data` -WHERE end_time <= (UNIX_TIMESTAMP() - {?ONE_DAY?} - %s) AND expired='Y'", + $result_rallye = SQL_QUERY_ESC("SELECT + `id`, `title`, `start_time`, `end_time` +FROM + `{?_MYSQL_PREFIX?}_rallye_data` +WHERE + `end_time` <= (UNIX_TIMESTAMP() - {?ONE_DAY?} - %s) AND + `expired`='Y'", array($EXPIRE), __FUNCTION__, __LINE__); if (SQL_NUMROWS($result_rallye) > 0) { diff --git a/inc/libs/register_functions.php b/inc/libs/register_functions.php index 9218d5e93d..211f984653 100644 --- a/inc/libs/register_functions.php +++ b/inc/libs/register_functions.php @@ -310,8 +310,8 @@ function doRegistration () { // First comes first: begging rallye if (isExtensionInstalledAndNewer('beg', '0.1.7')) { // Okay, shall I disable now? - if (getConfig('beg_new_mem_notify') != 'Y') { - $GLOBALS['register_sql_columns'] .= ', `beg_ral_notify`, `beg_ral_en_notify`'; + if (getConfig('beg_new_member_notify') != 'Y') { + $GLOBALS['register_sql_columns'] .= ', `beg_ral_notify`, `beg_ral_enable_notify`'; $GLOBALS['register_sql_data'] .= ', UNIX_TIMESTAMP(), UNIX_TIMESTAMP()'; } // END - if } // END - if @@ -319,8 +319,8 @@ function doRegistration () { // Second: active rallye if (isExtensionInstalledAndNewer('bonus', '0.7.7')) { // Okay, shall I disable now? - if (getConfig('bonus_new_mem_notify') != 'Y') { - $GLOBALS['register_sql_columns'] .= ', `bonus_ral_notify`, `bonus_ral_en_notify`'; + if (getConfig('bonus_new_member_notify') != 'Y') { + $GLOBALS['register_sql_columns'] .= ', `bonus_ral_notify`, `bonus_ral_enable_notify`'; $GLOBALS['register_sql_data'] .= ', UNIX_TIMESTAMP(), UNIX_TIMESTAMP()'; } // END - if } // END - if diff --git a/inc/libs/sponsor_functions.php b/inc/libs/sponsor_functions.php index 983a46b968..180086fc8c 100644 --- a/inc/libs/sponsor_functions.php +++ b/inc/libs/sponsor_functions.php @@ -434,7 +434,7 @@ function saveSponsorData ($postData, $content) { $sql = substr($sql, 0, -1); // Add SQL tail data - $sql .= " WHERE `id`='%s' AND password='%s' LIMIT 1"; + $sql .= " WHERE `id`=%s AND password='%s' LIMIT 1"; $DATA[] = bigintval(getSession('sponsorid')); $DATA[] = getSession('sponsorpass'); @@ -481,22 +481,23 @@ function saveSponsorData ($postData, $content) { $content['new_data'] = $postData; // Translate some data - if (isset($content['gender'])) $content['gender'] = translateGender($content['gender']); - if (isset($content['new_data']['gender'])) $content['new_data']['gender'] = translateGender($content['new_data']['gender']); - if (isset($content['receive_warnings'])) $content['new_data']['receive'] = translateYesNo($content['new_data']['receive_warnings']); - if (isset($content['warning_interval'])) $content['new_data']['interval'] = createFancyTime($content['new_data']['warning_interval']); + if (isset($content['gender'])) $content['gender'] = translateGender($content['gender']); + if (isset($content['new_data']['gender'])) $content['new_data']['gender'] = translateGender($content['new_data']['gender']); + if (isset($content['receive_warnings'])) $content['new_data']['receive'] = translateYesNo($content['new_data']['receive_warnings']); + if (isset($content['warning_interval'])) $content['new_data']['interval'] = createFancyTime($content['new_data']['warning_interval']); // Send email to admins sendAdminNotification($subj, $templ, $content); // Shall we send mail to the sponsor's new email address? if ($content['receive_warnings'] == 'Y') { - // Okay send email with confirmation link to new address and with no confirmation link - // to the old address + /* + * Okay send email with confirmation link to new address and with no confirmation link + * to the old address. + */ // First to old address - switch (getWhat()) - { + switch (getWhat()) { case 'account': // Change account data $email_msg = loadEmailTemplate('sponsor_change_data', $content); sendEmail($content['email'], getMessage('SPONSOR_ACC_DATA_SUBJ'), $email_msg); @@ -508,7 +509,7 @@ function saveSponsorData ($postData, $content) { // Second mail goes to the new address $email_msg = loadEmailTemplate('sponsor_change_email', $content); sendEmail($content['email'], getMessage('SPONSOR_ACC_EMAIL_SUBJ'), $email_msg); - } + } // END - if break; case 'settings': // Change settings @@ -516,7 +517,7 @@ function saveSponsorData ($postData, $content) { $email_msg = loadEmailTemplate('sponsor_settings', $content); sendEmail($content['email'], getMessage('SPONSOR_SETTINGS_SUBJ'), $email_msg); break; - } + } // END - switch } // END - if } // END - if } // END - if diff --git a/inc/mails/beg_mails.php b/inc/mails/beg_mails.php index 4dcba25b0d..d81f507a1e 100644 --- a/inc/mails/beg_mails.php +++ b/inc/mails/beg_mails.php @@ -55,10 +55,10 @@ $sql = ''; $mode = ''; $sql = "SELECT `userid`, `email` FROM `{?_MYSQL_PREFIX?}_user_data` WHERE (`beg_ral_notify` "; switch (getConfig('beg_rallye')) { case 'Y': // Begging rallye is activated - if (getConfig('beg_ral_en_notify') == 'Y') { + if (getConfig('beg_ral_enable_notify') == 'Y') { // Okay, let's check for member accounts - $sql .= '= 0 OR (`beg_ral_notify` > 0 AND `beg_ral_en_notify` < `beg_ral_di_notify`)'; - $mode = 'en'; + $sql .= '= 0 OR (`beg_ral_notify` > 0 AND `beg_ral_enable_notify` < `beg_ral_disable_notify`)'; + $mode = 'enable'; } else { // Do not notify! $sql = ''; @@ -66,10 +66,10 @@ switch (getConfig('beg_rallye')) { break; case 'N': // Begging rallye is deactivated - if (getConfig('beg_ral_di_notify') == 'Y') { + if (getConfig('beg_ral_disable_notify') == 'Y') { // Okay, let's check for member accounts - $sql .= ' > 0 AND `beg_ral_di_notify` < `beg_ral_en_notify`'; - $mode = 'di'; + $sql .= ' > 0 AND `beg_ral_disable_notify` < `beg_ral_enable_notify`'; + $mode = 'disable'; } else { // Do not notify! $sql = ''; @@ -93,13 +93,13 @@ if (!empty($sql)) { $result_main = SQL_QUERY($sql, __FILE__, __LINE__); if (SQL_NUMROWS($result_main) > 0) { // Normal notification mails or bonus mails? - $sentBonusMails = ((getConfig('beg_notify_bonus') > 0) && ($mode == "en") && (isExtensionActive('bonus'))); + $sentBonusMails = ((getConfig('beg_notify_bonus') > 0) && ($mode == 'enable') && (isExtensionActive('bonus'))); // Generate subject line $subject = getMessage('BEG_RALLYE_'.strtoupper($mode).'_NOTIFY'); // Load message body for bonus mails - $message = loadEmailTemplate('beg_en_notify_body', '', '{PER}userid{PER}'); + $message = loadEmailTemplate('beg_enable_notify_body', '', '{PER}userid{PER}'); $receiver = ''; $userids = array(); // Okay lets notify all users! diff --git a/inc/mails/bonus_mails.php b/inc/mails/bonus_mails.php index a74c21a337..80c2558a52 100644 --- a/inc/mails/bonus_mails.php +++ b/inc/mails/bonus_mails.php @@ -56,10 +56,10 @@ $sql = "SELECT `userid`, `email` FROM `{?_MYSQL_PREFIX?}_user_data` WHERE (`bonu switch (getConfig('bonus_active')) { case 'Y': // Active rallye is activated - if (getConfig('bonus_en_notify') == 'Y') { + if (getConfig('bonus_enable_notify') == 'Y') { // Okay, let's check for member accounts - $sql .= '= 0 OR (`bonus_ral_notify` > 0 AND `bonus_ral_en_notify` < `bonus_ral_di_notify`)'; - $mode = 'en'; + $sql .= '= 0 OR (`bonus_ral_notify` > 0 AND `bonus_ral_enable_notify` < `bonus_ral_disable_notify`)'; + $mode = 'enable'; } else { // Do not notify! $sql = ''; @@ -67,10 +67,10 @@ switch (getConfig('bonus_active')) break; case 'N': // Active rallye is deactivated - if (getConfig('bonus_di_notify') == 'Y') { + if (getConfig('bonus_disable_notify') == 'Y') { // Okay, let's check for member accounts - $sql .= ' > 0 AND `bonus_ral_di_notify` < `bonus_ral_en_notify`'; - $mode = 'di'; + $sql .= ' > 0 AND `bonus_ral_disable_notify` < `bonus_ral_enable_notify`'; + $mode = 'disable'; } else { // Do not notify! $sql = ''; @@ -83,13 +83,13 @@ if (!empty($sql)) { $sql .= ") AND `status`='CONFIRMED' ORDER BY `last_online` ASC"; // Normal notification mails or bonus mails? - $sentBonusMails = ((getConfig('bonus_notify_points') > 0) && ($mode == "en") && (isExtensionActive('bonus'))); + $sentBonusMails = ((getConfig('bonus_notify_points') > 0) && ($mode == 'enable') && (isExtensionActive('bonus'))); // Generate subject line $subject = getMessage('BONUS_RALLYE_' . strtoupper($mode).'_NOTIFY'); // Load message body for bonus mails - $message = loadEmailTemplate('bonus_en_notify_body', '', '{PER}userid{PER}'); + $message = loadEmailTemplate('bonus_enable_notify_body', '', '{PER}userid{PER}'); $receiver = ''; $userids = array(); // Check for accounts to be notified diff --git a/inc/modules/admin/what-config_beg.php b/inc/modules/admin/what-config_beg.php index d164cc4d0a..7d9852c40a 100644 --- a/inc/modules/admin/what-config_beg.php +++ b/inc/modules/admin/what-config_beg.php @@ -55,9 +55,9 @@ if (isFormSent()) { adminSaveSettingsFromPostData(); // Remember new settings - setConfigEntry('beg_rallye' , postRequestParameter('beg_rallye')); - setConfigEntry('beg_ral_en_notify', postRequestParameter('beg_ral_en_notify')); - setConfigEntry('beg_ral_di_notify', postRequestParameter('beg_ral_di_notify')); + setConfigEntry('beg_rallye' , postRequestParameter('beg_rallye')); + setConfigEntry('beg_ral_enable_notify' , postRequestParameter('beg_ral_enable_notify')); + setConfigEntry('beg_ral_disable_notify', postRequestParameter('beg_ral_disable_notify')); } else { // Prepare constants for the template $content['points'] = translateComma(getConfig('beg_points') , false); @@ -69,19 +69,27 @@ if (isFormSent()) { $content['wait_selection'] = createTimeSelections(getConfig('beg_notify_wait') , 'beg_notify_wait' , 'ms' ); // Init all Y/N selections - foreach (array('rallye','activate','mode','ral_en_notify','ral_di_notify','new_mem_notify','include_own') as $entry) { + foreach (array('rallye', 'active', 'mode', 'ral_enable_notify', 'ral_disable_notify', 'new_member_notify', 'include_own') as $entry) { $content[$entry . '_y'] = ''; $content[$entry . '_n'] = ''; $content[$entry . '_' . strtolower(getConfig('beg_' . $entry))] = ' checked="checked"'; } // END - foreach - // Init elements - foreach (array('pay_mode_img','pay_mode_js','pay_mode_both','pay_mode_none') as $key) { - $content[$entry] = ''; + // Init elements for faker-mode + foreach (array('pay_mode_img','pay_mode_js','pay_mode_both','pay_mode_none') as $entry) { + $content[$entry] = ''; } // END - foreach - // Set pay mode - $content['pay_mode_'.strtolower(getConfig('beg_pay_mode'))] = ' selected="selected"'; + // Set default faker-mode + $content['pay_mode_' . strtolower(getConfig('beg_pay_mode'))] = ' selected="selected"'; + + // Init beg_mode elements + foreach (array('direct', 'ref') as $entry) { + $content['beg_mode_' . $entry] = ''; + } // END - foreach + + // Set default mode + $content['beg_mode_' . strtolower(getConfig('beg_mode'))] = ' checked="checked"'; // Member selection box $content['member_selection'] = addMemberSelectionBox(getConfig('beg_userid'), false, true, true, 'beg_userid'); diff --git a/inc/modules/admin/what-config_bonus.php b/inc/modules/admin/what-config_bonus.php index fc320e7d81..b6750d4f71 100644 --- a/inc/modules/admin/what-config_bonus.php +++ b/inc/modules/admin/what-config_bonus.php @@ -70,9 +70,9 @@ if (isFormSent()) { adminSaveSettingsFromPostData(); // Remember new settings - setConfigEntry('bonus_active' , postRequestParameter('bonus_active')); - setConfigEntry('bonus_en_notify', postRequestParameter('bonus_en_notify')); - setConfigEntry('bonus_di_notify', postRequestParameter('bonus_di_notify')); + setConfigEntry('bonus_active' , postRequestParameter('bonus_active')); + setConfigEntry('bonus_enable_notify' , postRequestParameter('bonus_enable_notify')); + setConfigEntry('bonus_disable_notify', postRequestParameter('bonus_disable_notify')); } else { // Prepare contants for the template $content['login'] = translateComma(getConfig('login_bonus') , false); @@ -119,7 +119,7 @@ if (isFormSent()) { $content['wait_selection'] = createTimeSelections(getConfig('bonus_notify_wait'), 'bonus_notify_wait', 'ms' ); // Init Y/N selections - foreach (array('active','login_yn','stats_yn','order_yn','ref_yn','click_yn','en_notify','di_notify','new_mem_notify','include_own') as $entry) { + foreach (array('active','login_yn','stats_yn','order_yn','ref_yn','click_yn','enable_notify','disable_notify','new_member_notify','include_own') as $entry) { $content[$entry . '_y'] = ''; $content[$entry . '_n'] = ''; $content[$entry . '_' . strtolower(getConfig('bonus_' . $entry))] = ' checked="checked"'; diff --git a/inc/modules/admin/what-list_user.php b/inc/modules/admin/what-list_user.php index c10ec781d7..dfc67aa21e 100644 --- a/inc/modules/admin/what-list_user.php +++ b/inc/modules/admin/what-list_user.php @@ -309,16 +309,11 @@ LIMIT 1", // Transfer data to array $content['sw'] = $SW; - $content['userid_link'] = generateUserProfileLink($content['userid']); - $content['gender'] = translateGender($content['gender']); $content['email'] = '[' . $content['email'] . ']'; $content['alinks'] = generateMemberAdminActionLinks($content['userid'], $content['status']); - $content['points'] = translateComma($content['points']); - $content['rate'] = translateComma($content['rate']); - $content['locked'] = translateComma(countSumTotalData($content['userid'], 'user_points', 'locked_points')); $content['lock_timestamp'] = generateDateTime($content['lock_timestamp'], 2); - $content['status'] = translateUserStatus($content['status']); $content['refs'] = countSumTotalData($content['userid'], 'user_refs', 'id', 'userid', true); + $content['locked'] = countSumTotalData($content['userid'], 'user_points', 'locked_points'); // If we have at least one referal, make it clickable to referal list if ($content['refs'] > 0) $content['refs'] = $base . '&what=list_refs&userid=' . $content['userid'] . '%}">' . $content['refs'] . ']'; diff --git a/inc/modules/login.php b/inc/modules/login.php index e03e32b547..a37888155c 100644 --- a/inc/modules/login.php +++ b/inc/modules/login.php @@ -42,7 +42,7 @@ if (!defined('__SECURITY')) { die(); } elseif (!isMember()) { $url = 'modules.php?module=index'; - if (checkModulePermissions('login') == 'mem_only') $url .= '&code=' . getCode('MODULE_MEM_ONLY') . '&mod=' . getModule(); + if (checkModulePermissions('login') == 'mem_only') $url .= '&code=' . getCode('MODULE_MEMBER_ONLY') . '&mod=' . getModule(); redirectToUrl($url); } // END - if diff --git a/inc/modules/member/what-refback.php b/inc/modules/member/what-refback.php index 70967c9f6a..fcfa29aefd 100644 --- a/inc/modules/member/what-refback.php +++ b/inc/modules/member/what-refback.php @@ -100,15 +100,14 @@ if ((isFormSent('edit')) && (isPostRequestParameterSet('id'))) { } // END - if // Load all referal levels -$result = SQL_QUERY_ESC("SELECT +$result = SQL_QUERY('SELECT r.level, r.percents FROM `{?_MYSQL_PREFIX?}_refdepths` AS r WHERE r.level > 0 ORDER BY - r.level ASC", - array(getMemberId()), __FILE__, __LINE__); + r.level ASC', __FILE__, __LINE__); // Are there some entries? (Shall be!) if (SQL_NUMROWS($result) > 0) { @@ -145,7 +144,7 @@ if (SQL_NUMROWS($result) > 0) { } // END - foreach // Remember the content - $content['rows'] = $rows; + $content['rows'] = $rows; // Load level template $OUT .= loadTemplate('member_refback_list_level', true, $content); diff --git a/inc/wrapper-functions.php b/inc/wrapper-functions.php index 89ebde56c9..5bc89a05f3 100644 --- a/inc/wrapper-functions.php +++ b/inc/wrapper-functions.php @@ -697,7 +697,7 @@ function addPointsDirectly ($subject, $userid, $points) { // Wrapper function to redirect from member-only modules to index function redirectToIndexMemberOnlyModule () { // Do the redirect here - redirectToUrl('modules.php?module=index&code=' . getCode('MODULE_MEM_ONLY') . '&mod=' . getModule()); + redirectToUrl('modules.php?module=index&code=' . getCode('MODULE_MEMBER_ONLY') . '&mod=' . getModule()); } // Wrapper function to redirect to current URL diff --git a/show_bonus.php b/show_bonus.php index fe6b508a80..a6eb714ec5 100644 --- a/show_bonus.php +++ b/show_bonus.php @@ -79,15 +79,18 @@ if ((getRequestParameter('userid') > 0) && (getRequestParameter('d') > 0) && (is // Valid type? if (!empty($t)) { // Check for data - $result = SQL_QUERY_ESC("SELECT d.gender, d.surname, d.family, b.level, b.points + $result = SQL_QUERY_ESC("SELECT + d.`gender`, d.`surname`, d.`family`, b.`level`, b.`points` FROM `{?_MYSQL_PREFIX?}_user_data` AS d -RIGHT JOIN +INNER JOIN `{?_MYSQL_PREFIX?}_bonus_turbo` AS b ON - d.userid=b.userid + d.`userid`=b.`userid` WHERE - d.`status`='CONFIRMED' AND d.userid=%s AND b.%s=%s + d.`status`='CONFIRMED' AND + d.`userid`=%s AND + b.`%s`=%s LIMIT 1", array( bigintval(getRequestParameter('userid')), @@ -101,8 +104,7 @@ LIMIT 1", $content = SQL_FETCHARRAY($result); // Prepare constants for the pre-template - $content['gender'] = translateGender($content['gender']); - $content['points'] = translateComma($content['points']); + // @TODO No more needed? $content['points'] = translateComma($content['points']); $content['mailid'] = bigintval(getRequestParameter('d')); $content['rows'] = addBonusRanks(bigintval(getRequestParameter('d')), $t, bigintval(getRequestParameter('userid'))); diff --git a/templates/de/html/admin/admin_config_beg.tpl b/templates/de/html/admin/admin_config_beg.tpl index dfadb8db78..26ce0d869d 100644 --- a/templates/de/html/admin/admin_config_beg.tpl +++ b/templates/de/html/admin/admin_config_beg.tpl @@ -59,10 +59,10 @@ - {--BEG_MODE_DIRECT--} + {--BEG_MODE_DIRECT--} - {--BEG_MODE_REF--} + {--BEG_MODE_REF--} @@ -125,20 +125,20 @@ - {--ADMIN_BEG_RAL_EN_NOTIFY--} + {--ADMIN_BEG_RAL_ENABLE_NOTIFY--} - {--YES--}
- {--NO--} + {--YES--}
+ {--NO--} - {--ADMIN_BEG_RAL_DI_NOTIFY--} + {--ADMIN_BEG_RAL_DISABLE_NOTIFY--} - {--YES--}
- {--NO--} + {--YES--}
+ {--NO--} @@ -146,8 +146,8 @@ {--ADMIN_BEG_NEW_MEMBER_NOTIFY--} - {--YES--}
- {--NO--} + {--YES--}
+ {--NO--} @@ -159,10 +159,10 @@ - + {--ADMIN_BEG_NOTIFY_WAIT--} - + $content[wait_selection] diff --git a/templates/de/html/admin/admin_config_bonus.tpl b/templates/de/html/admin/admin_config_bonus.tpl index d3fdcfea06..7eff97be46 100644 --- a/templates/de/html/admin/admin_config_bonus.tpl +++ b/templates/de/html/admin/admin_config_bonus.tpl @@ -180,20 +180,20 @@ - {--ADMIN_BONUS_RALLYE_EN_NOTIFY--} + {--ADMIN_BONUS_RALLYE_ENABLE_NOTIFY--} - {--YES--}
- {--NO--} + {--YES--}
+ {--NO--} - {--ADMIN_BONUS_RALLYE_DI_NOTIFY--} + {--ADMIN_BONUS_RALLYE_DISABLE_NOTIFY--} - {--YES--}
- {--NO--} + {--YES--}
+ {--NO--} @@ -201,8 +201,8 @@ {--ADMIN_BONUS_RALLYE_NEW_MEMBER_NOTIFY--} - {--YES--}
- {--NO--} + {--YES--}
+ {--NO--} diff --git a/templates/de/html/admin/admin_del_user.tpl b/templates/de/html/admin/admin_del_user.tpl index 906a7cd067..f8231c5ee4 100644 --- a/templates/de/html/admin/admin_del_user.tpl +++ b/templates/de/html/admin/admin_del_user.tpl @@ -1,22 +1,28 @@
+
$content[header]
+
$content[text]
+
$content[surname] $content[family] ]
+
+
+
diff --git a/templates/de/html/admin/admin_list_cats_404.tpl b/templates/de/html/admin/admin_list_cats_404.tpl index 9f636053c5..586cec2b80 100644 --- a/templates/de/html/admin/admin_list_cats_404.tpl +++ b/templates/de/html/admin/admin_list_cats_404.tpl @@ -1,7 +1,7 @@ diff --git a/templates/de/html/admin/admin_list_user_row.tpl b/templates/de/html/admin/admin_list_user_row.tpl index 25773796e8..29821d39d5 100644 --- a/templates/de/html/admin/admin_list_user_row.tpl +++ b/templates/de/html/admin/admin_list_user_row.tpl @@ -6,8 +6,8 @@ - - + + @@ -23,7 +23,7 @@ - + @@ -34,10 +34,10 @@ - - - - + + + + diff --git a/templates/de/html/admin/admin_lock_user.tpl b/templates/de/html/admin/admin_lock_user.tpl index 0c086e4f7b..afa48b4d43 100644 --- a/templates/de/html/admin/admin_lock_user.tpl +++ b/templates/de/html/admin/admin_lock_user.tpl @@ -11,11 +11,11 @@ - diff --git a/templates/de/html/guest/guest_rallye.tpl b/templates/de/html/guest/guest_rallye.tpl new file mode 100644 index 0000000000..04665ea694 --- /dev/null +++ b/templates/de/html/guest/guest_rallye.tpl @@ -0,0 +1,20 @@ +
+
- {--ADMIN_MEM_NO_CATS_1--}$content[userid]{--ADMIN_MEM_NO_CATS_2--} + {--ADMIN_MEMBER_NO_CATS_1--}$content[userid]{--ADMIN_MEMBER_NO_CATS_2--}
{--USER_NICKNAME--}:
$content[userid_link]$content[gender]{%pipe,generateUserProfileLink=$content[userid]%}{%pipe,translateGender=$content[gender]%} $content[surname] $content[family] $content[nickname]$content[email] $content[REMOTE_ADDR] $content[refid]$content[status]{%pipe,translateUserStatus=$content[status]%} $content[links]
{--TOTAL_REFERALS--}:
$content[points] {?POINTS?}$content[emails_sent]$content[rate]%$content[locked] {?POINTS?}{%pipe,translateComma=$content[points]%} {?POINTS?}{%pipe,translateComma=$content[emails_sent]%}{%pipe,translateComma=$content[rate]%}%{%pipe,translateComma=$content[locked]%} {?POINTS?} $content[refs]
- [ {%user,surname=$content[userid]%} {%user,surname=$content[userid]%} ({%user,status,translateUserStatus=$content[userid]) ] + [ {%user,surname=$content[userid]%} {%user,surname=$content[userid]%} ({%user,status,translateUserStatus=$content[userid]%}) ]
+
+ + + + + +$content[rows] + + + +
{--_RALLYE_PRICE--}{--_UID--}{--RALLYE_GUEST_REFS--}
+ diff --git a/templates/de/html/guest/guest_rallye_expired_footer.tpl b/templates/de/html/guest/guest_rallye_expired_footer.tpl index d6fa8b5891..11f5d85d80 100644 --- a/templates/de/html/guest/guest_rallye_expired_footer.tpl +++ b/templates/de/html/guest/guest_rallye_expired_footer.tpl @@ -1,7 +1 @@ - - - {--RALLYE_HAPPY_WINNERS--} - - - - + diff --git a/templates/de/html/guest/guest_rallye_expired_header.tpl b/templates/de/html/guest/guest_rallye_expired_header.tpl index feaa3830f2..11f5d85d80 100644 --- a/templates/de/html/guest/guest_rallye_expired_header.tpl +++ b/templates/de/html/guest/guest_rallye_expired_header.tpl @@ -1,8 +1 @@ -
- - - - - - - + diff --git a/templates/de/html/guest/guest_rallye_footer.tpl b/templates/de/html/guest/guest_rallye_footer.tpl index 4db0a89c06..11f5d85d80 100644 --- a/templates/de/html/guest/guest_rallye_footer.tpl +++ b/templates/de/html/guest/guest_rallye_footer.tpl @@ -1,11 +1 @@ - - - -
{--_RALLYE_PRICE--}{--_UID--}{--RALLYE_GUEST_REFS--}{--RALLYE_PRICE_IS--}
-
    -
  • Es werden nur aktive User gewertet.
  • -
  • {%pipe,determineReferalRallyeMinimumUsers=$content[min_users]%}
  • -
  • {%pipe,determineReferalRallyeMinimumPrices=$content[min_prices]%}
  • -
  • Der Rechtsweg ist ausgeschlossen.
  • -
-
+ diff --git a/templates/de/html/guest/guest_rallye_header.tpl b/templates/de/html/guest/guest_rallye_header.tpl index ab0682dea8..11f5d85d80 100644 --- a/templates/de/html/guest/guest_rallye_header.tpl +++ b/templates/de/html/guest/guest_rallye_header.tpl @@ -1,6 +1 @@ - - - - - - + diff --git a/templates/de/html/guest/guest_rallye_row.tpl b/templates/de/html/guest/guest_rallye_row.tpl new file mode 100644 index 0000000000..6931ab004d --- /dev/null +++ b/templates/de/html/guest/guest_rallye_row.tpl @@ -0,0 +1,6 @@ + + + + + + diff --git a/templates/de/html/show_bonus_msg.tpl b/templates/de/html/show_bonus_msg.tpl index 616e23e7c2..d774f05614 100644 --- a/templates/de/html/show_bonus_msg.tpl +++ b/templates/de/html/show_bonus_msg.tpl @@ -1,5 +1,5 @@
- {--HELLO--} $content[gender] $content[surname] $content[family]! + {--HELLO--} {%pipe,translateGender=$content[gender]%} $content[surname] $content[family]!
{%message,BONUS_SHOW_HEADER_LINE=$content[mailid]%}: -- 2.39.5
{--_RALLYE_PRICE--}{--_UID--}{--RALLYE_GUEST_REFS--}
$content[idx].$content[start].$content[userid].$content[end]$content[start].$content[ref].$content[end]$content[start].$content[infos].$content[end]