More language strings rewritten
authorRoland Häder <roland@mxchange.org>
Mon, 23 Feb 2009 16:41:03 +0000 (16:41 +0000)
committerRoland Häder <roland@mxchange.org>
Mon, 23 Feb 2009 16:41:03 +0000 (16:41 +0000)
62 files changed:
inc/filters.php
inc/functions.php
inc/language/admins_de.php
inc/language/de.php
inc/language/doubler_de.php
inc/language/en.php
inc/language/logs_de.php
inc/language/sponsor_de.php
inc/language/task_de.php
inc/libs/surfbar_functions.php
inc/modules/admin/action-admins.php
inc/modules/admin/action-bank.php
inc/modules/admin/action-country.php
inc/modules/admin/action-doubler.php
inc/modules/admin/action-email.php
inc/modules/admin/action-holiday.php
inc/modules/admin/action-login.php
inc/modules/admin/action-menu.php
inc/modules/admin/action-misc.php
inc/modules/admin/action-mods.php
inc/modules/admin/action-newsletter.php
inc/modules/admin/action-payouts.php
inc/modules/admin/action-primera.php
inc/modules/admin/action-rallye.php
inc/modules/admin/action-repair.php
inc/modules/admin/action-setup.php
inc/modules/admin/action-sponsor.php
inc/modules/admin/action-stats.php
inc/modules/admin/action-surfbar.php
inc/modules/admin/action-task.php
inc/modules/admin/action-theme.php
inc/modules/admin/action-transfer.php
inc/modules/admin/action-user.php
inc/modules/admin/action-wernis.php
inc/modules/admin/admin-inc.php
inc/modules/admin/what-add_points.php
inc/modules/admin/what-admins_mails.php
inc/modules/admin/what-del_sponsor.php
inc/modules/admin/what-del_user.php
inc/modules/admin/what-edit_sponsor.php
inc/modules/admin/what-edit_user.php
inc/modules/admin/what-list_cats.php
inc/modules/admin/what-list_links.php
inc/modules/admin/what-list_refs.php
inc/modules/admin/what-list_sponsor.php
inc/modules/admin/what-list_sponsor_pay.php
inc/modules/admin/what-list_sponsor_pays.php
inc/modules/admin/what-list_task.php
inc/modules/admin/what-list_unconfirmed.php
inc/modules/admin/what-list_user.php
inc/modules/admin/what-lock_sponsor.php
inc/modules/admin/what-lock_user.php
inc/modules/admin/what-logs.php
inc/modules/admin/what-sub_points.php
inc/modules/guest/action-admin.php
inc/modules/guest/action-main.php
inc/modules/guest/action-members.php
inc/modules/guest/action-sponsor.php
inc/modules/member/what-mydata.php
inc/modules/member/what-order.php
mailid_top.php
modules.php

index f479861..f289810 100644 (file)
@@ -144,7 +144,7 @@ function REGISTER_FILTER ($filterName, $filterFunction, $silentAbort = true, $fo
        if ((isset($filters[$filterName][$filterFunction])) && (!$force)) {
                // Then abort here
                if (!$silentAbort) {
-                       addFatalMessage(sprintf(getMessage('FILTER_FAILED_ALREADY_ADDED'), $filterFunction, $filterName));
+                       addFatalMessage(getMessage('FILTER_FAILED_ALREADY_ADDED'), array($filterFunction, $filterName));
                } // END - if
 
                // Abort here
@@ -154,7 +154,7 @@ function REGISTER_FILTER ($filterName, $filterFunction, $silentAbort = true, $fo
        // Is the function there?
        if (!function_exists($filterFunction)) {
                // Then abort here
-               addFatalMessage(sprintf(getMessage('FILTER_FAILED_NOT_FOUND'), $filterFunction, $filterName));
+               addFatalMessage(getMessage('FILTER_FAILED_NOT_FOUND'), array($filterFunction, $filterName));
                return false;
        } // END - if
 
@@ -178,7 +178,7 @@ function UNREGISTER_FILTER ($filterName, $filterFunction, $force = false, $dry_r
        // Is that filter there?
        if ((!isset($filters[$filterName][$filterFunction])) && (!$force)) {
                // Not found, so abort here
-               addFatalMessage(sprintf(getMessage('FILTER_FAILED_NOT_REMOVED'), $filterFunction, $filterName));
+               addFatalMessage(getMessage('FILTER_FAILED_NOT_REMOVED'), array($filterFunction, $filterName));
                return false;
        } // END - if
 
@@ -199,7 +199,7 @@ function RUN_FILTER ($filterName, $data = null, $silentAbort = true) {
                // Then abort here (quick'N'dirty hack)
                if ((!$silentAbort) && (defined('FILTER_FAILED_NO_FILTER_FOUND'))) {
                        // Add fatal message
-                       addFatalMessage(sprintf(getMessage('FILTER_FAILED_NO_FILTER_FOUND'), $filterName));
+                       addFatalMessage(getMessage('FILTER_FAILED_NO_FILTER_FOUND'), $filterName);
                } // END - if
 
                // Abort here
@@ -251,7 +251,7 @@ function FILTER_FLUSH_FILTERS () {
        // Is a database link here and not in installation mode?
        if ((!is_resource($link)) && (!isBooleanConstantAndTrue('mxchange_installing'))) {
                // Abort here
-               addFatalMessage(sprintf(getMessage('FILTER_FLUSH_FAILED_NO_DATABASE'), $filterFunction, $filterName));
+               addFatalMessage(getMessage('FILTER_FLUSH_FAILED_NO_DATABASE'), array($filterFunction, $filterName));
                return false;
        } // END - if
 
index 6fc7d1b..ffdcd76 100644 (file)
@@ -185,15 +185,17 @@ function OUTPUT_RAW ($HTML) {
 function addFatalMessage ($message, $extra="") {
        global $FATAL;
 
-       if (empty($extra)) {
-               // Regular text message to add to $FATAL
-               $FATAL[] = $message;
-       } else {
+       if (is_array($extra)) {
+               // Multiple extras for a message with masks
+               $message = call_user_func_array('sprintf', $extra);
+       } elseif (!empty($extra)) {
                // $message is text with a mask plus extras to insert into the text
                $message = sprintf($message, $extra);
-               $FATAL[] = $message;
        }
 
+       // Add message to $FATAL
+       $FATAL[] = $message;
+
        // Log fatal messages away
        DEBUG_LOG(__FUNCTION__, __LINE__, " message={$message}");
 }
@@ -1599,7 +1601,7 @@ function SEND_ADMIN_EMAILS_PRO ($subj, $template, $content, $UID) {
                if ($aid == "-1") {
                        if (EXT_IS_ACTIVE("events")) {
                                // Add line to user events
-                               USERLOG_ADD_LINE($subj, $msg, $UID);
+                               EVENTS_ADD_LINE($subj, $msg, $UID);
                        } else {
                                // Log error for debug
                                DEBUG_LOG(__FUNCTION__, __LINE__, sprintf("Extension 'events' missing: tpl=%s,subj=%s,UID=%s",
@@ -3270,7 +3272,7 @@ function GENERATE_AID_LINK ($aid) {
                        }
                } else {
                        // Maybe deleted?
-                       $admin = "<div class=\"admin_note\">".ADMIN_ID_404_1.$aid.ADMIN_ID_404_2."</div>";
+                       $admin = "<div class=\"admin_note\">".sprintf(getMessage('ADMIN_ID_404'), $aid)."</div>";
                }
        } // END - if
 
index 7afc3a6..24b621e 100644 (file)
@@ -91,7 +91,7 @@ define('ADMINS_MAILS_NO_ENTRIES', "Keine Eintr&auml;ge gefunden!");
 define('ADMINS_MAILS_TITLE', "Admins-Mails verwalten");
 define('ADMIN_ADMINS_TEMPLATE', "Mail-Template");
 define('ADMINS_ALL_ADMINS', "An alle Admins");
-define('ADMINS_TO_USERLOG', "Im Userlog vermerken");
+define('ADMINS_TO_USER_EVENTS', "Im Userlog vermerken");
 define('ADMINS_NO_MAIL_CHECKED', "Keine Mails zum Editieren ausgew&auml;hlt.");
 define('ADMINS_MAILS_EDIT_TITLE', "Ausgew&auml;hlte Templates den Admins zuweisen");
 define('ADMIN_ADMINS_CHANGE', "&Auml;ndern");
index 3c2d2d2..fb49fbe 100644 (file)
@@ -58,9 +58,7 @@ define('_OGESAMT', "KiloByte Gesamt optimiert");
 define('_WOPT', "wurde bereits optimiert");
 define('_OKOPT', "Optimiert!");
 define('LANG_DOWN_MAINTAINCE', "System wegen Wartungsarbeiten geschlossen!");
-define('LANG_MOD_REG_404_1', "Modul <u>");
-define('LANG_MOD_REG_404_2', "</u> existiert nicht!");
-define('LANG_MOD_NOT_REG', " ist nicht registriert!");
+define('LANG_MOD_REG_404', "Modul <u>%s</u> existiert nicht!");
 define('LANG_UNKNOWN_MODULE', "Unbekanntes Modul");
 define('META_YOUR_NAME_1', "Ihr Name hier");
 define('META_YOUR_NAME_2', "Ihr Name nochmal");
@@ -92,14 +90,8 @@ define('FATAL_INC_WRITABLE', "Das Verzeichnis inc ist beschreibbar! Bitte setzen
 define('LANG_WRITE_FOOTER', "Scriptname, -version und -author anzeigen?");
 define('LANG_FRAMESET_ACTIVE', "Soll das Frameset aktiviert werden? (Wenn nein wird ein Table-Set aktiviert)");
 define('MYSQL_ERRORS', "Es sind MySQL-Fehler aufgetreten! Bitte korregieren Sie diese!");
-define('LANG_MOD_REG_UNKNOWN_1', "Der Return-Code <u>");
-define('LANG_MOD_REG_UNKNOWN_2', "</u> ist unbekannt!");
-define('LANG_MOD_REG_LOCKED_1', "Das Modul <u>");
-define('LANG_MOD_REG_LOCKED_2', "</u> wurde gesperrt!");
-define('ADMIN_UNKNOWN_ACTION_1', "Unbekannte Admin-Aktion <u>");
-define('ADMIN_UNKNOWN_ACTION_2', "</u> erkannt! Bitte das Modul richtig aufrufen!");
-define('ADMIN_ACTION_404_1', "Admin-Modul f&uuml;r Aktion <u>");
-define('ADMIN_ACTION_404_2', "</u> nicht gefunden!");
+define('LANG_MOD_REG_UNKNOWN', "Der Return-Code <u>%s</u> ist unbekannt!");
+define('LANG_MOD_REG_LOCKED', "Das Modul <u>%s</u> wurde gesperrt!");
 define('ADMIN_NOT_REGISTERED', "Es ist noch kein Administrator-Account angelegt worden.");
 define('ADMIN_REGISTER_NOW', "Legen Sie jetzt das Administrator-Account an:");
 define('ADMIN_LOGIN', "Geben Sie ein Administrator-Login ein");
@@ -133,9 +125,7 @@ define('TIMEOUT_FULL_YEAR', "1 Jahr");
 define('ADMIN_LOGOUT_DONE', "Ausloggen aus dem Admin-Bereich abgeschlossen!");
 define('ADMIN_LOGOUT_FAILED', "Konnte nicht aus dem Admin-Bereich ausloggen! :-(");
 define('ADMIN_RELOGIN_LINK', "Klicken Sie hier, um sich erneut einzuloggen.");
-define('ADMIN_404_ACTION', "Admin-Modul nicht gefunden!");
-define('ADMIN_404_ACTION_1', "Das aufgerufe Admin-Modul <u>");
-define('ADMIN_404_ACTION_2', "</u> ist zwar g&uuml;ltig, konnte aber nicht auf dem Server gefunden werden.");
+define('ADMIN_ACTION_404', "Das aufgerufe Admin-Modul <u>%s</u> ist zwar g&uuml;ltig, konnte aber nicht auf dem Server gefunden werden.");
 define('ALREADY_INSTALLED', "Dieses Script ist bereits auf diesem Server installiert worden Bitte l&ouml;schen Sie install.php inc/install-inc.php und install.sql von Ihrem Server! (Keine Sorge, Sie k&ouml;nnen es tun...)");
 define('ADMIN_MAIN_TITLE', "Willkommen zum Administrationsbereich");
 define('YOU_ARE_HERE', "Sie sind hier:");
@@ -234,9 +224,7 @@ define('MIN_PASS_LENGTH', "Minimale Passwortl&auml;nge");
 define('SETTINGS_NOT_SAVED', "Einstellungen NICHT gespeichert / ge&auml;ndert!");
 define('SETTINGS_SAVED', "Einstellungen gespeichert.");
 define('FATAL_CANNOT_LOAD_CONFIG', "Kann die Konfigurationsdaten nicht laden! Vermutlich richtet der Webmaster diesen {!MT_WORD2!} gerade das Script erst ein! Bitte schauen Sie sp&auml;ter noch einmal vorbei!");
-define('ADMIN_INVALID_ACTION', "Ung&uuml;ltige action/what-Kombination erkannt! Bitte rufen Sie das Admin-Men&uuml; richtig auf!");
-define('ADMIN_INVALID_ACTION_1', "Die action/what-Kombination <u>");
-define('ADMIN_INVALID_ACTION_2', "</u> ist ung&uuml;ltig!");
+define('ADMIN_ACTION_INVALID', "Die action/what-Kombination <u>%s</u> ist ung&uuml;ltig!");
 define('SHORT_PASS', "Das eingegebene Passwort ist nach unseren Sicherheitseinstellungen zu kurz. Mindestl&auml;nge ist");
 define('EDIT_POINTS_SETTINGS', "&Auml;ndern der Willkommensgutschrift und anderer {!POINTS!}");
 define('POINTS_REGISTER', "Willkommensgutschrift");
@@ -641,19 +629,15 @@ define('ADMIN_MEM_NO_CATS_1', "Das Mitglied <u>");
 define('ADMIN_MEM_NO_CATS_2', "</u> hat keine Kategorien ausgew&auml;hlt!");
 define('USER_ID', "Mitglied");
 define('UNCONFIRMED_LINKS', "Unbest&auml;tigte Mails");
-define('ADMIN_MEMBER_LINKS_1', "Das Mitglied <u>");
-define('ADMIN_MEMBER_LINKS_2', "</u> hat alle seine Mails best&auml;tigt.");
+define('ADMIN_MEMBER_LINKS', "Das Mitglied <u>%s</u> hat alle seine Mails best&auml;tigt.");
 define('MEMBER_TOTAL_LINKS_1', "Es m&uuml;ssen noch <strong>");
 define('MEMBER_TOTAL_LINKS_2', "</strong> Mails von diesem Mitglied best&auml;tigt werden!");
 define('ADMIN_DEL_UNCONFIRMED_LINKS', "Alle unbest&auml;tigten Mails l&ouml;schen");
 define('ADMIN_LINKS_DELETED', "Links f&uuml;r unbest&auml;tigte Mails wurden gel&ouml;scht!");
 define('ADMIN_DEL_LINK_SUBJ', "Ihr unbestaetigen Mails wurden geloescht!");
-define('MEMBER_LINKS_LEFT_1', "Sie haben <strong>");
-define('MEMBER_LINKS_LEFT_2', "</strong> unbest&auml;tigte Mails. Bitte best&auml;tigen Sie diese zuerst. Wenn Sie weniger als <strong>");
-define('MEMBER_LINKS_LEFT_3', "</strong> Mails im Account haben, k&ouml;nnen Sie auch wieder buchen.");
+define('MEMBER_LINKS_LEFT', "Sie haben <strong>%s</strong> unbest&auml;tigte Mails. Bitte best&auml;tigen Sie diese zuerst. Wenn Sie weniger als <strong>%s</strong> Mails im Account haben, k&ouml;nnen Sie auch wieder buchen.");
 define('TODAY', "Heute");
-define('MEMBER_PROFILE_LOCKED_1', "Sie k&ouml;nnen Ihren Account erst am <strong>");
-define('MEMBER_PROFILE_LOCKED_2', "</strong> wieder &auml;ndern!");
+define('MEMBER_PROFILE_LOCKED', "Sie k&ouml;nnen Ihren Account erst am <strong>%s</strong> wieder &auml;ndern!");
 define('MEMBER_HAS_ZERO_MMAILS', "Sie haben Ihren Empfang auf <strong>Urlaub</strong> stehen! Bitte stellen Sie unter &quot;Profildaten &auml;ndern&quot; den Empfang h&ouml;her ein!");
 define('REF_CLIX', "Clicks");
 define('REF_VIEWS', "Views");
@@ -676,10 +660,7 @@ define('ADMIN_DELETE_BONUS_MAIL', "Obrige Bonus-Mail l&ouml;schen");
 define('ADMIN_DELETE_NORMAL_MAIL', "Obrige Normal-Mail l&ouml;schen");
 define('ADMIN_REALLY_DELETE_ALL_MAILS', "Wollen Sie wirklich alle Mails l&ouml;schen?");
 define('SURNAME_FAMILY', "Vor- und Nachname");
-define('ADMIN_TOTAL_REFS_1', "Das Mitglied <strong>");
-define('ADMIN_TOTAL_REFS_2', "</strong> hat bereits <strong>");
-define('ADMIN_TOTAL_REFS_3', "</strong> weitere(s) Mitglied(er) geworben, davon sind <strong>");
-define('ADMIN_TOTAL_REFS_4', "</strong> gesperrt oder nicht best&auml;tigt!");
+define('ADMIN_USER_TOTAL_REFS', "Das Mitglied <strong>%s</strong> hat bereits <strong>%s</strong> weitere(s) Mitglied(er) geworben, davon sind <strong>%s</strong> gesperrt oder nicht best&auml;tigt!");
 define('REFS_COUNT', "Refs");
 define('MEMBER_JOINED', "Beigetreten");
 define('ADMIN_EMAIL_DELETED', "E-Mail wurde aus dem System gel&ouml;scht.");
@@ -695,14 +676,9 @@ define('_OTHERS', "Andere");
 define('_ALL2', "Alle");
 define('WE_HAVE', "Wir haben");
 define('MEMBER_TEST_URL', "Zur beworbenen Seite");
-define('ADMIN_LOGS_DIR_404_1', "Das Verzeichnis mit den Zugriffslogb&uuml;chern konnte nicht gefunden werden! (<strong>");
-define('ADMIN_LOGS_DIR_404_2', "</strong>) Vermutlich unterst&uuml;tzt Ihr Server dieses nicht.");
-define('ADMIN_USAGE_DIR_404_1', "Das Verzeichnis mit den Webalizer-Statistiken konnte nicht gefunden werden! (<strong>");
-define('ADMIN_USAGE_DIR_404_2', "</strong>) Vermutlich unterst&uuml;tzt Ihr Server dieses nicht.");
 define('ADMIN_ENTER_REDIRECT_URL', "URL eingeben, wenn abgelehnt werden soll");
 define('MEMBER_NO_REFBANNER_FOUND', "Es sind noch keine Werbebanner eingerichtet worden. Bitte verwende solange deinen Referal-Link.");
-define('ADMIN_ID_404_1', "ID <strong>");
-define('ADMIN_ID_404_2', "</strong> nicht gefunden!");
+define('ADMIN_ID_404_1', "ID <strong>%s</strong> nicht gefunden!");
 define('ADMIN_ASSIGNED_ADMIN', "Zugewiesener Admin-Login");
 define('ADMIN_MEMBER_UID', "ID des Mitgliedes");
 define('ADMIN_TASK_TYPE', "Aufgabenbereich");
@@ -898,10 +874,8 @@ define('ADMIN_UNKNOWN_FIELD_TYPE_2', "</strong> erkannt!");
 define('ADMIN_ADD_POINTS_TO_USER', "Einem Mitglied {!POINTS!} gutschreiben");
 define('MEMBER_ORDER_DELETED', "Ihre Mailbuchung wurde soeben geloescht");
 define('ADMIN_CALL_NOT_DIRECTLY', "Bitte diesen Men&uuml;punkt nicht direkt aufrufen!");
-define('ADMIN_UNCONFIRMED_POOL_MISSING_1', "Es fehlen Daten im Sende-Pool zur Mail-ID <u>");
-define('ADMIN_UNCONFIRMED_POOL_MISSING_2', "</u> !");
-define('ADMIN_UNCONFIRMED_STATS_MISSING_1', "Es fehlen Daten in der User-Statistik zur Mail-ID <u>");
-define('ADMIN_UNCONFIRMED_STATS_MISSING_2', "</u> !");
+define('ADMIN_UNCONFIRMED_POOL_MISSING', "Es fehlen Daten im Sende-Pool zur Mail-ID <u>%s</u> !");
+define('ADMIN_UNCONFIRMED_STATS_MISSING', "Es fehlen Daten in der User-Statistik zur Mail-ID <u>%s</u> !");
 define('ADMIN_UNCONFIRMED_INVALID_LINK', "Ung&uuml;tigen Link aufgerufen oder Mail ist nicht mehr vorhanden!");
 define('ADMIN_UNCONFIRMED_NO_LINK_LEFT', "Diese Mailbuchung wurde komplett best&auml;tigt!");
 define('ADMIN_CONFIG_REFMODE', "Soll die einmalige Referal-Gutschrift dem Werber alleine oder auch seinem Werber (usw.) gutgeschrieben werden?");
@@ -1074,10 +1048,6 @@ define('ADMIN_LINK_LOCK_USER_TITLE', "Mitglied sperren");
 define('ADMIN_LINK_UNLOCK_USER_TITLE', "Mitglied entsperren");
 define('ADMIN_LINK_ADD_POINTS_TITLE', "{!POINTS!} aufbuchen");
 define('ADMIN_LINK_SUB_POINTS_TITLE', "{!POINTS!} abziehen");
-define('LOGFILE_NOT_READABLE_1', "Das Logbuch <u>");
-define('LOGFILE_NOT_READABLE_2', "</u> konnte nicht geladen werden.");
-define('UNKNOWN_LOGFILE_FORMAT_1', "Das Logbuch <u>");
-define('UNKNOWN_LOGFILE_FORMAT_2', "</u> hat ein ung&uuml;ltiges oder nicht unterst&uuml;tztes Format.");
 define('MESSAGE_HEADER', "Hinweis");
 define('ADMIN_ALPHA_SELCTION', "Alphabetische Suche:");
 define('CATEGORY_NOT_SAVED', "Kategorie <u>%d</u> nicht gespeichert.");
index c7be819..102aa8c 100644 (file)
@@ -120,6 +120,7 @@ define('DOUBLER_FORM_NO_POINTS_LEFT', "Sie haben nicht ausreichend {!POINTS!} &u
 define('DOUBLER_MEMBER_SUBJECT', "Gutschrift durch Verdoppelung");
 define('DOUBLER_PAYOUT_TIME_DIRECT', "Die Auszahlung erfolgt unmittelbar, nachdem gen&uuml;gend {!POINTS!} zusammengekommen sind, um Ihnen die Verdoppelung auszuzahlen.");
 define('DOUBLER_PAYOUT_TIME_RESET', "Abends um 00:00 Uhr jeden Tages wird gepr&uuml;ft, ob gen&uuml;gend {!POINTS!} zusammengekommen sind, um Ihnen die Verdoppelung auszuzahlen.");
+define('DOUBLER_PAYOUT_TIME_UNKNOWN', "Unbebannter Modus <u>%s</u> erkannt. Bitte Bug melden.");
 define('DOUBLER_NO_ENTRIES_FOUND', "Keine Eintr&auml;ge gefunden!");
 define('DOUBLER_TIMEMARK', "Auszahlungstag");
 define('DOUBLER_GENERAL_INFOS', "Allgemeine Informationen zum Verdoppeln");
index b59e0cf..f3bc658 100644 (file)
@@ -42,9 +42,7 @@ define('__LANG_ID', "English (US)");
 
 // Language definitions
 define('LANG_DOWN_MAINTAINCE', "System is down for maintenance.");
-define('LANG_MOD_REG_404_1', "Module <u>");
-define('LANG_MOD_REG_404_2', "</u> does not exists.");
-define('LANG_MOD_NOT_REG', " is not registered.");
+define('LANG_MOD_REG_404', "Module <u>%s</u> does not exists.");
 define('LANG_UNKNOWN_MODULE', "Unknown module");
 define('META_YOUR_NAME_1', "Your name here");
 define('META_YOUR_NAME_2', "Your name again");
@@ -97,14 +95,8 @@ define('FATAL_INC_WRITABLE', "Directory inc is writeable! Please set the access
 define('LANG_WRITE_FOOTER', "Display name, version and author of this script?");
 define('LANG_FRAMESET_ACTIVE', "Enable frameset? If not a table-set will be used instead.");
 define('MYSQL_ERRORS', "MySQL errors detected. Please correct first to continue.");
-define('LANG_MOD_REG_UNKNOWN_1', "Unknown return-code <u>");
-define('LANG_MOD_REG_UNKNOWN_2', "</u> detected!");
-define('LANG_MOD_REG_LOCKED_1', "Selected module <u>");
-define('LANG_MOD_REG_LOCKED_2', "</u> is locked!");
-define('ADMIN_UNKNOWN_ACTION_1', "Unknown administrator-action <u>");
-define('ADMIN_UNKNOWN_ACTION_2', "</u> detected. Please call this module correctly!");
-define('ADMIN_ACTION_404_1', "Administrator module for action <u>");
-define('ADMIN_ACTION_404_2', "</u> was not found on server.");
+define('LANG_MOD_REG_UNKNOWN', "Unknown return-code <u>%s</u> detected!");
+define('LANG_MOD_REG_LOCKED', "Selected module <u>%s</u> is locked!");
 define('ADMIN_NOT_REGISTERED', "There is no administrator account created so far.");
 define('ADMIN_REGISTER_NOW', "Please create an administrator account now:");
 define('ADMIN_LOGIN', "Enter administrator login");
@@ -138,9 +130,7 @@ define('TIMEOUT_FULL_YEAR', "1 Year");
 define('ADMIN_LOGOUT_DONE', "Logout from admin-account completed.");
 define('ADMIN_LOGOUT_FAILED', "Logout from admin-account failed! :-(");
 define('ADMIN_RELOGIN_LINK', "Click here to re-login again.");
-define('ADMIN_404_ACTION', "Admin-module not found!");
-define('ADMIN_404_ACTION_1', "Called admin-module <u>");
-define('ADMIN_404_ACTION_2', "</u> is well valid but it is not on this server.");
+define('ADMIN_ACTION_404', "Called admin-module <u>%s</u> is well valid but it is not on this server.");
 define('ALREADY_INSTALLED', "This script is already installed on this server. Please delete the whole installation system for your server. Don't worry you can do it...");
 define('ADMIN_MAIN_TITLE', "Welcome to the administration area");
 define('YOU_ARE_HERE', "You are here:");
@@ -239,9 +229,7 @@ define('MIN_PASS_LENGTH', "Minimum password length");
 define('SETTINGS_NOT_SAVED', "Settings are NOT saved/changed!");
 define('SETTINGS_SAVED', "Settings saved.");
 define('FATAL_CANNOT_LOAD_CONFIG', "Cannot load base configuration! a possible reason for this message is that the webmaster is setting up this mail exchange. Please come back later again.");
-define('ADMIN_INVALID_ACTION', "Invalid combination of action/what detected! Please click on Home to continue.");
-define('ADMIN_INVALID_ACTION_1', "Your combination action/what <u>");
-define('ADMIN_INVALID_ACTION_2', "</u> is invalid!");
+define('ADMIN_ACTION_INVALID', "Your combination action/what <u>%s</u> is invalid!");
 define('SHORT_PASS', "Your entered password is to short to match with our security conditions. Mimum length is");
 define('EDIT_POINTS_SETTINGS', "Edit welcome credit and other {!POINTS!}");
 define('POINTS_REGISTER', "Wecome credit");
index d1714ec..a38e66d 100644 (file)
@@ -38,12 +38,9 @@ if (!defined('__SECURITY')) {
 }
 
 // Language definitions
-define('ADMIN_LOGS_DIR_404_1', "Das Verzeichnis mit den Zugriffslogb&uuml;chern konnte nicht gefunden werden! (<strong>");
-define('ADMIN_LOGS_DIR_404_2', "</strong>) Vermutlich unterst&uuml;tzt Ihr Server dieses nicht.");
-define('LOGFILE_NOT_READABLE_1', "Das Logbuch <u>");
-define('LOGFILE_NOT_READABLE_2', "</u> konnte nicht geladen werden.");
-define('UNKNOWN_LOGFILE_FORMAT_1', "Das Logbuch <u>");
-define('UNKNOWN_LOGFILE_FORMAT_2', "</u> hat ein ung&uuml;ltiges oder nicht unterst&uuml;tztes Format.");
+define('ADMIN_LOGS_DIR_404', "Das Verzeichnis mit den Zugriffslogb&uuml;chern konnte nicht gefunden werden! (<u>%s</u>) Vermutlich unterst&uuml;tzt Ihr Server dieses nicht.");
+define('ADMIN_LOGFILE_NOT_READABLE', "Das Logbuch <u>%s</u> konnte nicht geladen werden.");
+define('ADMIN_UNKNOWN_LOGFILE_FORMAT', "Das Logbuch <u>%s</u> hat ein ung&uuml;ltiges oder nicht unterst&uuml;tztes Format.");
 
 //
 ?>
index 7065464..4ce1bc2 100644 (file)
@@ -82,10 +82,8 @@ define('ACCOUNT_PENDING', "Wartend");
 define('ADMIN_LIST_SPONSOR_ACCOUNTS', "Alle Sponsoren auflisten");
 define('SPONSOR_POINTS_LEFT', "Restguthaben");
 define('ADMIN_LIST_SPONSOR_NOTES', "Klicken Sie auf die ID-Nummer, um weitere Details zu sehen und um weitere Aktionen am Sponsorenaccount durchf&uuml;hren zu k&ouml;nnen! Klicken Sie auf das Restguthaben an {!POINTS!}, um dem jeweiligen Sponsor mehr {!POINTS!} aufzubuchen.");
-define('ADMIN_SPONSOR_404_1', "Sponsorenaccount <u>");
-define('ADMIN_SPONSOR_404_2', "</u> nicht gefunden!");
-define('ADMIN_SPONSOR_REFS_404_1', "Der Sponsor <u>");
-define('ADMIN_SPONSOR_REFS_404_2', "</u> hat keine Referals!");
+define('ADMIN_SPONSOR_404', "Sponsorenaccount <u>%s</u> nicht gefunden!");
+define('ADMIN_SPONSOR_REFS_404', "Der Sponsor <u>%s</u> hat keine Referals!");
 define('ADMIN_SPONSOR_DETAILS', "Datenblatt eines Sponsors");
 define('ADMIN_SPONSOR_COMPANY_DATA', "Firmendaten des Sponsors");
 define('ADMIN_SPONSOR_PERSONA_DATA', "Pers&ouml;nliche Daten des Sponsors");
@@ -100,10 +98,8 @@ define('ADMIN_SPONSOR_ACTIONS', "Aktionen am Sponsorenaccount");
 define('SPONSOR_ID', "Sponsor-ID");
 define('SPONSOR_STATUS', "Sponsor-Status");
 define('SPONSOR_REFERRALS', "Sponsoren geworben");
-define('ADMIN_INVALID_MODE_1', "Ung&uuml;tiger Modus <u>");
-define('ADMIN_INVALID_MODE_2', "</u> angegeben!");
-define('ADMIN_TPL_404_1', "Modus-Template <u>");
-define('ADMIN_TPL_404_2', "</u> nicht gefunden!");
+define('ADMIN_SPONSOR_INVALID_MODE', "Ung&uuml;tiger Modus <u>%s</u> angegeben!");
+define('ADMIN_SPONSOR_MODUS_TPL_404', "Modus-Template <u>%s</u> nicht gefunden!");
 define('ADMIN_ADD_POINTS_TO_SPONSOR', "{!POINTS!} gutschreiben");
 define('ADMIN_SUB_POINTS_FROM_SPONSOR', "{!POINTS!} abziehen");
 define('ADMIN_SUM_SPONSOR_POINTS', "Summe {!POINTS!}");
@@ -118,8 +114,7 @@ define('ADMIN_HEADER_DEL_SPONSOR_1', "Sponsorenaccount <u>");
 define('ADMIN_HEADER_DEL_SPONSOR_2', "</u> l&ouml;schen");
 define('ADMIN_TEXT_DEL_SPONSOR_1', "M&ouml;chten Sie den Sponsoren <strong>");
 define('ADMIN_TEXT_DEL_SPONSOR_2', "</strong> mit samt aller seiner Bestellungen unwiederruflich l&ouml;schen?");
-define('SPONSOR_DELETED_1', "Sponsorenaccount <u>");
-define('SPONSOR_DELETED_2', "</u> entfernt.");
+define('ADMIN_SPONSOR_DELETED', "Sponsorenaccount <u>%s</u> entfernt.");
 define('GUEST_SPONSOR_TITLE', "Anmeldung als Sponsor");
 define('GUEST_SPONSOR_TEASER_1', "Melden Sie sich als Sponsor von <strong>{!MAIN_TITLE!}</strong> an! Hier bekommen Sie f&uuml;r Ihr Geld die Zielgruppe, die Sie auch auf Ihren Produktseiten haben wollen!");
 define('GUEST_SPONSOR_TEASER_2', "Alles inklusiv: Ausf&uuml;hrliche Statistiken (auch per Mail im gew&uuml;nschten Zeitabstand) und einfache Verwaltung Ihrer {!POINTS!} mit nur wenigen Klicks!");
@@ -141,7 +136,7 @@ define('SPONSOR_ACCEPT_TERMS', "Ich/wir habe/n die [<strong><a href=\"{!URL!}/mo
 define('SPONSOR_TERMS_HEADER', "Allgemeine Gesch&auml;ftsbedingungen");
 
 // Add payment types
-define('SPONSOR_ADMIN_NO_PAYTYPES', "Noch keine Buchungspakete eingerichtet!");
+define('ADMIN_SPONSOR_NO_PAYTYPES', "Noch keine Buchungspakete eingerichtet!");
 define('ADMIN_ADD_SPONSOR_PAYTYPE_TITLE', "Neue Buchungspaket hinzuf&uuml;gen");
 define('ADMIN_ADD_SPONSOR_PAYTYPE', "Buchungspaket hinzuf&uuml;gen");
 define('SPONSOR_PAYTYPE_NAME', "Bezeichnung");
@@ -155,10 +150,10 @@ define('SPONSOR_PAYTYPE_NAME_NOTE', "Geben Sie eine passende Bezeichnung zum Buc
 define('SPONSOR_PAYTYPE_RATE_NOTE', "Wie viele {!POINTS!} soll der Sponsor f&uuml;r z.B. 1 &euro; bekommen?");
 define('SPONSOR_PAYTYPE_MIN_COUNT_NOTE', "Und wie oft soll dieses Buchungspaket <strong>mindestens</strong> eingekauft werden? (meistens einmal)");
 define('SPONSOR_PAYTYPE_CURRENCY_NOTE', "W&auml;hrung des Geldbetrages, die der Sponsor an Sie &uuml;berweisen soll.");
-define('SPONSOR_ADMIN_PAYTYPE_ALREADY_1', "Buchungspaket <u>");
-define('SPONSOR_ADMIN_PAYTYPE_ALREADY_2', "</u> bereits eingerichtet.");
-define('SPONSOR_ADMIN_PAYTYPE_ADDED_1', "Buchungspaket <u>");
-define('SPONSOR_ADMIN_PAYTYPE_ADDED_2', "</u> hinzugef&uuml;gt.");
+define('ADMIN_SPONSOR_PAYTYPE_ALREADY_1', "Buchungspaket <u>");
+define('ADMIN_SPONSOR_PAYTYPE_ALREADY_2', "</u> bereits eingerichtet.");
+define('ADMIN_SPONSOR_PAYTYPE_ADDED_1', "Buchungspaket <u>");
+define('ADMIN_SPONSOR_PAYTYPE_ADDED_2', "</u> hinzugef&uuml;gt.");
 define('SPONSOR_LIST_PAYMENT_TYPES_TITLE', "Buchungspakete auflisten, bearbeiten und l&ouml;schen");
 define('SPONSOR_PAYTYPE_MIN_COUNT2', "Minium");
 define('ADMIN_SPONSOR_PAYTYPE_EDIT', "Bearbeiten");
@@ -206,12 +201,12 @@ define('ADMIN_LIST_SPONSOR_ORDERS', "Bestellungen bearbeiten");
 
 // Subject lines
 define('SPONSOR_UNLOCKED_SUBJ', "Freischaltung Ihres Sponsorenaccounts");
-define('SPONSOR_ADMIN_ADD_POINTS', "Gutschrift durch den Admin!");
-define('SPONSOR_ADMIN_SUB_POINTS', "Abzug durch den Admin!");
+define('ADMIN_SPONSOR_ADD_POINTS', "Gutschrift durch den Admin!");
+define('ADMIN_SPONSOR_SUB_POINTS', "Abzug durch den Admin!");
 define('SPONSOR_SUBJECT_LOCKED', "HINWEIS: Sperrung Ihres Sponsorenaccounts!");
 define('SPONSOR_SUBJECT_UNLOCKED', "HINWEIS: Freigabe Ihres Sponsorenaccounts!");
-define('SPONSOR_ADMIN_EDIT_SUBJECT', "HINWEIS: Sponsorenaccount geaendert durch Admin!");
-define('SPONSOR_ADMIN_DEL_SUBJECT', "HINWEIS: Sponsorenaccount geloescht durch Admin!");
+define('ADMIN_SPONSOR_EDIT_SUBJECT', "HINWEIS: Sponsorenaccount geaendert durch Admin!");
+define('ADMIN_SPONSOR_DEL_SUBJECT', "HINWEIS: Sponsorenaccount geloescht durch Admin!");
 define('SPONSOR_PLEASE_CONFIRM_SUBJ', "HINWEIS: Bitte bestaetigen Sie Ihren Account!");
 define('SPONSOR_ACCOUNT_PENDING_SUBJ', "HINWEIS: Ihr Account warten auf Freischaltung!");
 define('ADMIN_NEW_SPONSOR', "Neue Anmeldung eines Sponsors");
index b492bca..b24dcdb 100644 (file)
@@ -58,8 +58,7 @@ define('TASK_ADMIN_MAIL_SEND', "Versendete Mails");
 define('TASK_ADMIN_MAIL_DELETED', "Bereinigte Mails");
 define('TASK_ADMIN_MAIL_BONUS_AP', "Bereinigte Bonus-Mails");
 define('TASK_ADMIN_MAIL_BONUS_SEND', "Versendete Bonus-Mails");
-define('TASK_ADMIN_UNKNOWN_MODE_1', "Unbekannter Modus <u>");
-define('TASK_ADMIN_UNKNOWN_MODE_2', "</u> erkannt!");
+define('ADMIN_TASK_UNKNOWN_MODE', "Unbekannter Modus <u>%s</u> erkannt!");
 define('ADMIN_OVERVIEW_TASK_YOUR_TYPE', "Ihre zugewiesen Aufgaben (ohne Updates)");
 define('ADMIN_OVERVIEW_TASK_UPDATES_TYPE', "Automatisch durchgef&uuml;hrte Updates");
 define('ADMIN_OVERVIEW_TASK_SOLVED_TYPE', "Ihre erledigten Aufgaben");
@@ -71,7 +70,6 @@ define('TASK_DELETE_MODE_NOTE', "Diese Aufgaben sind zum automatischen L&ouml;sc
 Die automatische L&ouml;schung erfolgt durch die autopurge-Erweiterung.<br />
 Sie k&ouml;nnen die Aufgaben aber auch jetzt endg&uuml;ltig l&ouml;schen!");
 define('TASK_ADMIN_UNKNOWN_LIST_TITLE', "Linktitel nicht gesetzt!");
-
 define('TASK_ADMIN_INACTIVE_AUTOPURGE', "Inaktive Accounts");
 define('TASK_ADMIN_INACTIVE_AUTOPURGE_TITLE', "Es gibt inaktiv gewordene Mitglieder in Ihrem {!MT_WORD!}!");
 define('TASK_ADMIN_LIST_PAYOUTS_WAITING', "Wart. Auszahlungen");
index 5d7c8f9..87b924d 100644 (file)
@@ -247,7 +247,7 @@ function SURFBAR_MEMBER_DO_FORM ($formData, $URLs) {
        } else {
                // Log invalid request
                DEBUG_LOG(__FUNCTION__, __LINE__, " action={$formData['action']},id={$formData['id']},function={$functionName}");
-               addFatalMessage(sprintf("Invalid member action! action=%s,id=%s,function=%s", $formData['action'], $formData['id'], $functionName));
+               addFatalMessage("Invalid member action! action=%s,id=%s,function=%s", array($formData['action'], $formData['id'], $functionName));
        }
 
        // Return status
@@ -407,7 +407,7 @@ function SURFBAR_MEMBER_EXECUTE_ACTION ($action, $urlData) {
                } // END - if
        } else {
                // Not found!
-               addFatalMessage(sprintf(MEMBER_SURFBAR_EXECUTE_ACTION_404, $functionName));
+               addFatalMessage(MEMBER_SURFBAR_EXECUTE_ACTION_404, $functionName);
        }
 
        // Return status
index 69eaf11..85685d1 100644 (file)
@@ -46,7 +46,7 @@ if (FILE_READABLE($INC)) {
        // Ok, we finally load the admin action module
        LOAD_INC($INC);
 } else {
-       addFatalMessage(ADMIN_404_ACTION_1.$GLOBALS['what'].ADMIN_404_ACTION_2);
+       addFatalMessage(getMessage('ADMIN_ACTION_404'), $GLOBALS['what']);
 }
 
 //
index 2247dfd..3c41577 100644 (file)
@@ -46,7 +46,7 @@ if (FILE_READABLE($INC)) {
        // Ok, we finally load the admin action module
        LOAD_INC($INC);
 } else {
-       addFatalMessage(ADMIN_404_ACTION_1.$GLOBALS['what'].ADMIN_404_ACTION_2);
+       addFatalMessage(getMessage('ADMIN_ACTION_404'), $GLOBALS['what']);
 }
 
 //
index 572b5a8..d9511b3 100644 (file)
@@ -46,7 +46,7 @@ if (FILE_READABLE($INC)) {
        // Ok, we finally load the admin action module
        LOAD_INC($INC);
 } else {
-       addFatalMessage(ADMIN_404_ACTION_1.$GLOBALS['what'].ADMIN_404_ACTION_2);
+       addFatalMessage(getMessage('ADMIN_ACTION_404'), $GLOBALS['what']);
 }
 
 //
index ec9c8cf..08cfc5f 100644 (file)
@@ -47,7 +47,7 @@ if (FILE_READABLE($INC)) {
        LOAD_INC($INC);
 } else {
        // "what file" not found
-       addFatalMessage(ADMIN_404_ACTION_1.$GLOBALS['what'].ADMIN_404_ACTION_2);
+       addFatalMessage(getMessage('ADMIN_ACTION_404'), $GLOBALS['what']);
 }
 
 //
index 303a858..ca1f750 100644 (file)
@@ -46,7 +46,7 @@ if (FILE_READABLE($INC)) {
        // Ok, we finally load the admin action module
        LOAD_INC($INC);
 } else {
-       addFatalMessage(ADMIN_404_ACTION_1.$GLOBALS['what'].ADMIN_404_ACTION_2);
+       addFatalMessage(getMessage('ADMIN_ACTION_404'), $GLOBALS['what']);
 }
 
 //
index dcdc7e3..2cdec1e 100644 (file)
@@ -46,7 +46,7 @@ if (FILE_READABLE($INC)) {
        // Ok, we finally load the admin action module
        LOAD_INC($INC);
 } else {
-       addFatalMessage(ADMIN_404_ACTION_1.$GLOBALS['what'].ADMIN_404_ACTION_2);
+       addFatalMessage(getMessage('ADMIN_ACTION_404'), $GLOBALS['what']);
 }
 
 //
index cc980cf..5e4d6eb 100644 (file)
@@ -46,7 +46,7 @@ if (FILE_READABLE($INC)) {
        // Ok, we finally load the admin action module
        LOAD_INC($INC);
 } else {
-       addFatalMessage(ADMIN_404_ACTION_1.$GLOBALS['what'].ADMIN_404_ACTION_2);
+       addFatalMessage(getMessage('ADMIN_ACTION_404'), $GLOBALS['what']);
 }
 
 //
index eec930c..bc860f3 100644 (file)
@@ -46,7 +46,7 @@ if (FILE_READABLE($INC)) {
        // Ok, we finally load the admin action module
        LOAD_INC($INC);
 } else {
-       addFatalMessage(ADMIN_404_ACTION_1.$GLOBALS['what'].ADMIN_404_ACTION_2);
+       addFatalMessage(getMessage('ADMIN_ACTION_404'), $GLOBALS['what']);
 }
 
 //
index 6f6b74a..81e5691 100644 (file)
@@ -46,7 +46,7 @@ if (FILE_READABLE($INC)) {
        // Ok, we finally load the admin action module
        LOAD_INC($INC);
 } else {
-       addFatalMessage(ADMIN_404_ACTION_1.$GLOBALS['what'].ADMIN_404_ACTION_2);
+       addFatalMessage(getMessage('ADMIN_ACTION_404'), $GLOBALS['what']);
 }
 
 //
index a0ecec3..3d52377 100644 (file)
@@ -46,7 +46,7 @@ if (FILE_READABLE($INC)) {
        // Ok, we finally load the admin action module
        LOAD_INC($INC);
 } else {
-       addFatalMessage(ADMIN_404_ACTION_1.$GLOBALS['what'].ADMIN_404_ACTION_2);
+       addFatalMessage(getMessage('ADMIN_ACTION_404'), $GLOBALS['what']);
 }
 
 //
index eae1d18..658d608 100644 (file)
@@ -46,7 +46,7 @@ if (FILE_READABLE($INC)) {
        // Ok, we finally load the admin action module
        LOAD_INC($INC);
 } else {
-       addFatalMessage(ADMIN_404_ACTION_1.$GLOBALS['what'].ADMIN_404_ACTION_2);
+       addFatalMessage(getMessage('ADMIN_ACTION_404'), $GLOBALS['what']);
 }
 
 //
index 29af434..5b9c3c0 100644 (file)
@@ -46,7 +46,7 @@ if (FILE_READABLE($INC)) {
        // Ok, we finally load the admin action module
        LOAD_INC($INC);
 } else {
-       addFatalMessage(ADMIN_404_ACTION_1.$GLOBALS['what'].ADMIN_404_ACTION_2);
+       addFatalMessage(getMessage('ADMIN_ACTION_404'), $GLOBALS['what']);
 }
 
 //
index 48bc6cc..870416a 100644 (file)
@@ -46,7 +46,7 @@ if (FILE_READABLE($INC)) {
        // Ok, we finally load the admin action module
        LOAD_INC($INC);
 } else {
-       addFatalMessage(ADMIN_404_ACTION_1.$GLOBALS['what'].ADMIN_404_ACTION_2);
+       addFatalMessage(getMessage('ADMIN_ACTION_404'), $GLOBALS['what']);
 }
 
 //
index 9b7df7e..f0719b7 100644 (file)
@@ -46,7 +46,7 @@ if (FILE_READABLE($INC)) {
        // Ok, we finally load the admin action module
        LOAD_INC($INC);
 } else {
-       addFatalMessage(ADMIN_404_ACTION_1.$GLOBALS['what'].ADMIN_404_ACTION_2);
+       addFatalMessage(getMessage('ADMIN_ACTION_404'), $GLOBALS['what']);
 }
 
 //
index f94fd84..d6fc98d 100644 (file)
@@ -46,7 +46,7 @@ if (FILE_READABLE($INC)) {
        // Ok, we finally load the admin action module
        LOAD_INC($INC);
 } else {
-       addFatalMessage(ADMIN_404_ACTION_1.$GLOBALS['what'].ADMIN_404_ACTION_2);
+       addFatalMessage(getMessage('ADMIN_ACTION_404'), $GLOBALS['what']);
 }
 
 //
index d2cb9c5..de7d1a4 100644 (file)
@@ -46,7 +46,7 @@ if (FILE_READABLE($INC)) {
        // Ok, we finally load the admin action module
        LOAD_INC($INC);
 } else {
-       addFatalMessage(ADMIN_404_ACTION_1.$GLOBALS['what'].ADMIN_404_ACTION_2);
+       addFatalMessage(getMessage('ADMIN_ACTION_404'), $GLOBALS['what']);
 }
 
 //
index b9452b7..8eabf88 100644 (file)
@@ -46,7 +46,7 @@ if (FILE_READABLE($INC)) {
        // Ok, we finally load the admin action module
        LOAD_INC($INC);
 } else {
-       addFatalMessage(ADMIN_404_ACTION_1.$GLOBALS['what'].ADMIN_404_ACTION_2);
+       addFatalMessage(getMessage('ADMIN_ACTION_404'), $GLOBALS['what']);
 }
 //
 ?>
index 4100288..9615d36 100644 (file)
@@ -46,7 +46,7 @@ if (FILE_READABLE($INC)) {
        // Ok, we finally load the admin action module
        LOAD_INC($INC);
 } else {
-       addFatalMessage(ADMIN_404_ACTION_1.$GLOBALS['what'].ADMIN_404_ACTION_2);
+       addFatalMessage(getMessage('ADMIN_ACTION_404'), $GLOBALS['what']);
 }
 
 //
index 9b721fe..90b4246 100644 (file)
@@ -46,7 +46,7 @@ if (FILE_READABLE($INC)) {
        // Ok, we finally load the admin action module
        LOAD_INC($INC);
 } else {
-       addFatalMessage(ADMIN_404_ACTION_1.$GLOBALS['what'].ADMIN_404_ACTION_2);
+       addFatalMessage(getMessage('ADMIN_ACTION_404'), $GLOBALS['what']);
 }
 
 //
index 3aa5af4..cbbd29c 100644 (file)
@@ -49,7 +49,7 @@ if (FILE_READABLE($INC)) {
        // Ok, we finally load the admin action module
        LOAD_INC($INC);
 } else {
-       addFatalMessage(ADMIN_404_ACTION_1.$GLOBALS['what'].ADMIN_404_ACTION_2);
+       addFatalMessage(getMessage('ADMIN_ACTION_404'), $GLOBALS['what']);
 }
 
 //
index d1e14ad..05cc6dd 100644 (file)
@@ -46,7 +46,7 @@ if (FILE_READABLE($INC)) {
        // Ok, we finally load the admin action module
        LOAD_INC($INC);
 } else {
-       addFatalMessage(ADMIN_404_ACTION_1.$GLOBALS['what'].ADMIN_404_ACTION_2);
+       addFatalMessage(getMessage('ADMIN_ACTION_404'), $GLOBALS['what']);
 }
 
 //
index 8175c2f..048c8e3 100644 (file)
@@ -46,7 +46,7 @@ if (FILE_READABLE($INC)) {
        // Ok, we finally load the admin action module
        LOAD_INC($INC);
 } else {
-       addFatalMessage(ADMIN_404_ACTION_1.$GLOBALS['what'].ADMIN_404_ACTION_2);
+       addFatalMessage(getMessage('ADMIN_ACTION_404'), $GLOBALS['what']);
 }
 
 //
index cdc5240..a882e54 100644 (file)
@@ -46,7 +46,7 @@ if (FILE_READABLE($INC)) {
        // Ok, we finally load the admin action module
        LOAD_INC($INC);
 } else {
-       addFatalMessage(ADMIN_404_ACTION_1.$GLOBALS['what'].ADMIN_404_ACTION_2);
+       addFatalMessage(getMessage('ADMIN_ACTION_404'), $GLOBALS['what']);
 }
 
 //
index 4957c8f..3e32313 100644 (file)
@@ -46,7 +46,7 @@ if (FILE_READABLE($INC)) {
        // Ok, we finally load the admin action module
        LOAD_INC($INC);
 } else {
-       addFatalMessage(ADMIN_404_ACTION_1.$GLOBALS['what'].ADMIN_404_ACTION_2);
+       addFatalMessage(getMessage('ADMIN_ACTION_404'), $GLOBALS['what']);
 }
 
 //
index 50174c2..2850f95 100644 (file)
@@ -359,13 +359,13 @@ LIMIT 1", array($act, $wht, $wht), __FILE__, __LINE__);
                        addFatalMessage(getMessage('ADMIN_ACCESS_DENIED'));
                } else {
                        // Include file not found! :-(
-                       LOAD_TEMPLATE("admin_menu_failed", false, getMessage('ADMIN_404_ACTION'));
-                       addFatalMessage(ADMIN_404_ACTION_1.$act.ADMIN_404_ACTION_2);
+                       LOAD_TEMPLATE("admin_menu_failed", false, sprintf(getMessage('ADMIN_ACTION_404'), $act));
+                       addFatalMessage(getMessage('ADMIN_ACTION_404'), $act);
                }
        } else {
                // Invalid action/what pair found!
-               LOAD_TEMPLATE("admin_menu_failed", false, getMessage('ADMIN_INVALID_ACTION'));
-               addFatalMessage(ADMIN_INVALID_ACTION_1.$act."/".$wht.ADMIN_INVALID_ACTION_2);
+               LOAD_TEMPLATE("admin_menu_failed", false, sprintf(getMessage('ADMIN_ACTION_INVALID'), $act."/".$wht));
+               addFatalMessage(getMessage('ADMIN_ACTION_INVALID'), $act."/".$wht);
        }
 
        // Free memory
index cf78351..3dc99e4 100644 (file)
@@ -114,7 +114,7 @@ if ($_GET['u_id'] == "all") {
                }
        } else {
                // User not found!
-               LOAD_TEMPLATE("admin_settings_saved", false, "<div class=\"admin_failed\">".ADMIN_MEMBER_404_1.$_GET['u_id'].ADMIN_MEMBER_404_2."</div>");
+               LOAD_TEMPLATE("admin_settings_saved", false, "<div class=\"admin_failed\">".sprintf(getMessage('ADMIN_MEMBER_404'), $_GET['u_id'])."</div>");
        }
 } else {
        // Output selection form with all confirmed user accounts listed
index 3305017..1c56e96 100644 (file)
@@ -63,7 +63,7 @@ if (isset($_POST['edit']))
                                if (EXT_IS_ACTIVE("events")) {
                                        $OUT .= "<option value=\"-1\"";
                                        if ($aid == "-1") $OUT .= " selected=\"selected\"";
-                                       $OUT .= ">{--ADMINS_TO_USERLOG--}</option>\n";
+                                       $OUT .= ">{--ADMINS_TO_USER_EVENTS--}</option>\n";
                                }
                                $OUT .= ADD_OPTION_LINES("admins", "id", "login", $aid, "email");
                                $OUT .= "</select><br />\n";
index fb7df51..51b98f7 100644 (file)
@@ -60,7 +60,7 @@ if (!empty($_GET['id'])) {
 
                        // Prepare message and send it away
                        $msg = LOAD_EMAIL_TEMPLATE("del_sponsor", $_POST['reason'], bigintval($_GET['id']));
-                       SEND_EMAIL($email, getMessage('SPONSOR_ADMIN_DEL_SUBJECT'), $msg);
+                       SEND_EMAIL($email, getMessage('ADMIN_SPONSOR_DEL_SUBJECT'), $msg);
 
                        // Remove account
                        SQL_QUERY_ESC("DELETE LOW_PRIORITY FROM `{!_MYSQL_PREFIX!}_sponsor_data` WHERE id='%s' LIMIT 1",
@@ -71,7 +71,7 @@ if (!empty($_GET['id'])) {
                                array(bigintval($_GET['id'])), __FILE__, __LINE__);
 
                        // Output message
-                       LOAD_TEMPLATE("admin_settings_saved", false, SPONSOR_DELETED_1.bigintval($_GET['id']).SPONSOR_DELETED_2);
+                       LOAD_TEMPLATE("admin_settings_saved", false, sprintf(getMessage('ADMIN_SPONSOR_DELETED'), bigintval($_GET['id'])));
                } elseif (!empty($_POST['no'])) {
                        // Do not delete him...
                        LOAD_URL("modules.php?module=admin&amp;what=list_sponsor&amp;id=".bigintval($_GET['id']));
@@ -91,7 +91,7 @@ if (!empty($_GET['id'])) {
                }
        } else {
                // Sponsor not found!
-               LOAD_TEMPLATE("admin_settings_saved", false, ADMIN_SPONSOR_404_1.bigintval($_GET['id']).ADMIN_SPONSOR_404_2);
+               LOAD_TEMPLATE("admin_settings_saved", false, sprintf(getMessage('ADMIN_SPONSOR_404'), bigintval($_GET['id'])));
        }
 } else {
        // Not called by what-list_sponsor.php
index f3b27c7..c7a798a 100644 (file)
@@ -54,7 +54,7 @@ if ((isset($_POST['ok'])) || ((isset($_POST['del'])) && (!empty($_POST['reason']
                LOAD_TEMPLATE("admin_settings_saved", false, "<div class=\"admin_green\">".ADMIN_DEL_COMPLETED."</div>");
        } else {
                // Account does not exists!
-               LOAD_TEMPLATE("admin_settings_saved", false, "<div class=\"admin_failed\">".ADMIN_MEMBER_404_1.$_GET['u_id'].ADMIN_MEMBER_404_2."</div>");
+               LOAD_TEMPLATE("admin_settings_saved", false, "<div class=\"admin_failed\">".sprintf(getMessage('ADMIN_MEMBER_404'), $_GET['u_id'])."</div>");
        }
 } elseif (!empty($_POST['no'])) {
        // Do not delete him...
@@ -81,7 +81,7 @@ if ((isset($_POST['ok'])) || ((isset($_POST['del'])) && (!empty($_POST['reason']
                LOAD_TEMPLATE("admin_del_user");
        } else {
                // Account does not exists!
-               LOAD_TEMPLATE("admin_settings_saved", false, "<div class=\"admin_failed\">".ADMIN_MEMBER_404_1.$_GET['u_id'].ADMIN_MEMBER_404_2."</div>");
+               LOAD_TEMPLATE("admin_settings_saved", false, "<div class=\"admin_failed\">".sprintf(getMessage('ADMIN_MEMBER_404'), $_GET['u_id'])."</div>");
        }
 }
 
index dd3d722..4b448b2 100644 (file)
@@ -118,7 +118,7 @@ if ((!empty($_GET['id'])) && (!empty($_GET['mode']))) {
 
                                        // Send email
                                        $msg = LOAD_EMAIL_TEMPLATE("sponsor_add_points", $_POST['reason'], true);
-                                       SEND_EMAIL(__EMAIL, SPONSOR_ADMIN_ADD_POINTS, $msg);
+                                       SEND_EMAIL(__EMAIL, ADMIN_SPONSOR_ADD_POINTS, $msg);
                                        $MSG = ADMIN_SPONSOR_POINTS_ADDED;
                                } else {
                                        // No points entered to add!
@@ -141,7 +141,7 @@ if ((!empty($_GET['id'])) && (!empty($_GET['mode']))) {
 
                                        // Send email
                                        $msg = LOAD_EMAIL_TEMPLATE("sponsor_sub_points", $_POST['reason'], true);
-                                       SEND_EMAIL(__EMAIL, SPONSOR_ADMIN_SUB_POINTS, $msg);
+                                       SEND_EMAIL(__EMAIL, ADMIN_SPONSOR_SUB_POINTS, $msg);
                                        $MSG = ADMIN_SPONSOR_POINTS_SUBTRACTED;
                                } else {
                                        // No points entered to add!
@@ -172,12 +172,12 @@ if ((!empty($_GET['id'])) && (!empty($_GET['mode']))) {
 
                                // Load email template and send the mail away
                                $msg = LOAD_EMAIL_TEMPLATE("admin_sponsor_edit", $_POST, false);
-                               SEND_EMAIL($_POST['email'], SPONSOR_ADMIN_EDIT_SUBJECT, $msg);
+                               SEND_EMAIL($_POST['email'], ADMIN_SPONSOR_EDIT_SUBJECT, $msg);
                                break;
 
                        default: // Unknown mode
                                DEBUG_LOG(__FILE__, __LINE__, sprintf("Unknown mode %s detected.", $_GET['mode']));
-                               $MSG = ADMIN_INVALID_MODE_1.SQL_ESCAPE($_GET['mode']).ADMIN_INVALID_MODE_2;
+                               $MSG = sprintf(getMessage('ADMIN_SPONSOR_INVALID_MODE'), SQL_ESCAPE($_GET['mode']));
                                break;
                        }
 
@@ -193,11 +193,11 @@ if ((!empty($_GET['id'])) && (!empty($_GET['mode']))) {
                        LOAD_TEMPLATE($TPL);
                } else {
                        // Template not found!
-                       LOAD_TEMPLATE("admin_settings_saved", false, ADMIN_TPL_404_1.SQL_ESCAPE($_GET['mode']).ADMIN_TPL_404_2);
+                       LOAD_TEMPLATE("admin_settings_saved", false, sprintf(getMessage('ADMIN_SPONSOR_MODUS_TPL_404'), SQL_ESCAPE($_GET['mode'])));
                }
        } else {
                // Sponsor not found!
-               LOAD_TEMPLATE("admin_settings_saved", false, ADMIN_SPONSOR_404_1.bigintval($_GET['id']).ADMIN_SPONSOR_404_2);
+               LOAD_TEMPLATE("admin_settings_saved", false, sprintf(getMessage('ADMIN_SPONSOR_404'), bigintval($_GET['id'])));
        }
 } else {
        // Not called by what-list_sponsor.php
index f3d5863..7267070 100644 (file)
@@ -145,11 +145,9 @@ WHERE userid=%s LIMIT 1",
                // Load template
                LOAD_TEMPLATE("admin_edit_user", false, bigintval($_GET['u_id']));
        }
-}
- else
-{
+} else {
        // Account does not exists!
-       LOAD_TEMPLATE("admin_settings_saved", false, "<div class=\"admin_failed\">".ADMIN_MEMBER_404_1.$_GET['u_id'].ADMIN_MEMBER_404_2."</div>");
+       LOAD_TEMPLATE("admin_settings_saved", false, "<div class=\"admin_failed\">".sprintf(getMessage('ADMIN_MEMBER_404'), $_GET['u_id'])."</div>");
 }
 
 //
index 813156d..7d6556f 100644 (file)
@@ -96,7 +96,7 @@ if (!empty($_GET['u_id'])) {
                }
        } else {
                // User not found
-               LOAD_TEMPLATE("admin_settings_saved", false, ADMIN_MEMBER_404_1.__UID.ADMIN_MEMBER_404_2);
+               LOAD_TEMPLATE("admin_settings_saved", false, sprintf(getMessage('ADMIN_MEMBER_404'), constant('__UID')));
        }
 } else {
        // Output selection form with all confirmed user accounts listed
index fcf1a4e..0045d14 100644 (file)
@@ -162,11 +162,11 @@ if (!empty($_GET['u_id'])) {
                        }
                } else {
                        // No mails left to confirm
-                       LOAD_TEMPLATE("admin_settings_saved", false, ADMIN_MEMBER_LINKS_1.$_GET['u_id'].ADMIN_MEMBER_LINKS_2);
+                       LOAD_TEMPLATE("admin_settings_saved", false, sprintf(getMessage('ADMIN_MEMBER_LINKS'), $_GET['u_id']));
                }
        } else {
                // User not found
-               LOAD_TEMPLATE("admin_settings_saved", false, ADMIN_MEMBER_404_1.$_GET['u_id'].ADMIN_MEMBER_404_2);
+               LOAD_TEMPLATE("admin_settings_saved", false, sprintf(getMessage('ADMIN_MEMBER_404'), $_GET['u_id']));
        }
 } else {
        // Output selection form with all confirmed user accounts listed
index 02431f9..6803a04 100644 (file)
@@ -81,7 +81,7 @@ ORDER BY level ASC", __FILE__, __LINE__);
                                array($uid), __FILE__, __LINE__);
 
                        // Output info message
-                       OUTPUT_HTML(ADMIN_TOTAL_REFS_1."".ADMIN_USER_PROFILE_LINK($_GET['u_id'])."".ADMIN_TOTAL_REFS_2.$menge.ADMIN_TOTAL_REFS_3.$menge_lck.ADMIN_TOTAL_REFS_4."<br /><br />");
+                       LOAD_TEMPLATE("admin_settings_saved", false, sprintf(getMessage('ADMIN_USER_TOTAL_REFS'), ADMIN_USER_PROFILE_LINK($_GET['u_id']), $menge, $menge_lck));
                }
 
                // Are there some levels (VERY BAD IF NONE!)
@@ -114,7 +114,7 @@ ORDER BY level ASC", __FILE__, __LINE__);
                                                SQL_FREERESULT($result_lck);
 
                                                // Output info message
-                                               $levels['info'] = ADMIN_TOTAL_REFS_1."".ADMIN_USER_PROFILE_LINK($uid)."".ADMIN_TOTAL_REFS_2.$menge.ADMIN_TOTAL_REFS_3.$menge_lck.ADMIN_TOTAL_REFS_4;
+                                               $levels['info'] = sprintf(getMessage('ADMIN_USER_TOTAL_REFS'), ADMIN_USER_PROFILE_LINK($uid), $menge, $menge_lck);
 
                                                // Load all refs
                                                $OUT_REFS = ""; $SW = 2;
@@ -172,7 +172,7 @@ ORDER BY level ASC", __FILE__, __LINE__);
                                                } // END - while
                                        } else {
                                                // Output info message
-                                               $levels['info'] = ADMIN_TOTAL_REFS_1."".ADMIN_USER_PROFILE_LINK($uid)."".ADMIN_TOTAL_REFS_2."0".ADMIN_TOTAL_REFS_3."0".ADMIN_TOTAL_REFS_4;
+                                               $levels['info'] = sprintf(getMessage('ADMIN_USER_TOTAL_REFS'), ADMIN_USER_PROFILE_LINK($uid), "0", "0");
 
                                                // No refs found
                                                $levels['rows'] = LOAD_TEMPLATE("admin_list_refs_norefs", true, array('uid' => $uid));
@@ -238,7 +238,7 @@ ORDER BY level ASC", __FILE__, __LINE__);
                SQL_FREERESULT($result_levels);
        } else {
                // User not found
-               LOAD_TEMPLATE("admin_settings_saved", false, sprintf(ADMIN_MEMBER_404, $_GET['u_id']));
+               LOAD_TEMPLATE("admin_settings_saved", false, sprintf(getMessage('ADMIN_MEMBER_404'), $_GET['u_id']));
        }
 
        // Free memory
index 55d8a95..fa00a1c 100644 (file)
@@ -109,7 +109,7 @@ WHERE id='%s' LIMIT 1",
                LOAD_TEMPLATE("admin_list_sponsor_details");
        } else {
                // Sponsor not found
-               LOAD_TEMPLATE("admin_settings_saved", false, ADMIN_SPONSOR_404_1.$_GET['id'].ADMIN_SPONSOR_404_2);
+               LOAD_TEMPLATE("admin_settings_saved", false, sprintf(getMessage('ADMIN_SPONSOR_404'), $_GET['id']));
        }
 } elseif (!empty($_GET['rid'])) {
        // Search for sponsor
@@ -131,11 +131,11 @@ WHERE refid='%s' ORDER BY `id`",
                        SQL_FREERESULT($result);
                } else {
                        // No refs made so far
-                       LOAD_TEMPLATE("admin_settings_saved", false, ADMIN_SPONSOR_REFS_404_1."<a href=\"{!URL!}/modules.php?module=admin&amp;what=list_sponsor&amp;id=".bigintval($_GET['rid'])."\">".bigintval($_GET['rid'])."</a>".ADMIN_SPONSOR_REFS_404_2);
+                       LOAD_TEMPLATE("admin_settings_saved", false, sprintf(getMessage('ADMIN_SPONSOR_REFS_404'), "<a href=\"{!URL!}/modules.php?module=admin&amp;what=list_sponsor&amp;id=".bigintval($_GET['rid'])."\">".bigintval($_GET['rid'])."</a>"));
                }
        } else {
                // Sponsor not found
-               LOAD_TEMPLATE("admin_settings_saved", false, ADMIN_SPONSOR_404_1.bigintval($_GET['rid']).ADMIN_SPONSOR_404_2);
+               LOAD_TEMPLATE("admin_settings_saved", false, sprintf(getMessage('ADMIN_SPONSOR_404'), bigintval($_GET['rid'])));
        }
 } else {
        // List all sponsors
index 32dfa7d..9e1033b 100644 (file)
@@ -102,13 +102,13 @@ if (isset($_POST['add'])) {
  __FILE__, __LINE__);
 
                // Payment type added!
-               $MSG = SPONSOR_ADMIN_PAYTYPE_ADDED_1.$_POST['pay_name'].SPONSOR_ADMIN_PAYTYPE_ADDED_2;
+               $MSG = ADMIN_SPONSOR_PAYTYPE_ADDED_1.$_POST['pay_name'].ADMIN_SPONSOR_PAYTYPE_ADDED_2;
        } else {
                // Free memory
                SQL_FREERESULT($result);
 
                // Entry does already exists
-               $MSG = SPONSOR_ADMIN_PAYTYPE_ALREADY_1.$_POST['pay_name'].SPONSOR_ADMIN_PAYTYPE_ALREADY_2;
+               $MSG = ADMIN_SPONSOR_PAYTYPE_ALREADY_1.$_POST['pay_name'].ADMIN_SPONSOR_PAYTYPE_ALREADY_2;
        }
 
        // Output message
@@ -201,7 +201,7 @@ if (isset($_POST['add'])) {
                define('__LIST_CONTENT', LOAD_TEMPLATE("admin_list_sponsor_pay", true));
        } else {
                // Noting setup so far!
-               define('__LIST_CONTENT', LOAD_TEMPLATE("admin_settings_saved", true, SPONSOR_ADMIN_NO_PAYTYPES));
+               define('__LIST_CONTENT', LOAD_TEMPLATE("admin_settings_saved", true, ADMIN_SPONSOR_NO_PAYTYPES));
        }
 
        // Add new payment types here
index c5ff148..47a4531 100644 (file)
@@ -50,7 +50,7 @@ if (!empty($_GET['id'])) {
                SQL_FREERESULT($result);
        } else {
                // Sponsor not found!
-               LOAD_TEMPLATE("admin_settings_saved", false, ADMIN_SPONSOR_404_1.bigintval($_GET['id']).ADMIN_SPONSOR_404_2);
+               LOAD_TEMPLATE("admin_settings_saved", false, sprintf(getMessage('ADMIN_SPONSOR_404'), bigintval($_GET['id'])));
        }
 } else {
        // Not called by what-list_sponsor.php
index 5223164..4939038 100644 (file)
@@ -74,7 +74,7 @@ case "closed": // List all closed
 
 default: // Unknown type
        DEBUG_LOG(__FILE__, __LINE__, sprintf("Unknown task type %s detected.", $_GET['type']));
-       LOAD_TEMPLATE("admin_settings_saved", false, TASK_ADMIN_UNKNOWN_MODE_1.$_GET['type'].TASK_ADMIN_UNKNOWN_MODE_2);
+       LOAD_TEMPLATE("admin_settings_saved", false, sprintf(getMessage('ADMIN_TASK_UNKNOWN_MODE'), $_GET['type']));
        break;
 }
 
index 1787b6f..0c46cbe 100644 (file)
@@ -151,10 +151,10 @@ WHERE l.%s='%s' ORDER BY l.userid LIMIT %s",
                        array(bigintval($ID)), __FILE__, __LINE__);
                if (SQL_NUMROWS($result1) == 1) {
                        // pool table
-                       LOAD_TEMPLATE("admin_settings_saved", false, ADMIN_UNCONFIRMED_POOL_MISSING_1.$ID.ADMIN_UNCONFIRMED_POOL_MISSING_2);
+                       LOAD_TEMPLATE("admin_settings_saved", false, sprintf(getMessage('ADMIN_UNCONFIRMED_POOL_MISSING', $ID)));
                } elseif (SQL_NUMROWS($result2) == 1) {
                        // user_stats table
-                       LOAD_TEMPLATE("admin_settings_saved", false, ADMIN_UNCONFIRMED_STATS_MISSING_1.$ID.ADMIN_UNCONFIRMED_STATS_MISSING_2);
+                       LOAD_TEMPLATE("admin_settings_saved", false, sprintf(getMessage('ADMIN_UNCONFIRMED_STATS_MISSING', $ID)));
                } else {
                        // both or link is invalid
                        LOAD_TEMPLATE("admin_settings_saved", false, getMessage('ADMIN_UNCONFIRMED_INVALID_LINK'));
index 7560ac4..d3020a6 100644 (file)
@@ -190,7 +190,7 @@ LIMIT 1",
                LOAD_TEMPLATE("admin_user_details", false, $uid);
        } else {
                // Account does not exist!
-               LOAD_TEMPLATE("admin_settings_saved", false, ADMIN_MEMBER_404_1.$uid.ADMIN_MEMBER_404_2);
+               LOAD_TEMPLATE("admin_settings_saved", false, sprintf(getMessage('ADMIN_MEMBER_404'), $uid));
        }
 
        // Free the result
index 1fbb825..bed3653 100644 (file)
@@ -61,13 +61,13 @@ if (!empty($_GET['id'])) {
                                // Create messages
                                if ($status == "CONFIRMED") {
                                        // Message when sponsor's account got lock
-                                       define('__EMAIL_MSG', SPONSOR_ACCOUNT_LOCKED);
-                                       $subject = SPONSOR_SUBJECT_LOCKED;
+                                       define('__EMAIL_MSG', getMessage('SPONSOR_ACCOUNT_LOCKED'));
+                                       $subject = getMessage('SPONSOR_SUBJECT_LOCKED');
                                        $status = "LOCKED";
                                } else {
                                        // Message when sponsor's account got unlock
-                                       define('__EMAIL_MSG', SPONSOR_ACCOUNT_UNLOCKED);
-                                       $subject = SPONSOR_SUBJECT_UNLOCKED;
+                                       define('__EMAIL_MSG', getMessage('SPONSOR_ACCOUNT_UNLOCKED'));
+                                       $subject = getMessage('SPONSOR_SUBJECT_UNLOCKED');
                                        $status = "CONFIRMED";
                                }
 
@@ -87,36 +87,37 @@ if (!empty($_GET['id'])) {
                                // Create header and text messages
                                if ($status == "CONFIRMED") {
                                        // Messages when sponsor's account is confirmed
-                                       define('__HEADER_MESSAGE', SPONSOR_LOCK_SPONSOR_HEADER);
-                                       define('__TEXT_MESSAGE'  , SPONSOR_LOCK_SPONSOR_TEXT);
+                                       define('__HEADER_MESSAGE', getMessage('SPONSOR_LOCK_SPONSOR_HEADER'));
+                                       define('__TEXT_MESSAGE'  , getMessage('SPONSOR_LOCK_SPONSOR_TEXT'));
                                } else {
                                        // Messages when sponsor's account is locked
-                                       define('__HEADER_MESSAGE', SPONSOR_UNLOCK_SPONSOR_HEADER);
-                                       define('__TEXT_MESSAGE'  , SPONSOR_UNLOCK_SPONSOR_TEXT);
+                                       define('__HEADER_MESSAGE', getMessage('SPONSOR_UNLOCK_SPONSOR_HEADER'));
+                                       define('__TEXT_MESSAGE'  , getMessage('SPONSOR_UNLOCK_SPONSOR_TEXT'));
                                }
 
                                // Create email link
-                               define('__EMAIL_LINK', "<a href=\"mailto:".$email."\">".__GENDER." ".__SURNAME." ".__FAMILY."</a>");
+                               define('__EMAIL_LINK', "<a href=\"mailto:".$email."\">{!__GENDER!} {!__SURNAME!} {!__FAMILY!}</a>");
 
                                // Display form
                                LOAD_TEMPLATE("admin_lock_sponsor");
                        }
                } else {
                        // Cannot change status on unconfirmed or pending accounts!
-                       $MSG = ADMIN_SPONSPOR_CANNOT_LOCK_PENDING_UNCINFIRMED_ACCOUNTS;
+                       $MSG = getMessage('ADMIN_SPONSPOR_CANNOT_LOCK_PENDING_UNCINFIRMED_ACCOUNTS');
                }
        } else {
                // Sponsor not found!
-               $MSG = ADMIN_SPONSOR_404_1.bigintval($_GET['id']).ADMIN_SPONSOR_404_2;
+               $MSG = sprintf(getMessage('ADMIN_SPONSOR_404'), bigintval($_GET['id']));
        }
 } else {
        // Not called by what-list_sponsor.php
-       $MSG = ADMIN_CALL_NOT_DIRECTLY;
+       $MSG = getMessage('ADMIN_CALL_NOT_DIRECTLY');
 }
 
 if (!empty($MSG)) {
        // Output message
        LOAD_TEMPLATE("admin_settings_saved", false, $MSG);
 }
+
 //
 ?>
index 88b2fff..06c4557 100644 (file)
@@ -156,7 +156,7 @@ if (!empty($_GET['u_id'])) {
                                LOAD_TEMPLATE("admin_lock_user");
                        } else {
                                // Account does not exists!
-                               LOAD_TEMPLATE("admin_settings_saved", false, "<div class=\"admin_failed\">".ADMIN_MEMBER_404_1.$_GET['u_id'].ADMIN_MEMBER_404_2."</div>");
+                               LOAD_TEMPLATE("admin_settings_saved", false, "<div class=\"admin_failed\">".sprintf(getMessage('ADMIN_MEMBER_404'), $_GET['u_id'])."</div>");
                        }
                }
 
@@ -174,7 +174,7 @@ if (!empty($_GET['u_id'])) {
                }
        } else {
                // Account does not exists!
-               LOAD_TEMPLATE("admin_settings_saved", false, "<div class=\"admin_failed\">".ADMIN_MEMBER_404_1.$_GET['u_id'].ADMIN_MEMBER_404_2."</div>");
+               LOAD_TEMPLATE("admin_settings_saved", false, "<div class=\"admin_failed\">".sprintf(getMessage('ADMIN_MEMBER_404'), $_GET['u_id'])."</div>");
        }
 } else {
        // List all users
index 648fa3a..c1f1f4a 100644 (file)
@@ -71,7 +71,7 @@ if (!empty($_GET['access'])) {
                        OUTPUT_HTML($OUTPUT);
 
                        // Output message
-                       LOAD_TEMPLATE("admin_settings_saved", false, UNKNOWN_LOGFILE_FORMAT_1.$access.UNKNOWN_LOGFILE_FORMAT_2);
+                       LOAD_TEMPLATE("admin_settings_saved", false, sprintf(getMessage('ADMIN_UNKNOWN_LOGFILE_FORMAT'), $access));
                        return;
                }
 
@@ -80,7 +80,7 @@ if (!empty($_GET['access'])) {
                exit;
        } else {
                // Not readable!
-               LOAD_TEMPLATE("admin_settings_saved", false, LOGFILE_NOT_READABLE_1.$access.LOGFILE_NOT_READABLE_2);
+               LOAD_TEMPLATE("admin_settings_saved", false, sprintf(getMessage('LOGFILE_NOT_READABLE'), $access));
        }
 } else {
        // List access logfiles
@@ -93,14 +93,14 @@ if (!empty($_GET['access'])) {
                        // We currenly only like files with "access" as prefix, should be more flexible!
                        if (substr($file, 0, 6) == "access") {
                                // Okay, let us print it out
-                               OUTPUT_HTML("<li><a href=\"{!URL!}/modules.php?module=admin&amp;what=".$GLOBALS['what']."&access=".urlencode($file)."\">".$file."</a></li>");
+                               OUTPUT_HTML("<li><a href=\"{!URL!}/modules.php?module=admin&amp;what=".$GLOBALS['what']."&amp;access=".urlencode($file)."\">".$file."</a></li>");
                        }
                }
                closedir($handle);
                OUTPUT_HTML("</ol>");
        } else {
                // logs directory does not exist
-               LOAD_TEMPLATE("admin_settings_saved", false, ADMIN_LOGS_DIR_404_1.getConfig('logs_base').ADMIN_LOGS_DIR_404_2);
+               LOAD_TEMPLATE("admin_settings_saved", false, sprintf(getMessage('ADMIN_LOGS_DIR_404'), getConfig('logs_base')));
        }
 }
 
