From: Roland Häder Date: Mon, 2 Aug 2010 18:10:20 +0000 (+0000) Subject: Duplicate message id GUEST_GENDER removed, column type TIMESTAMP in ext-sponsor, X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=80e58992300c82cf317ca2ed05efdeccb22ce202;p=mailer.git Duplicate message id GUEST_GENDER removed, column type TIMESTAMP in ext-sponsor, - Duplicate message id GUEST_GENDER removed and rewritten to GENDER - Database column type TIMESTAMP (VARCHAR(10) is very old) used in ext-sponsor - TODOs.txt updated --- diff --git a/DOCS/TODOs.txt b/DOCS/TODOs.txt index 87b0400e2e..9f954a2177 100644 --- a/DOCS/TODOs.txt +++ b/DOCS/TODOs.txt @@ -49,10 +49,10 @@ ./inc/functions.php:2255: // @TODO This is still very static, rewrite it somehow ./inc/gen_sql_patches.php:96:// @TODO Rewrite this to a filter ./inc/install-functions.php:59: // @TODO DEACTIVATED: changeDataInFile(getCachePath() . 'config-local.php', 'OUTPUT-MODE', "setConfigEntry('OUTPUT_MODE', '", "');", postRequestParameter('omode'), 0); -./inc/language/de.php:1117:// @TODO Rewrite these two constants -./inc/language/de.php:1132:// @TODO Rewrite these three constants +./inc/language/de.php:1116:// @TODO Rewrite these two constants +./inc/language/de.php:1131:// @TODO Rewrite these three constants ./inc/language/de.php:300: // @TODO Following two are unused? -./inc/language/de.php:811:// @TODO Are these constants longer used? +./inc/language/de.php:810:// @TODO Are these constants longer used? ./inc/language-functions.php:234: // @TODO These are all valid languages, again hard-coded ./inc/language-functions.php:46:// @TODO Rewrite all language constants to this function. ./inc/language/rallye_de.php:13: * @TODO Naming convention not applied for language strings * @@ -73,6 +73,8 @@ ./inc/libs/register_functions.php:292: // @TODO Rewrite these all to a single filter ./inc/libs/register_functions.php:362: // @TODO Rewrite this to a filter ./inc/libs/register_functions.php:369: // @TODO Wether the registration bonus should only be added to user directly or through referal system should be configurable +./inc/libs/sponsor_functions.php:162: // @TODO Rewrite this to API function +./inc/libs/sponsor_functions.php:433: // @TODO Rewrite this to API function ./inc/libs/surfbar_functions.php:1540: // @TODO This can be somehow rewritten ./inc/libs/surfbar_functions.php:712:// @TODO Can't we use our new expression language instead of this ugly code? ./inc/libs/surfbar_functions.php:953: // @TODO Invalid salt should be refused @@ -81,9 +83,9 @@ ./inc/libs/theme_functions.php:95: // @TODO Can't this be rewritten to an API function? ./inc/libs/user_functions.php:146: // @TODO These two constants are no longer used, maybe we reactivate this code? ./inc/libs/user_functions.php:234:// @TODO Double-check configuration entry here -./inc/libs/user_functions.php:326: // @TODO Make this filter working: $ADDON = runFilterChain('post_login_update', $content); -./inc/libs/user_functions.php:346: // @TODO Make this filter working: $url = runFilterChain('do_login', array('content' => $content, 'addon' => $ADDON)); -./inc/libs/user_functions.php:422: // @TODO We should try to rewrite this to fetchUserData() somehow +./inc/libs/user_functions.php:327: // @TODO Make this filter working: $ADDON = runFilterChain('post_login_update', $content); +./inc/libs/user_functions.php:347: // @TODO Make this filter working: $url = runFilterChain('do_login', array('content' => $content, 'addon' => $ADDON)); +./inc/libs/user_functions.php:423: // @TODO We should try to rewrite this to fetchUserData() somehow ./inc/libs/yoomedia_functions.php:116: $response = YOOMEDIA_QUERY_API('out_textmail.php', true); // @TODO Ask Yoo!Media for test script ./inc/load_config.php:77: // @TODO Rewrite them to avoid this else block ./inc/loader/load_cache-extension.php:13: * @TODO Rewrite this whole file to load_cache-extensions.php * @@ -146,7 +148,7 @@ ./inc/modules/admin/what-usr_online.php:51: // @TODO Add a filter for sponsor ./inc/modules/guest/what-beg.php:53:// @TODO No more needed? define('__BEG_UID_TIMEOUT', createFancyTime(getConfig('beg_userid_timeout'))); ./inc/modules/guest/what-confirm.php:111: // @TODO Try to rewrite the following unset() -./inc/modules/guest/what-login.php:114: // @TODO Move this HTML code into a template +./inc/modules/guest/what-login.php:123: // @TODO Move this HTML code into a template ./inc/modules/guest/what-mediadata.php:183:// @TODO Rewrite all these if-blocks to filters ./inc/modules/guest/what-mediadata.php:70: // @TODO Find a better formular than this one ./inc/modules/guest/what-rallyes.php:91: // @TODO Reactivate this: $content['admin'] = '' . $login . ''; diff --git a/inc/extensions/ext-network.php b/inc/extensions/ext-network.php index 34929498f9..4fb25ee3af 100644 --- a/inc/extensions/ext-network.php +++ b/inc/extensions/ext-network.php @@ -207,7 +207,7 @@ PRIMARY KEY (`network_cache_id`) `network_id` BIGINT(20) UNSIGNED NOT NULL DEFAULT 0, `network_type_id` BIGINT(20) UNSIGNED NOT NULL DEFAULT 0, `network_reload_lock` SMALLINT(5) UNSIGNED NOT NULL DEFAULT 0, -`network_inserted` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP(), +`network_inserted` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP, UNIQUE `provider_type` (`network_id`,`network_type_id`), PRIMARY KEY (`network_reload_id`) ) TYPE={?_TABLE_TYPE?} COMMENT='Reload locks'"); diff --git a/inc/extensions/ext-sponsor.php b/inc/extensions/ext-sponsor.php index 581cf90c5a..ac6fc0fb20 100644 --- a/inc/extensions/ext-sponsor.php +++ b/inc/extensions/ext-sponsor.php @@ -83,9 +83,9 @@ switch (getExtensionMode()) { `url` VARCHAR(255) NOT NULL DEFAULT '', `password` VARCHAR(255) NOT NULL DEFAULT '', `remote_addr` VARCHAR(15) NOT NULL DEFAULT '0.0.0.0', -`sponsor_created` VARCHAR(10) NOT NULL DEFAULT 0, -`last_online` VARCHAR(10) NOT NULL DEFAULT 0, -`last_change` VARCHAR(10) NOT NULL DEFAULT 0, +`sponsor_created` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP, +`last_online` TIMESTAMP NOT NULL DEFAULT '0000-00-00 00:00', +`last_change` TIMESTAMP NOT NULL DEFAULT '0000-00-00 00:00', `status` ENUM('UNCONFIRMED','PENDING','CONFIRMED','LOCKED') NOT NULL DEFAULT 'UNCONFIRMED', `receive_warnings` ENUM('Y','N') NOT NULL DEFAULT 'Y', `warning_interval` BIGINT(20) UNSIGNED NOT NULL DEFAULT '".(getConfig('ONE_DAY')*7)."', @@ -113,8 +113,8 @@ PRIMARY KEY (`id`) `payment_id` BIGINT(20) UNSIGNED NOT NULL DEFAULT 0, `pay_count` BIGINT(20) UNSIGNED NOT NULL DEFAULT 0, `pay_status` ENUM('PENDING','PAYED','UNPAYED','DELETED') NOT NULL DEFAULT 'PENDING', -`pay_ordered` VARCHAR(10) NOT NULL DEFAULT 0, -`pay_done` VARCHAR(10) NOT NULL DEFAULT 0, +`pay_ordered` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP, +`pay_done` TIMESTAMP NOT NULL DEFAULT '0000-00-00 00:00', INDEX (`payment_id`), INDEX (`regid`), INDEX (`admin_id`), @@ -170,7 +170,7 @@ PRIMARY KEY (`id`) `admin_id` BIGINT(20) UNSIGNED NOT NULL DEFAULT 0, `ext_name` VARCHAR(255) NOT NULL DEFAULT 'sponsor', `is_active` ENUM('Y','N') NOT NULL DEFAULT 'N', -`stamp_added` VARCHAR(10) NOT NULL DEFAULT 0, +`stamp_added` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP, INDEX (`ext_name`), INDEX (`admin_id`), PRIMARY KEY (`id`) @@ -214,14 +214,15 @@ PRIMARY KEY (`id`) `sponsor_id` BIGINT(20) UNSIGNED NOT NULL DEFAULT 0, `admin_id` BIGINT(20) UNSIGNED NOT NULL DEFAULT 0, `campaign_name` VARCHAR(255) NOT NULL DEFAULT '', -`campaign_start` VARCHAR(10) NOT NULL DEFAULT 0, -`campaign_end` VARCHAR(10) NOT NULL DEFAULT 0, +`campaign_created` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP, +`campaign_start` TIMESTAMP NOT NULL DEFAULT '0000-00-00 00:00', +`campaign_end` TIMESTAMP NOT NULL DEFAULT '0000-00-00 00:00', `campaign_amount` FLOAT(20,5) UNSIGNED NOT NULL DEFAULT 0.00000, `campaign_expired` ENUM('Y','N') NOT NULL DEFAULT 'N', `campaign_locked` ENUM('Y','N') NOT NULL DEFAULT 'Y', -`campaign_ended` VARCHAR(10) NOT NULL DEFAULT 0, +`campaign_ended` TIMESTAMP NOT NULL DEFAULT '0000-00-00 00:00', `locked_reason` TINYTEXT, -`locked_timestamp` VARCHAR(10) NOT NULL DEFAULT 0, +`locked_timestamp` TIMESTAMP NOT NULL DEFAULT '0000-00-00 00:00', `status` ENUM('PENDING','ACTIVE','LOCKED') NOT NULL DEFAULT 'PENDING', INDEX (`admin_id`), INDEX (`sponsor_id`), @@ -302,7 +303,7 @@ PRIMARY KEY (`id`) // // Add default entries // - addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_sponsor_registry` (`ext_name`, `is_active`, `admin_id`, `stamp_added`) VALUES ('sponsor','N',".getCurrentAdminId().",UNIX_TIMESTAMP())"); + addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_sponsor_registry` (`ext_name`, `is_active`, `admin_id`, `stamp_added`) VALUES ('sponsor','N',".getCurrentAdminId().",NOW())"); addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_sponsor_action_convert` (`ext_name`, `conv_rate`, `conv_name`) VALUES ('sponsor','10','Mails')"); addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_sponsor_paytypes` (`pay_name`,`pay_min_count`,`pay_rate`,`pay_currency`) VALUES ('Standart-Paket', 5, 1000.00000, '€')"); addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_sponsor_paytypes` (`pay_name`,`pay_min_count`,`pay_rate`,`pay_currency`) VALUES ('Spar-Paket', 1, 200.00000, '€')"); diff --git a/inc/language/de.php b/inc/language/de.php index a905e24c22..99d0cc0998 100644 --- a/inc/language/de.php +++ b/inc/language/de.php @@ -318,7 +318,6 @@ addMessages(array( 'LAST_MODULE' => "Ihr zuletzt ausgewähltes Modul", 'MEMBER_EDIT_PROFILE' => "Profildaten ändern", 'GENDER' => "Geschlecht", - 'GUEST_GENDER' => "Geschlecht", 'GENDER_M' => "Herr", 'GENDER_F' => "Frau", 'GENDER_C' => ""Firma"", diff --git a/inc/libs/sponsor_functions.php b/inc/libs/sponsor_functions.php index faca46db85..07970d3a29 100644 --- a/inc/libs/sponsor_functions.php +++ b/inc/libs/sponsor_functions.php @@ -134,7 +134,7 @@ function handleSponsorRequest ($postData, $update=false, $messageArray=array(), $sql = "UPDATE `{?_MYSQL_PREFIX?}_sponsor_data` SET "; foreach ($DATA['keys'] as $k => $v) { $sql .= $v."='%s', "; - } + } // END - foreach // Remove last ", " from SQL string $sql = substr($sql, 0, -2)." WHERE `id`=%s LIMIT 1"; @@ -145,7 +145,6 @@ function handleSponsorRequest ($postData, $update=false, $messageArray=array(), $ret = 'updated'; } elseif (($ALREADY === false) || (($postData['force'] == 1) && (isAdmin()))) { // Add new sponsor, first add more data - $DATA['keys'][] = 'sponsor_created'; $DATA['values'][] = time(); $DATA['keys'][] = 'status'; if (($update === true) && (isAdmin()) && (getWhat() == 'add_sponsor')) { // Only allowed for admin @@ -160,6 +159,7 @@ function handleSponsorRequest ($postData, $update=false, $messageArray=array(), // Generate hash code $DATA['keys'][] = 'hash'; + // @TODO Rewrite this to API function $DATA['values'][] = md5(session_id().':'.$postData['email'].':'.detectRemoteAddr().':'.detectUserAgent().':'.time()); $DATA['keys'][] = 'remote_addr'; $DATA['values'][] = detectRemoteAddr(); @@ -362,7 +362,7 @@ function updateSponsorLogin () { SQL_QUERY_ESC("UPDATE `{?_MYSQL_PREFIX?}_sponsor_data` SET - `last_online`=UNIX_TIMESTAMP() + `last_online`=NOW() WHERE `id`=%s AND `password`='%s' @@ -430,14 +430,17 @@ function saveSponsorData ($postData, $content) { $sql .= " `status`='EMAIL', `hash`='%s',"; // Generate hash code - $HASH = md5(session_id().':'.$postData['email'].':'.detectRemoteAddr().':'.detectUserAgent().':'.time()); + // @TODO Rewrite this to API function + $HASH = md5(session_id() . ':' . $postData['email'] . ':' . detectRemoteAddr() . ':' . detectUserAgent() . ':' . time()); $DATA[] = $HASH; } // END - if } // END - if - // Remove last commata $sql = substr($sql, 0, -1); + // Add last_change + $sql .= ', `last_change`=NOW()'; + // Add SQL tail data $sql .= " WHERE `id`=%s AND `password`='%s' LIMIT 1"; $DATA[] = bigintval(getSession('sponsor_id')); diff --git a/inc/modules/admin/what-del_sponsor.php b/inc/modules/admin/what-del_sponsor.php index f54fd3141b..b7e6b0b95b 100644 --- a/inc/modules/admin/what-del_sponsor.php +++ b/inc/modules/admin/what-del_sponsor.php @@ -56,7 +56,6 @@ if (isGetRequestParameterSet('id')) { $content = SQL_FETCHARRAY($result); // Prepare data for the template - $content['gender'] = translateGender($content['gender']); $content['reason'] = secureString(postRequestParameter('reason')); // Prepare message and send it away diff --git a/inc/modules/admin/what-list_sponsor.php b/inc/modules/admin/what-list_sponsor.php index 864e6fe6fd..43cf12da70 100644 --- a/inc/modules/admin/what-list_sponsor.php +++ b/inc/modules/admin/what-list_sponsor.php @@ -50,7 +50,11 @@ if (isGetRequestParameterSet('id')) { $result = SQL_QUERY_ESC("SELECT `company`, `position`, `gender`, `surname`, `family`, `street_nr1`, `street_nr2`, `zip`, `city`, `country`, `phone`, `fax`, `cell`, `email`, `url`, `tax_ident`, - `status`, `sponsor_created`, `last_online`, `last_change`, `receive_warnings`, + `status`, + UNIX_TIMESTAMP(`sponsor_created`) AS `sponsor_created`, + UNIX_TIMESTAMP(`last_online`) AS `last_online`, + UNIX_TIMESTAMP(`last_change`) AS `last_change`, + `receive_warnings`, `points_amount`, `points_used`, `remote_addr`, `warning_interval`, `refid`, `ref_count` FROM `{?_MYSQL_PREFIX?}_sponsor_data` @@ -99,7 +103,9 @@ WHERE // Sponsor found so let's list all his referals $result = SQL_QUERY_ESC("SELECT `id`, `gender`, `surname`, `family`, `email`, `status`, - `sponsor_created`, `last_online`, `points_amount`, `points_used`, + UNIX_TIMESTAMP(`sponsor_created`) AS `sponsor_created`, + UNIX_TIMESTAMP(`last_online`) AS `last_online`, + `points_amount`, `points_used`, `remote_addr`, `ref_count` FROM `{?_MYSQL_PREFIX?}_sponsor_data` @@ -125,7 +131,9 @@ ORDER BY // List all sponsors $result_main = SQL_QUERY("SELECT `id`, `gender`, `surname`, `family`, `email`, `status`, - `sponsor_created`, `last_online`, `points_amount`, `points_used`, `remote_addr` + UNIX_TIMESTAMP(`sponsor_created`) AS `sponsor_created`, + UNIX_TIMESTAMP(`last_online`) AS `last_online`, + `points_amount`, `points_used`, `remote_addr` FROM `{?_MYSQL_PREFIX?}_sponsor_data` ORDER BY diff --git a/inc/modules/admin/what-unlock_sponsor.php b/inc/modules/admin/what-unlock_sponsor.php index f1ec7f1407..b750fae98e 100644 --- a/inc/modules/admin/what-unlock_sponsor.php +++ b/inc/modules/admin/what-unlock_sponsor.php @@ -59,7 +59,9 @@ if (isFormSent()) { // Load his personal data $result_main = SQL_QUERY_ESC("SELECT - `id`, `gender`, `surname`, `family`, `email`, `remote_addr`, `sponsor_created`, `points_amount`, `points_used`, `refid` + `id`, `gender`, `surname`, `family`, `email`, `remote_addr`, + UNIX_TIMESTAMP(`sponsor_created`) AS `sponsor_created`, + `points_amount`, `points_used`, `refid` FROM `{?_MYSQL_PREFIX?}_sponsor_data` WHERE @@ -78,8 +80,9 @@ LIMIT 1", // Check for open payments and close them $result = SQL_QUERY_ESC("SELECT - so.admin_id, so.pay_count, so.pay_ordered, so.pay_status, - sp.pay_name, sp.pay_rate, sp.pay_currency + so.admin_id, so.pay_count, + UNIX_TIMESTAMP(so.pay_ordered) AS `pay_ordered`, + so.pay_status, sp.pay_name, sp.pay_rate, sp.pay_currency FROM `{?_MYSQL_PREFIX?}_sponsor_orders` AS so LEFT JOIN @@ -193,7 +196,8 @@ LIMIT 1", // Begin listing of all pending sponsor accounts $result = SQL_QUERY("SELECT - `id`, `gender`, `surname`, `family`, `email`, `remote_addr`, `sponsor_created` + `id`, `gender`, `surname`, `family`, `email`, `remote_addr`, + UNIX_TIMESTAMP(`sponsor_created`) AS `sponsor_created` FROM `{?_MYSQL_PREFIX?}_sponsor_data` WHERE diff --git a/inc/modules/guest/what-sponsor_login.php b/inc/modules/guest/what-sponsor_login.php index 63439de1db..85c1595ec9 100644 --- a/inc/modules/guest/what-sponsor_login.php +++ b/inc/modules/guest/what-sponsor_login.php @@ -157,9 +157,15 @@ LIMIT 1", if (isFormSent()) { // Check email - $result = SQL_QUERY_ESC("SELECT id, hash, status, remote_addr, gender, surname, family, sponsor_created -FROM `{?_MYSQL_PREFIX?}_sponsor_data` -WHERE email='%s' AND (`status`='UNCONFIRMED' OR `status`='EMAIL') LIMIT 1", + $result = SQL_QUERY_ESC("SELECT + `id`, `hash`, `status`, `remote_addr`, `gender`, `surname`, `family`, + UNIX_TIMESTAMP(`sponsor_created`) AS `sponsor_created` +FROM + `{?_MYSQL_PREFIX?}_sponsor_data` +WHERE + `email`='%s' AND + (`status`='UNCONFIRMED' OR `status`='EMAIL') +LIMIT 1", array(postRequestParameter('email')), __FILE__, __LINE__); // Entry found? @@ -203,7 +209,8 @@ WHERE email='%s' AND (`status`='UNCONFIRMED' OR `status`='EMAIL') LIMIT 1", if (isFormSent()) { // Check email $result = SQL_QUERY_ESC("SELECT - `id`, `hash`, `remote_addr`, `gender`, `surname`, `family`, `sponsor_created` + `id`, `hash`, `remote_addr`, `gender`, `surname`, `family`, + UNIX_TIMESTAMP(`sponsor_created`) AS `sponsor_created` FROM `{?_MYSQL_PREFIX?}_sponsor_data` WHERE @@ -218,12 +225,9 @@ LIMIT 1", // Unconfirmed sponsor account found so let's load the requested data $DATA = SQL_FETCHARRAY($result); - // Translate some data - $DATA['gender'] = translateGender($DATA['gender']); - $DATA['sponsor_created'] = generateDateTime($DATA['sponsor_created']); - - // Generate password + // Generate password/translate some data $DATA['password'] = generatePassword(); + $DATA['sponsor_created'] = generateDateTime($DATA['sponsor_created']); // Prepare email and send it to the sponsor $message_sponsor = loadEmailTemplate('sponsor_lost', $DATA); diff --git a/templates/de/emails/admin/admin_sponsor_change_data.tpl b/templates/de/emails/admin/admin_sponsor_change_data.tpl index 39ca1a7749..c67efa93a5 100644 --- a/templates/de/emails/admin/admin_sponsor_change_data.tpl +++ b/templates/de/emails/admin/admin_sponsor_change_data.tpl @@ -8,7 +8,7 @@ Hier sind alle neuen (und in Klammern alten) Daten: {--SPONSOR_ENTER_COMPANY_POSITION--}: $content[new_data][position] ($content[position]) {--SPONSOR_ENTER_TAX_IDENT--}: $content[new_data][tax_ident] ($content[tax_ident]) ------------------------------ -{--GUEST_GENDER--}: {%pipe,translateGender=$content[new_data][gender]%} ({%pipe,translateGender=$content[gender]%}) +{--GENDER--}: {%pipe,translateGender=$content[new_data][gender]%} ({%pipe,translateGender=$content[gender]%}) {--SURNAME_FAMILY--}: $content[new_data][surname] $content[new_data][family] ({%sponsor,surname=$content[id]%} {%sponsor,family=$content[id]%}) {--SPONSOR_EMAIL_STREET_NR1--}: $content[new_data][street_nr1] ($content[street_nr1]) {--SPONSOR_EMAIL_STREET_NR2--}: $content[new_data][street_nr2] ($content[street_nr2]) diff --git a/templates/de/emails/admin/admin_sponsor_change_email.tpl b/templates/de/emails/admin/admin_sponsor_change_email.tpl index cbe9697fe8..debe1564f8 100644 --- a/templates/de/emails/admin/admin_sponsor_change_email.tpl +++ b/templates/de/emails/admin/admin_sponsor_change_email.tpl @@ -8,7 +8,7 @@ Hier sind alle neuen (und in Klammern alten) Daten: {--SPONSOR_ENTER_COMPANY_POSITION--}: $content[new_data][position] ($content[position]) {--SPONSOR_ENTER_TAX_IDENT--}: $content[new_data][tax_ident] ($content[tax_ident]) ------------------------------ -{--GUEST_GENDER--}: {%pipe,translateGender=$content[new_data][gender]%} ({%pipe,translateGender=$content[gender]%}) +{--GENDER--}: {%pipe,translateGender=$content[new_data][gender]%} ({%pipe,translateGender=$content[gender]%}) {--SURNAME_FAMILY--}: $content[new_data][surname] $content[new_data][family] ({%sponsor,surname=$content[id]%} {%sponsor,family=$content[id]%}) {--SPONSOR_EMAIL_STREET_NR1--}: $content[new_data][street_nr1] ($content[street_nr1]) {--SPONSOR_EMAIL_STREET_NR2--}: $content[new_data][street_nr2] ($content[street_nr2]) diff --git a/templates/de/emails/admin/admin_sponsor_edit.tpl b/templates/de/emails/admin/admin_sponsor_edit.tpl index 2ab31511f7..354df0eb8f 100644 --- a/templates/de/emails/admin/admin_sponsor_edit.tpl +++ b/templates/de/emails/admin/admin_sponsor_edit.tpl @@ -12,7 +12,7 @@ Es sind nun folgende Daten gesetzt: {--SPONSOR_ENTER_COMPANY_POSITION--}: $content[position] {--SPONSOR_ENTER_TAX_IDENT--}: $content[tax_ident] ------------------------------ -{--GUEST_GENDER--}: {%sponsor,gender,translateGender=$content[id]%} +{--GENDER--}: {%sponsor,gender,translateGender=$content[id]%} {--SURNAME_FAMILY--}: {%sponsor,surname=$content[id]%} {%sponsor,family=$content[id]%} {--SPONSOR_EMAIL_STREET_NR1--}: $content[street_nr1] {--SPONSOR_EMAIL_STREET_NR2--}: $content[street_nr2] diff --git a/templates/de/emails/sponsor/sponsor_change_data.tpl b/templates/de/emails/sponsor/sponsor_change_data.tpl index a42af32030..4165978243 100644 --- a/templates/de/emails/sponsor/sponsor_change_data.tpl +++ b/templates/de/emails/sponsor/sponsor_change_data.tpl @@ -8,7 +8,7 @@ Hier sind alle neuen (und in Klammern alten) Daten: {--SPONSOR_ENTER_COMPANY_POSITION--}: $content[position] ({%sponsor,position=$content[id]%}) {--SPONSOR_ENTER_TAX_IDENT--}: $content[tax_ident] ({%sponsor,tax_ident=$content[id]%}) ------------------------------ -{--GUEST_GENDER--}: $content[gender] ({%sponsor,gender,translateGender=$content[id]%}) +{--GENDER--}: $content[gender] ({%sponsor,gender,translateGender=$content[id]%}) {--SURNAME_FAMILY--}: $content[surname] $content[family] ({%sponsor,surname=$content[id]%} {%sponsor,family=$content[id]%}) {--SPONSOR_EMAIL_STREET_NR1--}: $content[street_nr1] ({%sponsor,street_nr1=$content[id]%}) {--SPONSOR_EMAIL_STREET_NR2--}: $content[street_nr2] ({%sponsor,street_nr2=$content[id]%}) diff --git a/templates/de/html/admin/admin_add_sponsor.tpl b/templates/de/html/admin/admin_add_sponsor.tpl index 61bc5cdbe6..eef7cb4932 100644 --- a/templates/de/html/admin/admin_add_sponsor.tpl +++ b/templates/de/html/admin/admin_add_sponsor.tpl @@ -42,7 +42,7 @@ - {--GUEST_GENDER--}: + {--GENDER--}: diff --git a/templates/de/html/admin/admin_edit_sponsor_edit.tpl b/templates/de/html/admin/admin_edit_sponsor_edit.tpl index 8111856ad1..5cf4eb7740 100644 --- a/templates/de/html/admin/admin_edit_sponsor_edit.tpl +++ b/templates/de/html/admin/admin_edit_sponsor_edit.tpl @@ -42,7 +42,7 @@ - {--GUEST_GENDER--}: + {--GENDER--}: diff --git a/templates/de/html/guest/guest_sponsor_reg.tpl b/templates/de/html/guest/guest_sponsor_reg.tpl index 67dc40c248..046eb87cb9 100644 --- a/templates/de/html/guest/guest_sponsor_reg.tpl +++ b/templates/de/html/guest/guest_sponsor_reg.tpl @@ -54,7 +54,7 @@ - {--GUEST_GENDER--}: + {--GENDER--}: