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
// 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
// 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
// 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
// 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
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}");
}
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",
}
} 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
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ählt.");
define('ADMINS_MAILS_EDIT_TITLE', "Ausgewählte Templates den Admins zuweisen");
define('ADMIN_ADMINS_CHANGE', "Ändern");
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");
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ü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");
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ültig, konnte aber nicht auf dem Server gefunden werden.");
+define('ADMIN_ACTION_404', "Das aufgerufe Admin-Modul <u>%s</u> ist zwar gültig, konnte aber nicht auf dem Server gefunden werden.");
define('ALREADY_INSTALLED', "Dieses Script ist bereits auf diesem Server installiert worden Bitte löschen Sie install.php inc/install-inc.php und install.sql von Ihrem Server! (Keine Sorge, Sie können es tun...)");
define('ADMIN_MAIN_TITLE', "Willkommen zum Administrationsbereich");
define('YOU_ARE_HERE', "Sie sind hier:");
define('SETTINGS_NOT_SAVED', "Einstellungen NICHT gespeichert / geä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äter noch einmal vorbei!");
-define('ADMIN_INVALID_ACTION', "Ungültige action/what-Kombination erkannt! Bitte rufen Sie das Admin-Menü richtig auf!");
-define('ADMIN_INVALID_ACTION_1', "Die action/what-Kombination <u>");
-define('ADMIN_INVALID_ACTION_2', "</u> ist ungültig!");
+define('ADMIN_ACTION_INVALID', "Die action/what-Kombination <u>%s</u> ist ungültig!");
define('SHORT_PASS', "Das eingegebene Passwort ist nach unseren Sicherheitseinstellungen zu kurz. Mindestlänge ist");
define('EDIT_POINTS_SETTINGS', "Ändern der Willkommensgutschrift und anderer {!POINTS!}");
define('POINTS_REGISTER', "Willkommensgutschrift");
define('ADMIN_MEM_NO_CATS_2', "</u> hat keine Kategorien ausgewählt!");
define('USER_ID', "Mitglied");
define('UNCONFIRMED_LINKS', "Unbestätigte Mails");
-define('ADMIN_MEMBER_LINKS_1', "Das Mitglied <u>");
-define('ADMIN_MEMBER_LINKS_2', "</u> hat alle seine Mails bestätigt.");
+define('ADMIN_MEMBER_LINKS', "Das Mitglied <u>%s</u> hat alle seine Mails bestätigt.");
define('MEMBER_TOTAL_LINKS_1', "Es müssen noch <strong>");
define('MEMBER_TOTAL_LINKS_2', "</strong> Mails von diesem Mitglied bestätigt werden!");
define('ADMIN_DEL_UNCONFIRMED_LINKS', "Alle unbestätigten Mails löschen");
define('ADMIN_LINKS_DELETED', "Links für unbestätigte Mails wurden gelö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ätigte Mails. Bitte bestätigen Sie diese zuerst. Wenn Sie weniger als <strong>");
-define('MEMBER_LINKS_LEFT_3', "</strong> Mails im Account haben, können Sie auch wieder buchen.");
+define('MEMBER_LINKS_LEFT', "Sie haben <strong>%s</strong> unbestätigte Mails. Bitte bestätigen Sie diese zuerst. Wenn Sie weniger als <strong>%s</strong> Mails im Account haben, können Sie auch wieder buchen.");
define('TODAY', "Heute");
-define('MEMBER_PROFILE_LOCKED_1', "Sie können Ihren Account erst am <strong>");
-define('MEMBER_PROFILE_LOCKED_2', "</strong> wieder ändern!");
+define('MEMBER_PROFILE_LOCKED', "Sie können Ihren Account erst am <strong>%s</strong> wieder ändern!");
define('MEMBER_HAS_ZERO_MMAILS', "Sie haben Ihren Empfang auf <strong>Urlaub</strong> stehen! Bitte stellen Sie unter "Profildaten ändern" den Empfang höher ein!");
define('REF_CLIX', "Clicks");
define('REF_VIEWS', "Views");
define('ADMIN_DELETE_NORMAL_MAIL', "Obrige Normal-Mail löschen");
define('ADMIN_REALLY_DELETE_ALL_MAILS', "Wollen Sie wirklich alle Mails lö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ä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ätigt!");
define('REFS_COUNT', "Refs");
define('MEMBER_JOINED', "Beigetreten");
define('ADMIN_EMAIL_DELETED', "E-Mail wurde aus dem System gelöscht.");
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üchern konnte nicht gefunden werden! (<strong>");
-define('ADMIN_LOGS_DIR_404_2', "</strong>) Vermutlich unterstü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ü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");
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ü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ütigen Link aufgerufen oder Mail ist nicht mehr vorhanden!");
define('ADMIN_UNCONFIRMED_NO_LINK_LEFT', "Diese Mailbuchung wurde komplett bestätigt!");
define('ADMIN_CONFIG_REFMODE', "Soll die einmalige Referal-Gutschrift dem Werber alleine oder auch seinem Werber (usw.) gutgeschrieben werden?");
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ültiges oder nicht unterstütztes Format.");
define('MESSAGE_HEADER', "Hinweis");
define('ADMIN_ALPHA_SELCTION', "Alphabetische Suche:");
define('CATEGORY_NOT_SAVED', "Kategorie <u>%d</u> nicht gespeichert.");
define('DOUBLER_MEMBER_SUBJECT', "Gutschrift durch Verdoppelung");
define('DOUBLER_PAYOUT_TIME_DIRECT', "Die Auszahlung erfolgt unmittelbar, nachdem genügend {!POINTS!} zusammengekommen sind, um Ihnen die Verdoppelung auszuzahlen.");
define('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.");
+define('DOUBLER_PAYOUT_TIME_UNKNOWN', "Unbebannter Modus <u>%s</u> erkannt. Bitte Bug melden.");
define('DOUBLER_NO_ENTRIES_FOUND', "Keine Einträge gefunden!");
define('DOUBLER_TIMEMARK', "Auszahlungstag");
define('DOUBLER_GENERAL_INFOS', "Allgemeine Informationen zum Verdoppeln");
// 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");
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");
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:");
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");
}
// Language definitions
-define('ADMIN_LOGS_DIR_404_1', "Das Verzeichnis mit den Zugriffslogbüchern konnte nicht gefunden werden! (<strong>");
-define('ADMIN_LOGS_DIR_404_2', "</strong>) Vermutlich unterstü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ültiges oder nicht unterstütztes Format.");
+define('ADMIN_LOGS_DIR_404', "Das Verzeichnis mit den Zugriffslogbüchern konnte nicht gefunden werden! (<u>%s</u>) Vermutlich unterstü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ültiges oder nicht unterstütztes Format.");
//
?>
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ühren zu kö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önliche Daten des Sponsors");
define('SPONSOR_ID', "Sponsor-ID");
define('SPONSOR_STATUS', "Sponsor-Status");
define('SPONSOR_REFERRALS', "Sponsoren geworben");
-define('ADMIN_INVALID_MODE_1', "Ungü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ü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!}");
define('ADMIN_HEADER_DEL_SPONSOR_2', "</u> löschen");
define('ADMIN_TEXT_DEL_SPONSOR_1', "Möchten Sie den Sponsoren <strong>");
define('ADMIN_TEXT_DEL_SPONSOR_2', "</strong> mit samt aller seiner Bestellungen unwiederruflich lö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ür Ihr Geld die Zielgruppe, die Sie auch auf Ihren Produktseiten haben wollen!");
define('GUEST_SPONSOR_TEASER_2', "Alles inklusiv: Ausführliche Statistiken (auch per Mail im gewünschten Zeitabstand) und einfache Verwaltung Ihrer {!POINTS!} mit nur wenigen Klicks!");
define('SPONSOR_TERMS_HEADER', "Allgemeine Geschä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ügen");
define('ADMIN_ADD_SPONSOR_PAYTYPE', "Buchungspaket hinzufügen");
define('SPONSOR_PAYTYPE_NAME', "Bezeichnung");
define('SPONSOR_PAYTYPE_RATE_NOTE', "Wie viele {!POINTS!} soll der Sponsor für z.B. 1 € 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ährung des Geldbetrages, die der Sponsor an Sie ü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ü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ügt.");
define('SPONSOR_LIST_PAYMENT_TYPES_TITLE', "Buchungspakete auflisten, bearbeiten und löschen");
define('SPONSOR_PAYTYPE_MIN_COUNT2', "Minium");
define('ADMIN_SPONSOR_PAYTYPE_EDIT', "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");
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ührte Updates");
define('ADMIN_OVERVIEW_TASK_SOLVED_TYPE', "Ihre erledigten Aufgaben");
Die automatische Löschung erfolgt durch die autopurge-Erweiterung.<br />
Sie können die Aufgaben aber auch jetzt endgültig lö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");
} 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
} // END - if
} else {
// Not found!
- addFatalMessage(sprintf(MEMBER_SURFBAR_EXECUTE_ACTION_404, $functionName));
+ addFatalMessage(MEMBER_SURFBAR_EXECUTE_ACTION_404, $functionName);
}
// Return status
// 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']);
}
//
// 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']);
}
//
// 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']);
}
//
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']);
}
//
// 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']);
}
//
// 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']);
}
//
// 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']);
}
//
// 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']);
}
//
// 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']);
}
//
// 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']);
}
//
// 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']);
}
//
// 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']);
}
//
// 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']);
}
//
// 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']);
}
//
// 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']);
}
//
// 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']);
}
//
// 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']);
}
//
?>
// 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']);
}
//
// 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']);
}
//
// 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']);
}
//
// 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']);
}
//
// 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']);
}
//
// 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']);
}
//
// 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']);
}
//
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
}
} 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
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";
// 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",
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&what=list_sponsor&id=".bigintval($_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
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...
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>");
}
}
// 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!
// 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!
// 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;
}
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
// 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>");
}
//
}
} 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
}
} 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
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!)
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;
} // 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));
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
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
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&what=list_sponsor&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&what=list_sponsor&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
__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
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
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
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;
}
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'));
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
// 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";
}
// 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);
}
+
//
?>
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>");
}
}
}
} 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
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;
}
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
// 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&what=".$GLOBALS['what']."&access=".urlencode($file)."\">".$file."</a></li>");
+ OUTPUT_HTML("<li><a href=\"{!URL!}/modules.php?module=admin&what=".$GLOBALS['what']."&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')));
}
}
}
} 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
// 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']);
}
//
// 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']);
}
//
// 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']);
}
//
// 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']);
}
//
// 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));
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)) {
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>");
// 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) {