index ec18232..8382044 100644 (file)
@@ -119,7 +119,7 @@ if ($_GET['u_id'] == "all") {
                }
        } else {
                // User not found!
-               LOAD_TEMPLATE("admin_settings_saved", false, "<div class=\"admin_failed\">".ADMIN_MEMBER_404_1.$_GET['u_id'].ADMIN_MEMBER_404_2."</strong>");
+               LOAD_TEMPLATE("admin_settings_saved", false, "<div class=\"admin_failed\">".sprintf(getMessage('ADMIN_MEMBER_404'), $_GET['u_id'])."</div>");
        }
 } else {
        // Output selection form with all confirmed user accounts listed
index 7da2d06..5260a3e 100644 (file)
@@ -46,7 +46,7 @@ if (FILE_READABLE($INC)) {
        // Ok, we finally load the guest action module
        LOAD_INC($INC);
 } else {
-       addFatalMessage(sprintf(getMessage('GUEST_404_ACTION'), SQL_ESCAPE($GLOBALS['what'])));
+       addFatalMessage(getMessage('GUEST_404_ACTION'), $GLOBALS['what']);
 }
 
 //
index 89989bd..322ec97 100644 (file)
@@ -49,7 +49,7 @@ if (FILE_READABLE($INC)) {
        // Ok, we finally load the guest action module
        LOAD_INC($INC);
 } else {
-       addFatalMessage(sprintf(getMessage('GUEST_404_ACTION'), SQL_ESCAPE($GLOBALS['what'])));
+       addFatalMessage(getMessage('GUEST_404_ACTION'), $GLOBALS['what']);
 }
 
 //
index 6468059..bbfbfdf 100644 (file)
@@ -49,7 +49,7 @@ if (FILE_READABLE($INC)) {
        // Ok, we finally load the guest action module
        LOAD_INC($INC);
 } else {
-       addFatalMessage(sprintf(getMessage('GUEST_404_ACTION'), SQL_ESCAPE($GLOBALS['what'])));
+       addFatalMessage(getMessage('GUEST_404_ACTION'), $GLOBALS['what']);
 }
 
 //
index f55c33b..3f29c85 100644 (file)
@@ -51,7 +51,7 @@ if (FILE_READABLE($INC)) {
        // Ok, we finally load the guest action module
        LOAD_INC($INC);
 } else {
-       addFatalMessage(sprintf(getMessage('GUEST_404_ACTION'), SQL_ESCAPE($GLOBALS['what'])));
+       addFatalMessage(getMessage('GUEST_404_ACTION'), $GLOBALS['what']);
 }
 
 //
index f863e22..d742a4f 100644 (file)
@@ -75,7 +75,7 @@ case "show": // Show his data
        // How far is last change on his profile away from now?
        if ((($DATA[13] + getConfig('profile_lock')) > time()) && (!IS_ADMIN()) && (getConfig('profile_lock') > 0)) {
                // You cannot change your account
-               define('CHANGE', "<div class=\"member_failed\">".MEMBER_PROFILE_LOCKED_1.MAKE_DATETIME($DATA[13] + getConfig('profile_lock'), "0").MEMBER_PROFILE_LOCKED_2."</div>");
+               define('CHANGE', "<div class=\"member_failed\">".sprintf(getMessage('MEMBER_PROFILE_LOCKED'), MAKE_DATETIME($DATA[13] + getConfig('profile_lock'), "0"))."</div>");
        } else {
                // He is allowed to change his profile
                define('CHANGE', LOAD_TEMPLATE("member_mydata_button", true));
index 702d81a..c255e92 100644 (file)
@@ -716,7 +716,7 @@ LIMIT 1", array(bigintval($ucat)), __FILE__, __LINE__);
        LOAD_TEMPLATE("admin_settings_saved", false, getMessage('MEMBER_HAS_ZERO_MMAILS'));
 } else {
        // Please confirm some mails first
-       LOAD_TEMPLATE("admin_settings_saved", false, MEMBER_LINKS_LEFT_1.$links.MEMBER_LINKS_LEFT_2.getConfig('unconfirmed').MEMBER_LINKS_LEFT_3);
+       LOAD_TEMPLATE("admin_settings_saved", false, sprintf(getMessage('MEMBER_LINKS_LEFT'), $links, getConfig('unconfirmed')));
 }
 
 if (!empty($URL)) {
index eae1ea2..7198362 100644 (file)
@@ -323,12 +323,15 @@ if (isBooleanConstantAndTrue('mxchange_installed')) {
                                                                        LOAD_TEMPLATE("mailid_timer");
                                                                        break;
                                                                } // END - switch
+                                                       } else {
+                                                               LOAD_TEMPLATE("admin_settings_saved", false, "<div class=\"member_failed\">{--MAIL_ALREADY_CONFIRMED--} (6)</div>");
                                                        }
-                                                        else LOAD_TEMPLATE("admin_settings_saved", false, "<div class=\"member_failed\">{--MAIL_ALREADY_CONFIRMED--} (6)</div>");
+                                               } else {
+                                                       LOAD_TEMPLATE("admin_settings_saved", false, "<div class=\"member_failed\">{--MAIL_ALREADY_CONFIRMED--} (5)</div>");
                                                }
