From 83b592ec7b67258426acab646f682830ce9128c7 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Wed, 28 Jul 2010 20:28:53 +0000 Subject: [PATCH] Naming convention applied on language strings, check added to wrapper: - Naming convention applied on more language strings - Check added to wrapper function ifPostContainsSelections() to make sure the form is really sent - TODOs.txt updated --- DOCS/TODOs.txt | 10 +++--- inc/language/doubler_de.php | 16 +++++----- inc/language/optimize_de.php | 32 +++++++++---------- inc/language/order_de.php | 18 +++++------ inc/language/register_de.php | 12 +++---- inc/language/rewrite_de.php | 6 ++-- inc/language/task_de.php | 2 +- inc/language/top10_de.php | 2 +- inc/language/user_de.php | 16 +++++----- inc/libs/doubler_functions.php | 4 +-- inc/libs/order_functions.php | 2 +- inc/libs/register_functions.php | 2 +- inc/mails/doubler_mails.php | 2 +- inc/modules/admin/what-config_points.php | 6 ++-- inc/modules/admin/what-config_register.php | 2 +- inc/modules/admin/what-del_holiday.php | 2 +- inc/modules/admin/what-edit_user.php | 4 +-- inc/modules/admin/what-lock_user.php | 4 +-- inc/modules/admin/what-optimize.php | 8 ++--- inc/mysql-manager.php | 5 ++- inc/wrapper-functions.php | 2 +- .../de/html/admin/admin_config_register.tpl | 9 +++--- .../de/html/admin/admin_config_rewrite.tpl | 14 ++++---- .../de/html/admin/admin_config_top10.tpl | 2 +- templates/de/html/admin/admin_config_user.tpl | 6 ++-- .../de/html/admin/admin_list_task_delete.tpl | 2 +- .../de/html/admin/admin_list_user_pagenav.tpl | 2 +- templates/de/html/admin/admin_optimize.tpl | 22 ++++++------- templates/de/html/doubler/doubler_reflink.tpl | 2 +- templates/de/html/guest/guest_register.tpl | 2 +- templates/de/html/member/member_doubler.tpl | 8 ++--- 31 files changed, 115 insertions(+), 111 deletions(-) diff --git a/DOCS/TODOs.txt b/DOCS/TODOs.txt index bac64358c0..b182f967ed 100644 --- a/DOCS/TODOs.txt +++ b/DOCS/TODOs.txt @@ -171,11 +171,11 @@ ./inc/modules/member/what-unconfirmed.php:143: // @TODO Try to rewrite this to $content = SQL_FETCHARRAY() ./inc/modules/order.php:76: // @TODO Unused: 2,4 ./inc/monthly/monthly_bonus.php:69: // @TODO Rewrite this to a filter -./inc/mysql-manager.php:1170: // @TODO Rewrite this to a filter -./inc/mysql-manager.php:1417: // @TODO Try to rewrite this to $content = SQL_FETCHARRAY() -./inc/mysql-manager.php:1515: // @TODO Rewrite this to a filter -./inc/mysql-manager.php:1882: // @TODO Rewrite this to a filter -./inc/mysql-manager.php:1926:// @TODO Fix inconsistency between last_module and getWhat() +./inc/mysql-manager.php:1173: // @TODO Rewrite this to a filter +./inc/mysql-manager.php:1420: // @TODO Try to rewrite this to $content = SQL_FETCHARRAY() +./inc/mysql-manager.php:1518: // @TODO Rewrite this to a filter +./inc/mysql-manager.php:1885: // @TODO Rewrite this to a filter +./inc/mysql-manager.php:1929:// @TODO Fix inconsistency between last_module and getWhat() ./inc/mysql-manager.php:370: // @TODO Try to rewrite this to one or more functions ./inc/mysql-manager.php:46:// @TODO Can we cache this? ./inc/reset/reset_beg.php:51:// @TODO This should be converted in a daily beg rallye diff --git a/inc/language/doubler_de.php b/inc/language/doubler_de.php index 3d6dee974b..758ef83a6c 100644 --- a/inc/language/doubler_de.php +++ b/inc/language/doubler_de.php @@ -114,7 +114,7 @@ addMessages(array( 'DOUBLER_FORM_POINTS_MIN' => "Zu wenig {?POINTS?} zum Verdoppeln eingegeben.", 'DOUBLER_FORM_POINTS_MAX' => "Zu viele {?POINTS?} zum Verdoppeln eingegeben.", 'DOUBLER_FORM_NO_POINTS_LEFT' => "Sie haben nicht ausreichend {?POINTS?} übrig.", - 'DOUBLER_MEMBER_SUBJECT' => "Gutschrift durch Verdoppelung", + 'MEMBER_DOUBLER_SUBJECT' => "Gutschrift durch Verdoppelung", 'DOUBLER_PAYOUT_TIME_DIRECT' => "Die Auszahlung erfolgt unmittelbar, nachdem genügend {?POINTS?} zusammengekommen sind, um Ihnen die Verdoppelung auszuzahlen.", 'DOUBLER_PAYOUT_TIME_RESET' => "Abends um 00:00 Uhr jeden Tages wird geprüft, ob genügend {?POINTS?} zusammengekommen sind, um Ihnen die Verdoppelung auszuzahlen.", 'DOUBLER_PAYOUT_TIME_UNKNOWN' => "Unbebannter Modus %s erkannt. Bitte Bug melden.", @@ -125,13 +125,13 @@ addMessages(array( 'DOUBLER_REGISTER_ADVERT' => "Weiter zur Anmeldung / Werbebuchung", 'DOUBLER_NEXT_PAYOUT' => "Die als nächstes anstehenden Auszahlungen", 'DOUBLER_WANNA_TRY' => "Wollen Sie mal ausprobieren?", - 'DOUBLER_GUEST_NO_ENTRIES_FOUND' => "In dieser Kategorie hat noch kein Mitglied einen Eintrag.", - 'DOUBLER_MEMBER_NO_ENTRIES_FOUND' => "In dieser Kategorie haben Sie noch keine Einträge.", - 'DOUBLER_MEMBER_ALREADY_PAYOUT' => "An Sie bereits ausgezahlte Verdoppelungen", - 'DOUBLER_MEMBER_NEXT_PAYOUT' => "Sie erhalten bald folgende Verdoppelungen ausgezahlt", - 'DOUBLER_MEMBER_REFERAL_PAYOUT' => "Ihr Refferal-Verdienst", - 'DOUBLER_MEMBER_YOUR_LINK' => "Hier ist Ihr Verdoppler-Link", - 'DOUBLER_MEMBER_YOUR_REFERAL_LINK' => "Ihr Referal-Link zum Verdoppeln", + 'GUEST_DOUBLER_NO_ENTRIES_FOUND' => "In dieser Kategorie hat noch kein Mitglied einen Eintrag.", + 'MEMBER_DOUBLER_NO_ENTRIES_FOUND' => "In dieser Kategorie haben Sie noch keine Einträge.", + 'MEMBER_DOUBLER_ALREADY_PAYOUT' => "An Sie bereits ausgezahlte Verdoppelungen", + 'MEMBER_DOUBLER_NEXT_PAYOUT' => "Sie erhalten bald folgende Verdoppelungen ausgezahlt", + 'MEMBER_DOUBLER_REFERAL_PAYOUT' => "Ihr Refferal-Verdienst", + 'MEMBER_DOUBLER_YOUR_LINK' => "Hier ist Ihr Verdoppler-Link", + 'MEMBER_DOUBLER_YOUR_REFERAL_LINK' => "Ihr Referal-Link zum Verdoppeln", 'DOUBLER_POINTS_LEFT' => "Es stehen noch {%pipe,getDoublerTotalPointsLeft,translateComma%} {?POINTS?} zum Verdoppeln zur Verfügung.", 'DOUBLER_USAGE_COUNTER' => "Der Verdoppler wurde bereits {%config,translateComma=doubler_counter%} mal genutzt.", 'MEMBER_DOUBLER_FOOTER' => "Hier sollte noch ein guter Hinweis stehen.", diff --git a/inc/language/optimize_de.php b/inc/language/optimize_de.php index 441b99dcf7..e536fc7550 100644 --- a/inc/language/optimize_de.php +++ b/inc/language/optimize_de.php @@ -44,22 +44,22 @@ if (!defined('__SECURITY')) { // Language definitions addMessages(array( - 'OPTIMIZE_DBNAME' => "Tabelle", - 'OPTIMIZE_REPAIRED' => "Repariert", - 'OPTIMIZE_OPTIMIZED' => "Optimiert", - 'OPTIMIZE_TOTAL_SIZE' => "Gesamtgrösse", - 'OPTIMIZE_GAIN_SIZE' => "Eingespart", - 'OPTIMIZE_STATUS_OK' => "Nein", - 'OPTIMIZE_STATUS_TABLE_DOES_NOT_SUPPORT_OPTIMIZE_DOING_RECREATE_ANALYZE_INSTEAD' => "Keine Unterstützung (1)", - 'OPTIMIZE_STATUS_THE_STORAGE_ENGINE_FOR_THE_TABLE_DOESNT_SUPPORT_OPTIMIZE' => "Keine Unterstützung (2)", - 'OPTIMIZE_STATUS_UNSUPPORTED' => "Nicht möglich", - 'OPTIMIZE_STATUS_OPTIMIZED' => "Optimiert.", - 'OPTIMIZE_DB_TOTAL_TABLES' => "Gesamtzahl angelegter Tabellen", - 'OPTIMIZE_DB_TOTAL_SIZE' => "Gesamtgröße der Datenbank", - 'OPTIMIZE_DB_TOTAL_OPTIMIZE' => "Aufrufe der Optimierungsfunktion", - 'OPTIMIZE_DB_TOTAL_GAIN_SIZE' => "Diesen Durchlauf eingespart", - 'OPTIMIZE_DB_TOTAL_GAIN_TABLES' => "Diesen Durchlauf optimierte Tabellen", - 'OPTIMIZE_DB_TOTAL_OPTI' => "Gesamteinsparnisse", + 'ADMIN_OPTIMIZE_DBNAME' => "Tabelle", + 'ADMIN_OPTIMIZE_REPAIRED' => "Repariert", + 'ADMIN_OPTIMIZE_OPTIMIZED' => "Optimiert", + 'ADMIN_OPTIMIZE_TOTAL_SIZE' => "Gesamtgrösse", + 'ADMIN_OPTIMIZE_GAIN_SIZE' => "Eingespart", + 'ADMIN_OPTIMIZE_STATUS_OK' => "Nein", + 'ADMIN_OPTIMIZE_STATUS_TABLE_DOES_NOT_SUPPORT_ADMIN_OPTIMIZE_DOING_RECREATE_ANALYZE_INSTEAD' => "Keine Unterstützung (1)", + 'ADMIN_OPTIMIZE_STATUS_THE_STORAGE_ENGINE_FOR_THE_TABLE_DOESNT_SUPPORT_OPTIMIZE' => "Keine Unterstützung (2)", + 'ADMIN_OPTIMIZE_STATUS_UNSUPPORTED' => "Nicht möglich", + 'ADMIN_OPTIMIZE_STATUS_OPTIMIZED' => "Optimiert.", + 'ADMIN_OPTIMIZE_DB_TOTAL_TABLES' => "Gesamtzahl angelegter Tabellen", + 'ADMIN_OPTIMIZE_DB_TOTAL_SIZE' => "Gesamtgröße der Datenbank", + 'ADMIN_OPTIMIZE_DB_TOTAL_OPTIMIZE' => "Aufrufe der Optimierungsfunktion", + 'ADMIN_OPTIMIZE_DB_TOTAL_GAIN_SIZE' => "Diesen Durchlauf eingespart", + 'ADMIN_OPTIMIZE_DB_TOTAL_GAIN_TABLES' => "Diesen Durchlauf optimierte Tabellen", + 'ADMIN_OPTIMIZE_DB_TOTAL_OPTI' => "Gesamteinsparnisse", )); // [EOF] diff --git a/inc/language/order_de.php b/inc/language/order_de.php index 0d63e464f4..e1ad4c618b 100644 --- a/inc/language/order_de.php +++ b/inc/language/order_de.php @@ -67,15 +67,15 @@ addMessages(array( 'MEMBER_ENTER_INVALID_URL' => "Ungütige URL eingegeben.", 'MEMBER_NO_MAIL_TYPE_SELECTED' => "Bitte wählen Sie eine Mailart aus.", - 'ORDER_SELECT_COLUMN_USERID' => "Mitgliedsnummer", - 'ORDER_SELECT_COLUMN_ZIP' => "Postleitzahl", - 'ORDER_SELECT_COLUMN_COUNTRY' => "Land", - 'ORDER_SELECT_COLUMN_EMAIL' => "EMail-Adresse", - 'ORDER_SELECT_COLUMN_BIRTH_YEAR' => "Geburtsjahr", - 'ORDER_SELECT_COLUMN_LAST_ONLINE' => "Als letztes Online", - 'ORDER_SELECT_COLUMN_REFERAL_CLICKS' => "Klicks auf Ref-Link", - 'ORDER_SELECT_COLUMN_TOTAL_LOGINS' => "Gesamtlogins", - 'ORDER_SELECT_COLUMN_MAIL_ORDERS' => "Heutige Mailbuchungen", + 'ADMIN_ORDER_SELECT_COLUMN_USERID' => "Mitgliedsnummer", + 'ADMIN_ORDER_SELECT_COLUMN_ZIP' => "Postleitzahl", + 'ADMIN_ORDER_SELECT_COLUMN_COUNTRY' => "Land", + 'ADMIN_ORDER_SELECT_COLUMN_EMAIL' => "EMail-Adresse", + 'ADMIN_ORDER_SELECT_COLUMN_BIRTH_YEAR' => "Geburtsjahr", + 'ADMIN_ORDER_SELECT_COLUMN_LAST_ONLINE' => "Als letztes Online", + 'ADMIN_ORDER_SELECT_COLUMN_REFERAL_CLICKS' => "Klicks auf Ref-Link", + 'ADMIN_ORDER_SELECT_COLUMN_TOTAL_LOGINS' => "Gesamtlogins", + 'ADMIN_ORDER_SELECT_COLUMN_MAIL_ORDERS' => "Heutige Mailbuchungen", 'ORDER_DEFAULT_SUBJECT' => "Betreffzeile in allen Mails", 'ORDER_DEFAULT_TEXT' => "Geben Sie hier Ihren Werbetext ein.", diff --git a/inc/language/register_de.php b/inc/language/register_de.php index 212cf4b727..3730f58ed0 100644 --- a/inc/language/register_de.php +++ b/inc/language/register_de.php @@ -44,12 +44,12 @@ if (!defined('__SECURITY')) { // Language definitions addMessages(array( - 'REGISTER_MUST_SET_NOTE' => "Sind Pflichtangaben, ansonsten erfolgt keine Anmeldung.", - 'REGISTER_MUST_HEADER' => "Pflichtfelder einstellen", - 'REGISTER_CHANGE_MUST' => "Einstellungen ändern", - 'REGISTER_FIELD_NAME' => "Eingabefeld", - 'REGISTER_FIELD_REQUIRED' => "Pflichtfeld?", - 'REGISTER_ADMIN_CHANGES_SAVED' => "Es wurden %s Pflichtfelder aktualisiert.", + 'GUEST_REGISTER_MUST_SET_NOTE' => "Sind Pflichtangaben, ansonsten erfolgt keine Anmeldung.", + 'ADMIN_CONFIG_REGISTER_MUST_TITLE' => "Pflichtfelder einstellen", + 'ADMIN_REGISTER_CHANGE_MUST' => "Einstellungen ändern", + 'ADMIN_REGISTER_FIELD_NAME' => "Eingabefeld", + 'ADMIN_REGISTER_FIELD_REQUIRED' => "Pflichtfeld?", + 'ADMIN_REGISTER_CHANGES_SAVED' => "Es wurden %s Pflichtfelder aktualisiert.", 'REGISTER_SURNAME_REQUIRED' => "Bitte geben Sie Ihren Vornamen ein.", 'REGISTER_FAMILY_REQUIRED' => "Bitte geben Sie Ihren Nachnamen ein.", 'REGISTER_STREET_NR_REQUIRED' => "Bitte geben Sie Straße und Hausnummer ein.", diff --git a/inc/language/rewrite_de.php b/inc/language/rewrite_de.php index 1b385c8907..64e5379fae 100644 --- a/inc/language/rewrite_de.php +++ b/inc/language/rewrite_de.php @@ -44,9 +44,9 @@ if (!defined('__SECURITY')) { // Language definitions addMessages(array( - 'MODULE_NAME' => "Modulname", - 'MODULE_TITLE' => "Modultitel", - 'MODULE_SKIPPED' => "Modul wird ausgeblendet", + 'ADMIN_MODULE_NAME' => "Modulname", + 'ADMIN_MODULE_TITLE' => "Modultitel", + 'ADMIN_MODULE_SKIPPED' => "Modul wird ausgeblendet", 'ADMIN_CONFIG_REWRITE_NOTE' => "Stellen Sie hier die Module ein, die von der Rewrite-Engine nicht auf die suchmaschienenoptimierten URLs umgeschrieben werden sollen. Die ist im Regelfall nur das Modul index.", )); diff --git a/inc/language/task_de.php b/inc/language/task_de.php index 9e617ecd25..ef4e0a5a40 100644 --- a/inc/language/task_de.php +++ b/inc/language/task_de.php @@ -72,7 +72,7 @@ addMessages(array( 'ADMIN_OVERVIEW_TASK_DELETED_TYPE' => "Als zu löschende markierte Aufgaben", 'ADMIN_OVERVIEW_TASK_CLOSED_TYPE' => "Ihre geschlossenen Aufgaben", 'ADMIN_TASK_DELETE_ENTRIES' => "Sofort löschen", - 'TASK_DELETE_MODE_NOTE' => "Diese Aufgaben sind zum automatischen Löschen freigegeben. Die automatische Löschung erfolgt durch die autopurge-Erweiterung. Sie können die Aufgaben aber auch jetzt endgültig löschen.", + 'ADMIN_TASK_DELETE_MODE_NOTE' => "Diese Aufgaben sind zum automatischen Löschen freigegeben. Die automatische Löschung erfolgt durch die autopurge-Erweiterung. Sie können die Aufgaben aber auch jetzt endgültig löschen.", 'ADMIN_TASK_UNKNOWN_LIST_TITLE' => "Linktitel nicht gesetzt.", 'ADMIN_TASK_INACTIVE_AUTOPURGE' => "Inaktive Accounts", 'ADMIN_TASK_INACTIVE_AUTOPURGE_TITLE' => "Es gibt inaktiv gewordene Mitglieder in Ihrem {?mt_word?}.", diff --git a/inc/language/top10_de.php b/inc/language/top10_de.php index 7d3b6a6998..0cb62bf687 100644 --- a/inc/language/top10_de.php +++ b/inc/language/top10_de.php @@ -44,7 +44,7 @@ if (!defined('__SECURITY')) { // Language definitions addMessages(array( - 'ADMIN_TOP10_CONFIG_HEADER' => "Einstellungen an TOP-Listen", + 'ADMIN_CONFIG_TOP10_TITLE' => "Einstellungen an TOP-Listen", 'ADMIN_TOP10_MAX_TOP10' => "Maximale Plätze pro Liste", )); diff --git a/inc/language/user_de.php b/inc/language/user_de.php index e7cd719962..fd24b2ebd4 100644 --- a/inc/language/user_de.php +++ b/inc/language/user_de.php @@ -44,14 +44,14 @@ if (!defined('__SECURITY')) { // Language definitions addMessages(array( - 'USER_PAGENAV' => "Seiten", - 'USER_ADMIN_CONFIG_HEADER' => "Konfiguration - Mitgliederliste", - 'USER_ADMIN_LIMIT_USER' => "Anzahl Mitglieder pro Seite", - 'USER_ADMIN_ALPHA_USER' => "Azanhl Buchstaben pro Zeile", - 'USER_ACCOUNT_SAVED' => "Mitgliedsaccount gespeichert.", - 'USER_ACCOUNT_NOT_SAVED' => "Mitgliedsaccount nicht gespeichert.", - 'USER_ACCOUNT_LOCKED' => "Mitgliedsaccount %s wurde gesperrt.", - 'USER_ACCOUNT_UNLOCKED' => "Mitgliedsaccount %s wurde freigegeben.", + 'ADMIN_USER_PAGENAV' => "Seiten", + 'ADMIN_CONFIG_USER_TITLE' => "Konfiguration - Mitgliederliste", + 'ADMIN_USER_LIMIT_USER' => "Anzahl Mitglieder pro Seite", + 'ADMIN_USER_ALPHA_USER' => "Azanhl Buchstaben pro Zeile", + 'ADMIN_USER_ACCOUNT_SAVED' => "Mitgliedsaccount gespeichert.", + 'ADMIN_USER_ACCOUNT_NOT_SAVED' => "Mitgliedsaccount nicht gespeichert.", + 'ADMIN_USER_ACCOUNT_LOCKED' => "Mitgliedsaccount %s wurde gesperrt.", + 'ADMIN_USER_ACCOUNT_UNLOCKED' => "Mitgliedsaccount %s wurde freigegeben.", )); // [EOF] diff --git a/inc/libs/doubler_functions.php b/inc/libs/doubler_functions.php index 85dad12df4..a374d0a42d 100644 --- a/inc/libs/doubler_functions.php +++ b/inc/libs/doubler_functions.php @@ -51,11 +51,11 @@ function generateDoublerTable ($userid = '0', $done = 'N', $ref = 'N', $sort = ' // Load entries only from a single user $add = sprintf(" AND `userid`=%s", bigintval($userid)); $mode = 'member'; $COLS = 4; $DT_MODE = 2; - $message = '{--DOUBLER_MEMBER_NO_ENTRIES_FOUND--}'; + $message = '{--MEMBER_DOUBLER_NO_ENTRIES_FOUND--}'; } else { // Guest mode! $mode = 'guest'; $COLS = 3; $DT_MODE = 3; - $message = '{--DOUBLER_GUEST_NO_ENTRIES_FOUND--}'; + $message = '{--GUEST_DOUBLER_NO_ENTRIES_FOUND--}'; } if (($done == 'Y') && ($sort == 'ASC')) { diff --git a/inc/libs/order_functions.php b/inc/libs/order_functions.php index d8d48737e3..f0cc8b351f 100644 --- a/inc/libs/order_functions.php +++ b/inc/libs/order_functions.php @@ -50,7 +50,7 @@ function addOrderSelectionOptions ($default) { foreach ($LIST as $item) { $selected = ''; if ($item == $default) $selected = ' selected="selected"'; - $OUT .= ''; + $OUT .= ''; } // END - foreach // Return the output diff --git a/inc/libs/register_functions.php b/inc/libs/register_functions.php index c13b24a1a9..34bec19b53 100644 --- a/inc/libs/register_functions.php +++ b/inc/libs/register_functions.php @@ -40,7 +40,7 @@ // Some security stuff... if (!defined('__SECURITY')) { die(); -} +} // END - if // function ifRequiredRegisterFieldsAreSet (&$array) { diff --git a/inc/mails/doubler_mails.php b/inc/mails/doubler_mails.php index 85d852979a..1c28159a58 100644 --- a/inc/mails/doubler_mails.php +++ b/inc/mails/doubler_mails.php @@ -179,7 +179,7 @@ if (((SQL_NUMROWS($result_total) > 0) && (getConfig('doubler_sent_all') == 'Y')) // Load mail template and send mail away... $message = loadEmailTemplate('member_doubler', $content, $content['userid']); - sendEmail($content['userid'], '{--DOUBLER_MEMBER_SUBJECT--}', $message); + sendEmail($content['userid'], '{--MEMBER_DOUBLER_SUBJECT--}', $message); } // END - if } // END - while } // END - if diff --git a/inc/modules/admin/what-config_points.php b/inc/modules/admin/what-config_points.php index ffade8cd06..30b0a9703b 100644 --- a/inc/modules/admin/what-config_points.php +++ b/inc/modules/admin/what-config_points.php @@ -184,8 +184,8 @@ WHERE // Load template loadTemplate('admin_config_point_settings', false, $content); } elseif (getRequestParameter('sub') == 'ref') { - // 12 3 32 2 3 32 2 3321 - if ((isFormSent('del')) && (isPostRequestParameterSet('sel')) && (ifPostContainsSelections())) { + // 12 3 32 2 3321 + if ((isFormSent('del')) && (ifPostContainsSelections())) { // Delete entries $OUT = ''; foreach (postRequestParameter('sel') as $id => $value) { @@ -200,7 +200,7 @@ WHERE // Load main template loadTemplate('admin_del_reflevel', false, $OUT); - } elseif ((isFormSent('edit')) && (isPostRequestParameterSet('sel')) && (ifPostContainsSelections())) { + } elseif ((isFormSent('edit')) && (ifPostContainsSelections())) { // Edit entries $OUT = ''; foreach (postRequestParameter('sel') as $id => $value) { diff --git a/inc/modules/admin/what-config_register.php b/inc/modules/admin/what-config_register.php index 0d65e88d6f..d85227486f 100644 --- a/inc/modules/admin/what-config_register.php +++ b/inc/modules/admin/what-config_register.php @@ -61,7 +61,7 @@ if (isFormSent()) { } // END - foreach // Output message for updated entries - loadTemplate('admin_settings_saved', false, getMaskedMessage('REGISTER_ADMIN_CHANGES_SAVED', $cnt)); + loadTemplate('admin_settings_saved', false, getMaskedMessage('ADMIN_REGISTER_CHANGES_SAVED', $cnt)); } // END - if // List all register values diff --git a/inc/modules/admin/what-del_holiday.php b/inc/modules/admin/what-del_holiday.php index 3e808092d3..3425519e1b 100644 --- a/inc/modules/admin/what-del_holiday.php +++ b/inc/modules/admin/what-del_holiday.php @@ -40,7 +40,7 @@ // Some security stuff... if ((!defined('__SECURITY')) || (!isAdmin())) { die(); -} +} // END - if // Add description as navigation point addMenuDescription('admin', __FILE__); diff --git a/inc/modules/admin/what-edit_user.php b/inc/modules/admin/what-edit_user.php index 9952eb94e2..dadb537c42 100644 --- a/inc/modules/admin/what-edit_user.php +++ b/inc/modules/admin/what-edit_user.php @@ -111,10 +111,10 @@ LIMIT 1", postRequestParameter('email'), bigintval(getRequestParameter('userid')), ), __FILE__, __LINE__); - $content = '{--USER_ACCOUNT_SAVED--}'; + $content = '{--ADMIN_USER_ACCOUNT_SAVED--}'; } else { // Problem while saving data - $content = '{--USER_ACCOUNT_NOT_SAVED--}'; + $content = '{--ADMIN_USER_ACCOUNT_NOT_SAVED--}'; } // Load template diff --git a/inc/modules/admin/what-lock_user.php b/inc/modules/admin/what-lock_user.php index 2bf2bbee0d..32d6f2a299 100644 --- a/inc/modules/admin/what-lock_user.php +++ b/inc/modules/admin/what-lock_user.php @@ -75,7 +75,7 @@ if (isGetRequestParameterSet('userid')) { } // END - if // Prepare message - $message = getMaskedMessage('USER_ACCOUNT_LOCKED', bigintval(getRequestParameter('userid'))); + $message = getMaskedMessage('ADMIN_USER_ACCOUNT_LOCKED', bigintval(getRequestParameter('userid'))); $isActive = true; } elseif ((isPostRequestParameterSet('unlock')) && (getUserData('status') == 'LOCKED')) { // Ok, unlock the account! @@ -110,7 +110,7 @@ LIMIT 1", } // END - if // Prepare message - $message = getMaskedMessage('USER_ACCOUNT_UNLOCKED', bigintval(getRequestParameter('userid'))); + $message = getMaskedMessage('ADMIN_USER_ACCOUNT_UNLOCKED', bigintval(getRequestParameter('userid'))); $isActive = true; } elseif (isFormSent('del')) { // Delete the account diff --git a/inc/modules/admin/what-optimize.php b/inc/modules/admin/what-optimize.php index 48f1cdfbe7..85a1ac0244 100644 --- a/inc/modules/admin/what-optimize.php +++ b/inc/modules/admin/what-optimize.php @@ -58,15 +58,15 @@ foreach ($DATA['tables'] as $row_array) { if (empty($row_array[1])) $row_array[1] = 'NONE'; // Get repair/optimization status - $repairStatus = '{--OPTIMIZE_STATUS_' . str_replace('__', '_', str_replace(',', '', str_replace('+', '', str_replace("'", '', str_replace(' ', '_', strtoupper($row_array[1])))))) . '--}'; - $optimizeStatus = '{--OPTIMIZE_STATUS_UNSUPPORTED--}'; + $repairStatus = '{--ADMIN_OPTIMIZE_STATUS_' . str_replace('__', '_', str_replace(',', '', str_replace('+', '', str_replace("'", '', str_replace(' ', '_', strtoupper($row_array[1])))))) . '--}'; + $optimizeStatus = '{--ADMIN_OPTIMIZE_STATUS_UNSUPPORTED--}'; if ($row_array[4] > 0) { - $optimizeStatus = '{--OPTIMIZE_STATUS_OPTIMIZED--}'; + $optimizeStatus = '{--ADMIN_OPTIMIZE_STATUS_OPTIMIZED--}'; $B1 = ''; $B2 = ''; $gain_tabs++; } elseif (count(explode(' ', $row_array[2])) == 0) { - $optimizeStatus = '{--OPTIMIZE_STATUS_' . strtoupper($row_array[2]) . '--}'; + $optimizeStatus = '{--ADMIN_OPTIMIZE_STATUS_' . strtoupper($row_array[2]) . '--}'; } // Prepare data for the row template diff --git a/inc/mysql-manager.php b/inc/mysql-manager.php index 63a870844f..ce69ffa3ee 100644 --- a/inc/mysql-manager.php +++ b/inc/mysql-manager.php @@ -1106,7 +1106,10 @@ function addPointsThroughReferalSystem ($subject, $userid, $points, $sendNotify // And sent it away sendEmail($userid, '{--DIRECT_PAYMENT_SUBJECT--}', $message); - if (!isGetRequestParameterSet('mid')) loadTemplate('admin_settings_saved', false, '{--ADMIN_POINTS_ADDED--}'); + if (!isGetRequestParameterSet('mid')) { + // Output message to admin + loadTemplate('admin_settings_saved', false, '{--ADMIN_POINTS_ADDED--}'); + } // END - if } // Maybe there's another ref? diff --git a/inc/wrapper-functions.php b/inc/wrapper-functions.php index df15ededa2..e568da44e2 100644 --- a/inc/wrapper-functions.php +++ b/inc/wrapper-functions.php @@ -1843,7 +1843,7 @@ function ifPostContainsSelections ($element = 'sel') { // Do we have cache? if (!isset($GLOBALS['post_contains_selections'][$element])) { // Determine it - $GLOBALS['post_contains_selections'][$element] = (countPostSelection($element) > 0); + $GLOBALS['post_contains_selections'][$element] = ((isPostRequestParameterSet($element)) && (countPostSelection($element) > 0)); } // END - if // Return cache diff --git a/templates/de/html/admin/admin_config_register.tpl b/templates/de/html/admin/admin_config_register.tpl index d66bdcb4c9..113c7f00e4 100644 --- a/templates/de/html/admin/admin_config_register.tpl +++ b/templates/de/html/admin/admin_config_register.tpl @@ -2,19 +2,20 @@
- - - + + $content
{--REGISTER_MUST_HEADER--}: + + {--ADMIN_CONFIG_REGISTER_MUST_TITLE--}:
{--ID_SELECT--}{--REGISTER_FIELD_NAME--}:{--REGISTER_FIELD_REQUIRED--}{--ADMIN_REGISTER_FIELD_NAME--}:{--ADMIN_REGISTER_FIELD_REQUIRED--}
diff --git a/templates/de/html/admin/admin_config_rewrite.tpl b/templates/de/html/admin/admin_config_rewrite.tpl index d4d44b0b30..55efa1084f 100644 --- a/templates/de/html/admin/admin_config_rewrite.tpl +++ b/templates/de/html/admin/admin_config_rewrite.tpl @@ -3,21 +3,21 @@ $content - +
- {--MODULE_NAME--} + {--ADMIN_MODULE_NAME--} - {--MODULE_TITLE--} + {--ADMIN_MODULE_TITLE--} - {--MODULE_SKIPPED--} + {--ADMIN_MODULE_SKIPPED--}
diff --git a/templates/de/html/admin/admin_config_top10.tpl b/templates/de/html/admin/admin_config_top10.tpl index 3815a6a2e8..4999fedaa6 100644 --- a/templates/de/html/admin/admin_config_top10.tpl +++ b/templates/de/html/admin/admin_config_top10.tpl @@ -3,7 +3,7 @@ diff --git a/templates/de/html/admin/admin_config_user.tpl b/templates/de/html/admin/admin_config_user.tpl index 9f63954164..3f77ea28bf 100644 --- a/templates/de/html/admin/admin_config_user.tpl +++ b/templates/de/html/admin/admin_config_user.tpl @@ -3,17 +3,17 @@
- {--ADMIN_TOP10_CONFIG_HEADER--} + {--ADMIN_CONFIG_TOP10_TITLE--}
- + - + diff --git a/templates/de/html/admin/admin_list_task_delete.tpl b/templates/de/html/admin/admin_list_task_delete.tpl index 4a9742f146..843f510e70 100644 --- a/templates/de/html/admin/admin_list_task_delete.tpl +++ b/templates/de/html/admin/admin_list_task_delete.tpl @@ -30,5 +30,5 @@ $content[rows]
- {--TASK_DELETE_MODE_NOTE--} + {--ADMIN_TASK_DELETE_MODE_NOTE--}
diff --git a/templates/de/html/admin/admin_list_user_pagenav.tpl b/templates/de/html/admin/admin_list_user_pagenav.tpl index ef00578efe..159565d74d 100644 --- a/templates/de/html/admin/admin_list_user_pagenav.tpl +++ b/templates/de/html/admin/admin_list_user_pagenav.tpl @@ -3,7 +3,7 @@
- {--USER_ADMIN_CONFIG_HEADER--} + {--ADMIN_CONFIG_USER_TITLE--}
{--USER_ADMIN_LIMIT_USER--}:{--ADMIN_USER_LIMIT_USER--}:
{--USER_ADMIN_ALPHA_USER--}:{--ADMIN_USER_ALPHA_USER--}:
- [{--USER_PAGENAV--}:$content[list]] + [{--ADMIN_USER_PAGENAV--}:$content[list]]
diff --git a/templates/de/html/admin/admin_optimize.tpl b/templates/de/html/admin/admin_optimize.tpl index 10c56e8172..082091c7cc 100644 --- a/templates/de/html/admin/admin_optimize.tpl +++ b/templates/de/html/admin/admin_optimize.tpl @@ -2,21 +2,21 @@ - - - - - + + + + + $content[rows]
{--OPTIMIZE_DBNAME--}:{--OPTIMIZE_REPAIRED--}:{--OPTIMIZE_OPTIMIZED--}:{--OPTIMIZE_TOTAL_SIZE--}:{--OPTIMIZE_GAIN_SIZE--}:{--ADMIN_OPTIMIZE_DBNAME--}:{--ADMIN_OPTIMIZE_REPAIRED--}:{--ADMIN_OPTIMIZE_OPTIMIZED--}:{--ADMIN_OPTIMIZE_TOTAL_SIZE--}:{--ADMIN_OPTIMIZE_GAIN_SIZE--}:
diff --git a/templates/de/html/doubler/doubler_reflink.tpl b/templates/de/html/doubler/doubler_reflink.tpl index 682d308acc..dabd2703dd 100644 --- a/templates/de/html/doubler/doubler_reflink.tpl +++ b/templates/de/html/doubler/doubler_reflink.tpl @@ -1,4 +1,4 @@
- {--DOUBLER_MEMBER_YOUR_REFERAL_LINK--}: + {--MEMBER_DOUBLER_YOUR_REFERAL_LINK--}: {%url=doubler.php?refid=$content
diff --git a/templates/de/html/guest/guest_register.tpl b/templates/de/html/guest/guest_register.tpl index 5d4b9a3268..3ae5673802 100644 --- a/templates/de/html/guest/guest_register.tpl +++ b/templates/de/html/guest/guest_register.tpl @@ -71,7 +71,7 @@ -
$content[must_fillout_marker] : {--REGISTER_MUST_SET_NOTE--}
+
$content[must_fillout_marker] : {--GUEST_REGISTER_MUST_SET_NOTE--}
diff --git a/templates/de/html/member/member_doubler.tpl b/templates/de/html/member/member_doubler.tpl index ecb9632554..0e13cd3e79 100644 --- a/templates/de/html/member/member_doubler.tpl +++ b/templates/de/html/member/member_doubler.tpl @@ -1,6 +1,6 @@
- {--DOUBLER_MEMBER_YOUR_LINK--}: + {--MEMBER_DOUBLER_YOUR_LINK--}:
@@ -11,13 +11,13 @@ Tipp: Nutzen Sie diesen zum Werben unseres {?mt_word2?}, um die {%config,translateComma=doubler_ref%}% Referal-Vergütung zu erhalten!
-
{--DOUBLER_MEMBER_ALREADY_PAYOUT--}:
+
{--MEMBER_DOUBLER_ALREADY_PAYOUT--}:
$content[payout_history] -
{--DOUBLER_MEMBER_NEXT_PAYOUT--}:
+
{--MEMBER_DOUBLER_NEXT_PAYOUT--}:
{%pipe,getMemberId,generateDoublerTable%} -
{--DOUBLER_MEMBER_REFERAL_PAYOUT--}:
+
{--MEMBER_DOUBLER_REFERAL_PAYOUT--}:
$content[payout_ref]
-- 2.39.5