./inc/functions.php:2261: // @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:1099:// @TODO Rewrite these two constants
-./inc/language/de.php:1114:// @TODO Rewrite these three constants
+./inc/language/de.php:1101:// @TODO Rewrite these two constants
+./inc/language/de.php:1116:// @TODO Rewrite these three constants
./inc/language/de.php:300: // @TODO Following two are unused?
-./inc/language/de.php:799:// @TODO Are these constants longer used?
+./inc/language/de.php:801:// @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/newsletter_de.php:13: * @TODO This language file is completely out-dated, please do no *
'YOU_ARE_HERE' => "Sie sind hier:",
'ID_SELECT' => "ID:",
'KEY_SELECT' => "Eintrag:",
- 'DISPLAY_ACTION' => "Aktion",
- 'DISPLAY_WHAT' => "Unteraktion",
- 'DISPLAY_TITLE' => "Titel",
+ 'ADMIN_DISPLAY_ACTION' => "Aktion",
+ 'ADMIN_DISPLAY_WHAT' => "Unteraktion",
+ 'ADMIN_DISPLAY_TITLE' => "Titel",
'UNDO_SELECTIONS' => "Auswahl zurücknehmen",
'ADMIN_EDIT_MENUS' => "Menüs bearbeiten",
'ADMIN_DELETE_MENUS' => "Menüs löschen",
'ADMIN_ADD_MENU' => "Menü hinzufügen",
'ADMIN_ENTER_TITLE' => "Geben Sie den Linktitel zum neuen Menüpunkt ein",
'ADMIN_SELECT_PARENT_MENU' => "Wählen Sie das übergeordnete Hauptmenü aus",
- 'IS_TOP_MENU' => "Ist ein Hauptmenü",
+ 'ADMIN_IS_TOP_MENU' => "Ist ein Hauptmenü",
'ADMIN_SELECT_WHAT_NAME' => "Wählen Sie den passenden Suffix aus der Liste aus",
- 'ENTER_DESCR' => "Geben Sie eine kurze aussagekräftige Beschreibung des Menüpunktes ein",
+ 'ADMIN_ENTER_MENU_DESCRIPTION' => "Geben Sie eine kurze aussagekräftige Beschreibung des Menüpunktes ein",
'ADMIN_SELECT_BELOW_MENU' => "Wählen Sie den Menüpunkt aus, unterhalb dem der neue Punkt erscheinen soll",
'ADMIN_EDIT_DESCRIPTION' => "Beschreibung ändern",
- 'CREATE_WHAT_FIRST' => "Bitte erstellen Sie zuerst die what-xxxxx.php Datei. Dann können Sie sie hier auswählen.",
- 'MENU_IS_VISIBLE' => "Menüpunkt ist sichtbar",
- 'MENU_IS_ACTIVE' => "Menüpunkt ist aktiviert",
- 'CREATE_ACTION_FIRST' => "Bitte erstellen Sie zuerst die action-xxxxx.php Datei. Dann können Sie sie hier auswählen.",
- 'IS_FIRST_MENU' => "Ist das erste Hauptmenü",
+ 'ADMIN_CREATE_WHAT_FIRST' => "Bitte erstellen Sie zuerst die what-xxxxx.php Datei. Dann können Sie sie hier auswählen.",
+ 'ADMIN_MENU_IS_VISIBLE' => "Menüpunkt ist sichtbar",
+ 'ADMIN_MENU_IS_ACTIVE' => "Menüpunkt ist aktiviert",
+ 'ADMIN_CREATE_ACTION_FIRST' => "Bitte erstellen Sie zuerst die action-xxxxx.php Datei. Dann können Sie sie hier auswählen.",
+ 'ADMIN_IS_FIRST_MENU' => "Ist das erste Hauptmenü",
'NO_DB_LINK' => "Keine Verbindung zur Datenbank.",
'NO_DB_LINK_SHUTDOWN' => "Keine Verbindung zur Datenbank beim Schliessen der Verbindung.",
'MYSQL_DATA_MISSING' => "Die Konfiguration Ihrer Datenbankverbindung ist unnvollständig. Bitte in <strong>{?CACHE_PATH?}/config-local.php</strong> mindestens den Hostnamen, Datenbanknamen und Login zur Datenbank eingeben.",
'GUEST_STATS_MODULES' => "Klicks in allen Modulen (TOP-10)",
'GUEST_STATS_MEMBERS' => "Statistiken über unsere Mitglieder",
'ADMIN_EDIT_REFERAL_BANNER_TITLE' => "Werbebanner editieren",
- 'REQUEST_CONFIRM_LINK_TITLE' => "Bestätigungslink erneut anfordern",
+ 'GUEST_LOGIN_ID_UNKNOWN_STATUS' => "Ihr Account weist einen unbekannten Status <span class=\"data\">%s</span> auf. Bitte melden Sie sich beim Support.",
+ 'GUEST_REQUEST_CONFIRM_LINK_TITLE' => "Bestätigungslink erneut anfordern",
'GUEST_CONFIRM_LINK_NOTE' => "Sie haben Ihren Bestätigungslink verlegt? Kein Problem, hier können Sie ihn erneut anfordern. Geben Sie einfach Ihre angemeldete eMail-Adresse an. Der Link wird Ihnen dann per Mail zugesandt.",
- 'REQUEST_CONFIRM_LINK' => "Erneut anfordern",
- 'LOGIN_ID_CONFIRMED' => "Sie haben bereits Ihre E-Mail Adresse bestätigt.",
- 'CONFIRM_LINK_SENT' => "Der Bestätigungslink wurde an Ihre E-Mail Adresse ausgesandt.",
- 'REQUEST_CONFIRM_LINK_SUBJECT' => "Anforderung Ihres Bestätigunglinkes",
+ 'GUEST_REQUEST_CONFIRM_LINK' => "Erneut anfordern",
+ 'GUEST_LOGIN_ID_CONFIRMED' => "Sie haben bereits Ihre E-Mail Adresse bestätigt.",
+ 'GUEST_LOGIN_ID_LOCKED' => "Ihr Account ist gesperrt. Bitte melden Sie sich beim Support.",
+ 'GUEST_CONFIRM_LINK_SENT' => "Der Bestätigungslink wurde an Ihre E-Mail Adresse ausgesandt.",
+ 'GUEST_REQUEST_CONFIRM_LINK_SUBJECT' => "Anforderung Ihres Bestätigunglinkes",
'EMAIL_404' => "Unter der angegebenen E-Mail Adresse konnten wir keinen Account finden! Bitte versuchen Sie es erneut.",
'SELECT_NONE' => "Keine/s/r",
'ADMIN_CONFIG_STATS_TITLE' => "Einstellungen an den Gast-Statistiken",
'ADMIN_GSTATS_MODULES_NOTE' => "Zeigt Klicks in den 10 am häufigsten angeklickten Gast- und Mitgliedsmodulen an.",
'ADMIN_GSTATS_INACTIVE_NOTE' => "Deaktiviert die Gast-Statistiken komplett.",
'ADMIN_DELETE_PAYMENT_TITLE' => "Mailvergütungen löschen",
- 'REFERAL_PAYOUT' => "Wie viele Mails müssen die Mitglieder mindestens bestätigen, um den Willkommensbonus, einmaliger Referal-Bonus usw. gutgeschrieben zu bekommen?",
+ 'ADMIN_CONFIG_REFERAL_PAYOUT' => "Wie viele Mails müssen die Mitglieder mindestens bestätigen, um den Willkommensbonus, einmaliger Referal-Bonus usw. gutgeschrieben zu bekommen?",
'ADMIN_EXTENSION_UPDATED' => "Erweiterung aktualisiert.",
'ADMIN_UPDATE_EXTENSION_SUBJECT' => "Erweiterung-Update installiert",
'MEMBER_ORDER_PAGE1_INTRO' => "Mailbuchung - Schritt 1 von 4: PLZ eingeben",
'LOCKED_POINTS' => "Nicht vergütete {?POINTS?}",
'LAST_UPDATE' => "Letzte Profiländerung",
'LAST_PROFILE_SENT' => "Erinnerung gesendet",
- 'USER_REFERAL_PAYOUT' => "Noch zu best. Mails",
+ 'ADMIN_USER_REFERAL_PAYOUT' => "Noch zu best. Mails",
'DISPLAY_REFID' => "Ref-Id anzeigen",
- 'SORT_NAVIGATION' => "Sortieren",
+ 'ADMIN_SORT_NAVIGATION' => "Sortieren",
'HIGHER' => "Höher",
'LOWER' => "Niedriger",
'MEMBER_SETTINGS_SAVED' => "Einstellungen gespeichert.",
// Does resend the user's confirmation link for given email address
function doResendUserConfirmationLink ($email) {
+ // Email address not registered is default message
+ $message = '{--EMAIL_404--}';
+
// Confirmation link requested
if (fetchUserData($email, 'email')) {
// Email address found
$content = getUserDataArray();
- // Detect status
- switch ($content['status']) {
- case 'UNCONFIRMED': // Account not confirmed
- // Load email template
- $message = loadEmailTemplate('guest_request_confirm', array('hash' => $content['user_hash']), $content['userid']);
+ // Is the account unconfirmed?
+ if ($content['status'] == 'UNCONFIRMED') {
+ // Load email template
+ $message = loadEmailTemplate('guest_request_confirm', array('hash' => $content['user_hash']), $content['userid']);
- // Send email
- sendEmail($email, '{--REQUEST_CONFIRM_LINK_SUBJECT--}', $message);
+ // Send email
+ sendEmail($email, '{--GUEST_REQUEST_CONFIRM_LINK_SUBJECT--}', $message);
+ } // END - if
- // And set message
- $content['message'] = '{--CONFIRM_LINK_SENT--}';
- break;
+ // Create message based on the status
+ $message = getConfirmationMessageFromUserStatus($content['status']);
+ } // END - if
- case 'CONFIRMED': // Account already confirmed
- $content['message'] = '{--LOGIN_ID_CONFIRMED--}';
- break;
+ // Output message
+ loadTemplate('admin_settings_saved', false, $message);
+}
- case 'LOCKED': // Account is locked
- $content['message'] = '{--LOGIN_ID_LOCKED--}';
- break;
- } // END - switch
- } else {
- // Email address not registered
- $content['message'] = '{--EMAIL_404--}';
- }
+// Get a message (somewhat translation) from user status for confirmation link.
+// This is different to translateUserStatus() in text messages.
+function getConfirmationMessageFromUserStatus ($status) {
+ // Default is 'UNKNOWN'
+ $message = getMaskedMessage('GUEST_LOGIN_ID_UNKNOWN_STATUS', $status);
+
+ // Which status is it?
+ switch ($status) {
+ case 'UNCONFIRMED': // Account is unconfirmed
+ // And set message
+ $message = '{--GUEST_CONFIRM_LINK_SENT--}';
+ break;
+
+ case 'CONFIRMED': // Account already confirmed
+ $message = '{--GUEST_LOGIN_ID_CONFIRMED--}';
+ break;
+
+ case 'LOCKED': // Account is locked
+ $message = '{--GUEST_LOGIN_ID_LOCKED--}';
+ break;
+
+ default: // This should not happen
+ debug_report_bug(__FUNCTION__, __LINE__, 'Unknown user status ' . $status . ' detected.');
+ break;
+ } // END - switch
+
+ // Return message
+ return $message;
}
// Expression call-back function for fetching user data
function translateWernisTransferStatus ($status) {
// Default status
$return = getMaskedMessage('WERNIS_STATUS_UNKNWOWN', $status);
+
+ // Which status?
switch ($status) {
case 'IN': // Withdraw
$return = '{--WERNIS_STATUS_WITHDRAW--}';
case 'FAILED': // Payout
$return = '{--WERNIS_STATUS_FAILED--}';
break;
- }
+ } // END - switch
// Return the status
return $return;
$menuArray = getArrayFromDirectory(sprintf("inc/modules/%s/", $menu), '', false, false);
// Init the selection box
- $OUT = '<select name="' . $name . '" class="form_select" size="1"><option value="">{--IS_TOP_MENU--}</option>';
+ $OUT = '<select name="' . $name . '" class="form_select" size="1"><option value="">{--ADMIN_IS_TOP_MENU--}</option>';
// Walk through all files
foreach ($menuArray as $file) {
}
$OUT = ' <select class="form_select" name="sort" size="1">
- <option value="0">{--IS_FIRST_MENU--}</option>';
+ <option value="0">{--ADMIN_IS_FIRST_MENU--}</option>';
foreach ($below as $key => $m) {
if (is_array($m)) {
foreach ($m as $key2 => $m2) {
SQL_FREERESULT($result_menu);
$OUT = '<select class="form_select" name="sort" size="1">
- <option value="0">{--IS_FIRST_MENU--}</option>';
+ <option value="0">{--ADMIN_IS_FIRST_MENU--}</option>';
foreach ($below as $key => $m) {
if (is_array($m)) {
foreach ($m as $key2 => $m2) {
} // END - if
$OUT = '<select class="form_select" name="sort" size="1">
- <option value="">{--IS_FIRST_MENU--}</option>';
+ <option value="">{--ADMIN_IS_FIRST_MENU--}</option>';
foreach ($below as $key => $m) {
if (is_array($m)) {
foreach ($m as $key2 => $m2) {
<form accept-charset="utf-8" action="{%url=modules.php?module=admin&what=admin_add%}" method="post">
<table border="0" cellspacing="0" cellpadding="0" class="table dashed">
<tr>
- <td align="right" width="245">{--ENTER_TITLE--}:</td>
+ <td align="right" width="245">{--ADMIN_ENTER_TITLE--}:</td>
<td width="245" align="center">
<input type="text" name="title" class="form_field" size="30" maxlength="50" />
</td>
</tr>
<tr>
- <td align="right">{--SELECT_WHAT_NAME--}:</td>
+ <td align="right">{--ADMIN_SELECT_WHAT_NAME--}:</td>
<td align="center">
$content[what_selection]<br />
- <span class="notice">({--CREATE_WHAT_FIRST--})</span>
+ <span class="notice">({--ADMIN_CREATE_WHAT_FIRST--})</span>
</td>
</tr>
<tr>
- <td align="right">{--SELECT_PARENT_MENU--}:</td>
+ <td align="right">{--ADMIN_SELECT_PARENT_MENU--}:</td>
<td align="center">
$content[action_selection]<br />
- <span class="notice">({--CREATE_ACTION_FIRST--})</span>
+ <span class="notice">({--ADMIN_CREATE_ACTION_FIRST--})</span>
</td>
</tr>
<tr>
- <td align="right">{--ENTER_DESCR--}:</td>
+ <td align="right">{--ADMIN_ENTER_MENU_DESCRIPTION--}:</td>
<td align="center">
<textarea name="descr" rows="6" cols="45" class="form_field"></textarea>
</td>
</tr>
<tr>
- <td class="bottom" align="right">{--SELECT_BELOW_MENU--}:</td>
+ <td class="bottom" align="right">{--ADMIN_SELECT_BELOW_MENU--}:</td>
<td class="bottom" align="center">$content[below_selection]</td>
</tr>
<tr>
<td align="right">{--ADMIN_SELECT_WHAT_NAME--}:</td>
<td align="center">
$content[what_selection]<br />
- <span class="notice">({--CREATE_WHAT_FIRST--})</span>
+ <span class="notice">({--ADMIN_CREATE_WHAT_FIRST--})</span>
</td>
</tr>
<tr>
<td align="right">{--ADMIN_SELECT_PARENT_MENU--}:</td>
<td align="center">
$content[action_selection]<br />
- <span class="notice">({--CREATE_ACTION_FIRST--})</span>
+ <span class="notice">({--ADMIN_CREATE_ACTION_FIRST--})</span>
</td>
</tr>
<tr>
<td align="center">$content[below_selection]</td>
</tr>
<tr>
- <td align="right">{--MENU_IS_VISIBLE--}:</td>
+ <td align="right">{--ADMIN_MENU_IS_VISIBLE--}:</td>
<td align="center">
<select class="form_select" name="visible" size="1">
<option value="Y">{--YES--}</option>
</td>
</tr>
<tr>
- <td class="bottom" align="right">{--MENU_IS_ACTIVE--}:</td>
+ <td class="bottom" align="right">{--ADMIN_MENU_IS_ACTIVE--}:</td>
<td class="bottom" align="center">
<select class="form_select" name="active" size="1">
<option value="N">{--YES--}</option>
<td align="right">{--ADMIN_SELECT_WHAT_NAME--}:</td>
<td align="center">
$content[what_selection]<br />
- <span class="notice">({--CREATE_WHAT_FIRST--})</span>
+ <span class="notice">({--ADMIN_CREATE_WHAT_FIRST--})</span>
</td>
</tr>
<tr>
<td align="right">{--ADMIN_SELECT_PARENT_MENU--}:</td>
<td align="center">
$content[action_selection]<br />
- <span class="notice">({--CREATE_ACTION_FIRST--})</span>
+ <span class="notice">({--ADMIN_CREATE_ACTION_FIRST--})</span>
</td>
</tr>
<tr>
<td align="center">$content[below_selection]</td>
</tr>
<tr>
- <td align="right">{--MENU_IS_VISIBLE--}:</td>
+ <td align="right">{--ADMIN_MENU_IS_VISIBLE--}:</td>
<td align="center">
<select class="form_select" name="visible" size="1">
<option value="Y">{--YES--}</option>
</td>
</tr>
<tr>
- <td class="bottom" align="right">{--MENU_IS_ACTIVE--}:</td>
+ <td class="bottom" align="right">{--ADMIN_MENU_IS_ACTIVE--}:</td>
<td class="bottom" align="center">
<select class="form_select" name="active" size="1">
<option value="N">{--YES--}</option>
</td>
</tr>
<tr>
- <td class="bottom" align="right">{--REFERAL_PAYOUT--}</td>
+ <td class="bottom" align="right">{--ADMIN_CONFIG_REFERAL_PAYOUT--}</td>
<td class="bottom" align="center">
<input type="text" name="ref_payout" class="form_field" size="3" maxlength="3" value="{?ref_payout?}" />
</td>
<!-- @TODO Shouldn't we add a title here? //-->
<tr>
<td class="header_column bottom right" align="center" width="30"><strong>{--ID_SELECT--}</strong></td>
- <td class="header_column bottom right" align="center"><strong>{--DISPLAY_ACTION--}</strong></td>
- <td class="header_column bottom right" align="center"><strong>{--DISPLAY_WHAT--}</strong></td>
- <td class="header_column bottom right" align="center"><strong>{--DISPLAY_TITLE--}</strong></td>
- <td class="header_column bottom" align="center"><strong>{--SORT_NAVIGATION--}</strong></td>
+ <td class="header_column bottom right" align="center"><strong>{--ADMIN_DISPLAY_ACTION--}</strong></td>
+ <td class="header_column bottom right" align="center"><strong>{--ADMIN_DISPLAY_WHAT--}</strong></td>
+ <td class="header_column bottom right" align="center"><strong>{--ADMIN_DISPLAY_TITLE--}</strong></td>
+ <td class="header_column bottom" align="center"><strong>{--ADMIN_SORT_NAVIGATION--}</strong></td>
</tr>
$content[rows]
<tr>
<table border="0" cellspacing="0" cellpadding="0" class="table dashed">
<tr>
<td class="header_column bottom right" align="center" width="30"><strong>{--ID_SELECT--}</strong></td>
- <td class="header_column bottom right" align="center"><strong>{--DISPLAY_ACTION--}</strong></td>
- <td class="header_column bottom right" align="center"><strong>{--DISPLAY_WHAT--}</strong></td>
- <td class="header_column bottom right" align="center"><strong>{--DISPLAY_TITLE--}</strong></td>
- <td class="header_column bottom" align="center"><strong>{--SORT_NAVIGATION--}</strong></td>
+ <td class="header_column bottom right" align="center"><strong>{--ADMIN_DISPLAY_ACTION--}</strong></td>
+ <td class="header_column bottom right" align="center"><strong>{--ADMIN_DISPLAY_WHAT--}</strong></td>
+ <td class="header_column bottom right" align="center"><strong>{--ADMIN_DISPLAY_TITLE--}</strong></td>
+ <td class="header_column bottom" align="center"><strong>{--ADMIN_SORT_NAVIGATION--}</strong></td>
</tr>
$content[rows]
<tr>
+<div align="center">
<form accept-charset="utf-8" action="{%url=modules.php?dummy=1%}&{%server,query_string%}" method="post">
<table border="0" cellspacing="0" cellpadding="0" class="table dashed" align="center">
<tr>
</tr>
</table>
</form>
+</div>
<table border="0" cellspacing="0" cellpadding="0" class="table dashed">
<tr>
<td class="header_column bottom right" align="center" width="5%"><strong>{--ID_SELECT--}</strong></td>
- <td class="header_column bottom right" align="center" width="25%"><strong>{--DISPLAY_ACTION--}</strong></td>
- <td class="header_column bottom right" align="center" width="25%"><strong>{--DISPLAY_WHAT--}</strong></td>
- <td class="header_column bottom right" align="center" width="25%"><strong>{--DISPLAY_TITLE--}</strong></td>
- <td class="header_column bottom" align="center" width="20%"><strong>{--SORT_NAVIGATION--}</strong></td>
+ <td class="header_column bottom right" align="center" width="25%"><strong>{--ADMIN_DISPLAY_ACTION--}</strong></td>
+ <td class="header_column bottom right" align="center" width="25%"><strong>{--ADMIN_DISPLAY_WHAT--}</strong></td>
+ <td class="header_column bottom right" align="center" width="25%"><strong>{--ADMIN_DISPLAY_TITLE--}</strong></td>
+ <td class="header_column bottom" align="center" width="20%"><strong>{--ADMIN_SORT_NAVIGATION--}</strong></td>
</tr>
$content[rows]
<tr>
</tr>
<tr>
<td align="center" class="top right">
- {--USER_REFERAL_PAYOUT--}:<br />
+ {--ADMIN_USER_REFERAL_PAYOUT--}:<br />
<strong>$content[ref_payout]</strong>
</td>
<td align="center" class="top right">
<table border="0" cellspacing="0" cellpadding="0" class="table dashed">
<tr>
<td align="center" colspan="2" class="table_header bottom">
- <div class="big">{--REQUEST_CONFIRM_LINK_TITLE--}</div>
+ <div class="big">{--GUEST_REQUEST_CONFIRM_LINK_TITLE--}</div>
</td>
</tr>
<tr>
<tr>
<td align="center" colspan="2" class="table_footer">
<input type="reset" class="form_reset" value="{--CLEAR_FORM--}" />
- <input type="submit" name="ok" class="form_submit" value="{--REQUEST_CONFIRM_LINK--}" />
+ <input type="submit" name="ok" class="form_submit" value="{--GUEST_REQUEST_CONFIRM_LINK--}" />
</td>
</tr>
</table>