-                                                else LOAD_TEMPLATE("admin_settings_saved", false, "<div class=\"member_failed\">{--MAIL_ALREADY_CONFIRMED--} (5)</div>");
+                                       } else {
+                                               LOAD_TEMPLATE("admin_settings_saved", false, "<div class=\"member_failed\">{--MAIL_ALREADY_CONFIRMED--} (4)</div>");
                                        }
-                                        else LOAD_TEMPLATE("admin_settings_saved", false, "<div class=\"member_failed\">{--MAIL_ALREADY_CONFIRMED--} (4)</div>");
                                } else {
                                        SQL_FREERESULT($result);
                                        LOAD_TEMPLATE("admin_settings_saved", false, "<div class=\"member_failed\">{--MAIL_ALREADY_CONFIRMED--} (3)</div>");
index 58c36a4..15e4cf4 100644 (file)
@@ -120,27 +120,27 @@ if ((getConfig('maintenance') == "Y") && (!IS_ADMIN()) && ($GLOBALS['module'] !=
                        // An URL was specified so we load the de-referrer module
                        LOAD_URL(DEREFERER($URL));
                } elseif (getTotalFatalErrors() == 0) {
-                       addFatalMessage(LANG_MOD_REG_404_1.$GLOBALS['module'].LANG_MOD_REG_404_2);
+                       addFatalMessage(sprintf(getMessage('LANG_MOD_REG_404'), $GLOBALS['module']));
                }
                break;
 
        case "404":
-               addFatalMessage(LANG_MOD_REG_404_1.$GLOBALS['module'].LANG_MOD_REG_404_2);
+               addFatalMessage(sprintf(getMessage('LANG_MOD_REG_404'), $GLOBALS['module']));
                break;
 
        case "locked":
                if (!FILE_READABLE(constant('__MODULE'))) {
                        // Module does addionally not exists
-                       addFatalMessage(LANG_MOD_REG_404_1.$GLOBALS['module'].LANG_MOD_REG_404_2);
+                       addFatalMessage(sprintf(getMessage('LANG_MOD_REG_404'), $GLOBALS['module']));
                } // END - if
 
                // Add fatal message
-               addFatalMessage(LANG_MOD_REG_LOCKED_1.$GLOBALS['module'].LANG_MOD_REG_LOCKED_2);
+               addFatalMessage(sprintf(getMessage('LANG_MOD_REG_LOCKED'), $GLOBALS['module']));
                break;
 
        default:
                DEBUG_LOG(__FILE__, __LINE__, sprintf("Unknown status %s return from module check. Module=%s", $check, $GLOBALS['module']));
-               addFatalMessage(LANG_MOD_REG_UNKNOWN_1.$check.LANG_MOD_REG_UNKNOWN_2);
+               addFatalMessage(sprintf(getMessage('LANG_MOD_REG_UNKNOWN'), $check));
                break;
        }
 } elseif (getTotalFatalErrors() == 0) {