From: quix0r Updates prüfen herunter.");
break;
case '0.2.1': // SQL queries for v0.2.1
diff --git a/inc/extensions/ext-mediadata.php b/inc/extensions/ext-mediadata.php
index b7af7fa6ca..1d70a5997b 100644
--- a/inc/extensions/ext-mediadata.php
+++ b/inc/extensions/ext-mediadata.php
@@ -131,7 +131,7 @@ PRIMARY KEY (media_key)
// Update notes (these will be set as task text!)
setExtensionUpdateNotes("Start des {?mt_word2?} und Anzahl Anmeldungen aufgenommen. (Task #13)
-Bitte stellen Sie diesen derzeit manuell unter Einstellungen-Medidata selber einstellen.");
+Bitte stellen Sie diesen derzeit manuell unter Einstellungen-Medidata selber einstellen.");
break;
case '0.0.8': // SQL queries for v0.0.8
diff --git a/inc/extensions/ext-mydata.php b/inc/extensions/ext-mydata.php
index 92f4554219..af8765dd6d 100644
--- a/inc/extensions/ext-mydata.php
+++ b/inc/extensions/ext-mydata.php
@@ -122,7 +122,7 @@ switch (getExtensionMode()) {
case '0.1.2': // SQL queries for v0.1.2
// Update notes (these will be set as task text!)
- setExtensionUpdateNotes("Einbindung der Erweiterung country, die Sie sich noch optional von meiner Seite herunterladen müssen.
+ setExtensionUpdateNotes("Einbindung der Erweiterung country, die Sie sich noch optional von meiner Seite herunterladen müssen.
Wichtig: Laden Sie noch die Template member_mydata_overview und member_mydata_edit (beide zu finden unter templates/".getLanguage()."/html/member/ !) mit hoch!");
diff --git a/inc/extensions/ext-register.php b/inc/extensions/ext-register.php
index 34c95aecc4..4c67e19779 100644
--- a/inc/extensions/ext-register.php
+++ b/inc/extensions/ext-register.php
@@ -209,7 +209,7 @@ PRIMARY KEY (id)
case '0.3.2': // SQL queries for v0.3.2
// Update notes (these will be set as task text!)
- setExtensionUpdateNotes("Einbindung der Erweiterung country, die Sie sich noch optional von meiner Seite herunterladen müssen.
+ setExtensionUpdateNotes("Einbindung der Erweiterung country, die Sie sich noch optional von meiner Seite herunterladen müssen.
Wichtig: Laden Sie noch das Template guest_register.tpl mit hoch, welches unter templates/".getLanguage()."/html/guest/ zu finden ist!");
diff --git a/inc/extensions/ext-sql_patches.php b/inc/extensions/ext-sql_patches.php
index 93a02253f1..fc7388ade9 100644
--- a/inc/extensions/ext-sql_patches.php
+++ b/inc/extensions/ext-sql_patches.php
@@ -214,7 +214,7 @@ switch (getExtensionMode()) {
addExtensionSql("ALTER TABLE `{?_MYSQL_PREFIX?}_config` ADD `index_cookie` BIGINT(20) UNSIGNED NOT NULL DEFAULT ".(getConfig('ONE_DAY')*365)."");
// Update notes (these will be set as task text!)
- setExtensionUpdateNotes("Sie können nun hier die Verzögerungszeit in der Eingangsseite einstellen.");
+ setExtensionUpdateNotes("Sie können nun hier die Verzögerungszeit in der Eingangsseite einstellen.");
break;
case '0.1.2': // SQL queries for v0.1.2
diff --git a/inc/filters.php b/inc/filters.php
index 79462da8d7..362898e490 100644
--- a/inc/filters.php
+++ b/inc/filters.php
@@ -414,7 +414,7 @@ function FILTER_COMPILE_CONFIG ($code, $compiled = false) {
$GLOBALS['compile_config'][$matches[1][$key]] = "\".getConfig('" . 'DEFAULT_' . strtoupper($matches[1][$key]) . "').\"";
} elseif (isMessageIdValid('DEFAULT_' . strtoupper($matches[1][$key]))) {
// No config, try the language system
- $GLOBALS['compile_config'][$matches[1][$key]] = "\".getMessage('". 'DEFAULT_' . strtoupper($matches[1][$key]) . "').\"";
+ $GLOBALS['compile_config'][$matches[1][$key]] = "\" . getMessage('". 'DEFAULT_' . strtoupper($matches[1][$key]) . "') . \"";
} else {
// Unhandled!
$GLOBALS['compile_config'][$matches[1][$key]] = '!' . $matches[1][$key] . '!';
@@ -435,7 +435,7 @@ function FILTER_COMPILE_CONFIG ($code, $compiled = false) {
if ($compiled === true) {
// Run the code
$eval = "\$GLOBALS['compiled_config'][\$uncompiled] = \"" . $GLOBALS['compiled_config'][$uncompiled] . "\";";
- //* DEBUG: */ print '' . str_replace('$', '$', htmlentities($eval)) . '
';
+ //* DEBUG: */ print('' . str_replace('$', '$', htmlentities($eval)) . '
');
eval($eval);
} // END - if
@@ -448,34 +448,54 @@ function FILTER_COMPILE_EXTENSION ($code) {
// Compile {%cmd=some_value%} to get extension data
// Support cmd is:
// - version -> getExtensionVersion() call
- preg_match_all('/\{%((([a-zA-Z0-9-_]+)=([a-zA-Z0-9-_]+))*)\%\}/', $code, $matches);
+ preg_match_all('/\{%(([a-zA-Z0-9-_,]+)=([^%\}]+))%\}/', $code, $matches);
+ //* DEBUG: */ print(''.print_r($matches, true).'
');
+
+ // Default is from OUTPUT_HTML
+ $outputMode = getOutputMode();
// Some entries found?
if ((count($matches) > 0) && (count($matches[3]) > 0)) {
// Replace all matches
- foreach ($matches[3] as $key => $cmd) {
+ foreach ($matches[2] as $key => $cmd) {
// Init replacer variable
$replacer = '';
// Is the extension installed or code provided?
+ // @TODO This whole if-block is very static
if ($cmd == 'code') {
// Code asked for
- $replacer = "\".getCode(\"" . $matches[4][$key] . "\").\"";
+ $replacer = "\" . getCode('" . $matches[3][$key] . "') . \"";
+ } elseif (substr($cmd, 0, 3) == 'url') {
+ // Do we have JS-mode?
+ if (substr($cmd, -2, 2) == 'js') $outputMode = 1;
+
+ // Handle an URL here
+ $replacer = "\" . encodeUrl('" . $matches[3][$key] . "', " . $outputMode . ") . \"";
+
+ // Replace it
+ $code = str_replace($matches[0][$key], $replacer, $code);
+
+ // And continue with next entry
+ continue;
} else {
// Construct call-back function name
$functionName = 'getExtension' . ucfirst(strtolower($cmd));
// Construct call of the function
- $replacer = "\".call_user_func_array('" . $functionName . "', array('" . $matches[4][$key] . "', true)).\"";
+ $replacer = "\" . call_user_func_array('" . $functionName . "', array('" . $matches[3][$key] . "', true)) . \"";
}
// Replace it and insert parameter for GET request
- $code = str_replace($matches[0][$key], sprintf("&%s=%s&rev=\".getConfig('CURR_SVN_REVISION').\"", $cmd, $replacer), $code);
+ $code = str_replace($matches[0][$key], sprintf("&%s=%s&rev=\" . getConfig('CURR_SVN_REVISION') . \"", $cmd, $replacer), $code);
} // END - foreach
} // END - if
+ // Do we have non-HTML mode?
+ if ((getOutputMode() != '0') || ($outputMode != '0')) $code = html_entity_decode($code);
+
// Return compiled code
- //* DEBUG: */ die(''.secureString($code).'
');
+ //* DEBUG: */ die(''.htmlentities($code).'
');
return $code;
}
diff --git a/inc/functions.php b/inc/functions.php
index 3ee5bdff81..73928d9698 100644
--- a/inc/functions.php
+++ b/inc/functions.php
@@ -302,7 +302,7 @@ function loadTemplate ($template, $return = false, $content = array()) {
} else {
// Add surrounding HTML comments to help finding bugs faster
$ret = '\n" . $GLOBALS['tpl_content'] . '\n";
- $eval = '$ret = "' . escapeQuotes($ret) . '";';
+ $eval = '$ret = "' . compileRawCode(escapeQuotes($ret)) . '";';
} // END - if
// Cache the eval() command here
@@ -862,7 +862,7 @@ function generateDerefererUrl ($URL) {
// Don't de-refer our own links!
if (substr($URL, 0, strlen(getConfig('URL'))) != getConfig('URL')) {
// De-refer this link
- $URL = '{?URL?}/modules.php?module=loader&url=' . encodeString(compileUriCode($URL));
+ $URL = '{%url=modules.php?module=loader&url=' . encodeString(compileUriCode($URL)) . '%}';
} // END - if
// Return link
@@ -872,7 +872,7 @@ function generateDerefererUrl ($URL) {
// Generates an URL for the frametester
function generateFrametesterUrl ($URL) {
// Prepare frametester URL
- $frametesterUrl = sprintf("{?URL?}/modules.php?module=frametester&url=%s",
+ $frametesterUrl = sprintf("{%%url=modules.php?module=frametester&url=%s%%}",
encodeString(compileUriCode($URL))
);
@@ -903,7 +903,7 @@ function countSelection ($array) {
// Generate XHTML code for the CAPTCHA
function generateCaptchaCode ($code, $type, $DATA, $userid) {
- return '';
+ return '
';
}
// Generates a timestamp (some wrapper for mktime())
@@ -927,18 +927,7 @@ function makeTime ($hours, $minutes, $seconds, $stamp) {
// Redirects to an URL and if neccessarry extends it with own base URL
function redirectToUrl ($URL) {
// Compile out codes
- eval('$URL = "' . compileRawCode($URL) . '";');
-
- // Check if http(s):// is there
- if ((substr($URL, 0, 7) != 'http://') && (substr($URL, 0, 8) != 'https://')) {
- // Make all URLs full-qualified
- $URL = getConfig('URL') . '/' . $URL;
- } // END - if
-
- // Three different debug ways...
- //* DEBUG: */ debug_report_bug(sprintf("%s[%s:] URL=%s", __FUNCTION__, __LINE__, $URL));
- //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'URL=' . $URL);
- //* DEBUG: */ die($URL);
+ eval('$URL = "' . compileRawCode(encodeUrl($URL)) . '";');
// Default 'rel' value is external, nofollow is evil from Google and hurts the Internet
$rel = ' rel="external"';
@@ -957,6 +946,11 @@ function redirectToUrl ($URL) {
clearOutputBuffer();
} // END - if
+ // Three different ways to debug...
+ //* DEBUG: */ debug_report_bug(sprintf("%s[%s:] URL=%s", __FUNCTION__, __LINE__, $URL));
+ //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'URL=' . $URL);
+ //* DEBUG: */ die($URL);
+
// Simple probe for bots/spiders from search engines
if ((strpos(detectUserAgent(), 'spider') !== false) || (strpos(detectUserAgent(), 'bot') !== false)) {
// Secure the URL against bad things such als HTML insertions and so on...
@@ -1043,11 +1037,11 @@ function compileRawCode ($code, $simple = false, $constants = true, $full = true
if ($constants === true) {
// BEFORE 0.2.1 : Language and data constants
// WITH 0.2.1+ : Only language constants
- $code = str_replace('{--', "\".getMessage('", str_replace('--}', "').\"", $code));
+ $code = str_replace('{--', "\" . getMessage('", str_replace('--}', "') . \"", $code));
// BEFORE 0.2.1 : Not used
// WITH 0.2.1+ : Data constants
- $code = str_replace('{!', "\".constant('", str_replace("!}", "').\"", $code));
+ $code = str_replace('{!', "\" . constant('", str_replace('!}', "') . \"", $code));
} // END - if
// Compile QUOT and other non-HTML codes
@@ -1354,7 +1348,7 @@ function generateImageOrCode ($img_code, $headerSent = true) {
debug_report_bug('img_code ' . $img_code .' has invalid length. img_code()=' . strlen($img_code) . ' code_length=' . getConfig('code_length'));
} elseif ($headerSent === false) {
// Return an HTML code here
- return "
\n";
+ return "
\n";
}
// Load image
@@ -1667,13 +1661,13 @@ function addEmailNavigation ($PAGES, $offset, $show_form, $colspan, $return=fals
$NAV .= '-';
} else {
// Open anchor tag and add base URL
- $NAV .= ' 0)) $NAV .= '&userid=' . bigintval(getRequestElement('userid'));
// Close open anchor tag
- $NAV .= '">';
+ $NAV .= '%}">';
}
$NAV .= $page;
if (($page == getRequestElement('page')) || ((!isGetRequestElementSet('page')) && ($page == 1))) {
@@ -1976,7 +1970,7 @@ function generateMemberAdminActionLinks ($userid, $status = '') {
$OUT = "[ ";
foreach ($targetArray as $tar) {
- $OUT .= "");
if (($tar == 'lock_user') && ($status == 'LOCKED')) {
// Locked accounts shall be unlocked
@@ -2635,8 +2629,7 @@ function getMessageFromErrorCode ($code) {
case getCode('ID_LOCKED') : $message = getMessage('LOGIN_ID_LOCKED'); break;
case getCode('ID_UNCONFIRMED') : $message = getMessage('LOGIN_ID_UNCONFIRMED'); break;
case getCode('ID_GUEST') : $message = getMessage('LOGIN_ID_GUEST'); break;
- case getCode('NO_COOKIES') : $message = getMessage('LOGIN_NO_COOKIES'); break;
- case getCode('COOKIES_DISABLED') : $message = getMessage('LOGIN_NO_COOKIES'); break;
+ case getCode('COOKIES_DISABLED') : $message = getMessage('LOGIN_COOKIES_DISABLED'); break;
case getCode('BEG_SAME_AS_OWN') : $message = getMessage('BEG_SAME_UID_AS_OWN'); break;
case getCode('LOGIN_FAILED') : $message = getMessage('LOGIN_FAILED_GENERAL'); break;
case getCode('MODULE_MEM_ONLY') : $message = sprintf(getMessage('MODULE_MEM_ONLY'), getRequestElement('mod')); break;
@@ -3367,7 +3360,7 @@ function getArrayFromDirectory ($baseDir, $prefix, $fileIncludeDirs = false, $ad
// Remove double slashes
$FQFN = str_replace('//', '/', $FQFN);
- // Check if the base filename matches an exclusion pattern and if the pattern is not empty
+ // Check if the base filenname matches an exclusion pattern and if the pattern is not empty
if ((!empty($excludePattern)) && (preg_match($excludePattern, $baseFile, $match))) {
// These Lines are only for debugging!!
//* DEBUG: */ outputHtml('baseDir:' . $baseDir . '
');
@@ -3835,6 +3828,41 @@ function getModuleFromFileName ($file, $accessLevel) {
return $modCheck;
}
+// Encodes an URL for adding session id, etc.
+function encodeUrl ($url, $outputMode = '0') {
+ // Do we have already have a PHPSESSID inside? Then it is already converted...
+ if (strpos($url, session_name()) !== false) return $url;
+
+ // Do we have a valid session?
+ if ((($GLOBALS['valid_session'] === false) || (!isset($_COOKIE[session_name()]))) && (isSpider() === false)) {
+ // Invalid session
+ // Determine right seperator
+ $seperator = '&';
+ if (strpos($url, '?') === false) {
+ // No question mark
+ $seperator = '?';
+ } elseif ((getOutputMode() != '0') || ($outputMode != '0')) {
+ // Non-HTML mode
+ $seperator = '&';
+ }
+
+ // Add it to URL
+ $url .= $seperator . session_name() . '=' . session_id();
+ } // END - if
+
+ // Add {?URL?}
+ $url = '{?URL?}/' . $url;
+
+ // Return the URL
+ return $url;
+}
+
+// Simple check for spider
+function isSpider () {
+ // Is it a spider?
+ return ((strpos('spider', strtolower(detectUserAgent(true))) !== false) || (strpos('bot', strtolower(detectUserAgent(true))) !== false));
+}
+
//////////////////////////////////////////////////
// AUTOMATICALLY RE-GENERATED MISSING FUNCTIONS //
//////////////////////////////////////////////////
diff --git a/inc/language/de.php b/inc/language/de.php
index 6cd559647f..448853eb53 100644
--- a/inc/language/de.php
+++ b/inc/language/de.php
@@ -219,7 +219,7 @@ addMessages(array(
'REFID_BY' => "Sie wurden geworben von",
'TERMS_OF_USAGE' => "AGBs zustimmen und absenden",
'YOU_FINALIZE' => "Sie haben es gleich geschafft.",
- 'AGREE_TO_THIS' => "Stimmen Sie unseren [AGBs] zu?",
+ 'AGREE_TO_THIS' => "Stimmen Sie unseren [AGBs] zu?",
'SUBMIT_REGISTER' => "Anmeldedaten abschicken",
'HAVE_TO_AGREE' => "Sie müssen unseren AGBs zustimmen, damit Sie an diesem {?mt_word?} teilnehmen können.",
'ENTER_BOTH_PASSWORDS' => "Bitte geben Sie ein Passwort und das selbe Passwort noch einmal ein.",
@@ -308,7 +308,7 @@ addMessages(array(
'LOGIN_ID_LOCKED' => "Ihr Account wurde gesperrt.",
'LOGIN_ID_UNCONFIRMED' => "Bitte bestätigen Sie erst Ihre Email-Adresse! Haben Sie den Bestätigungslink verloren? Links im Menü unter "Bestätigungslink" können Sie ihn erneut anfordern.",
'LOGIN_ID_GUEST' => "Es ist etwas beim Anmelden schief gelaufen. Dies sollte nicht vorkommen. status=guest",
- 'LOGIN_NO_COOKIES' => "Sie haben in Ihrem Browser entweder die Cookies ausgeschaltet, oder die Sicherheitsstufe ist zu hoch eingestellt.",
+ 'LOGIN_COOKIES_DISABLED' => "Sie haben in Ihrem Browser entweder die Cookies ausgeschaltet, oder die Sicherheitsstufe ist zu hoch eingestellt.",
'GUEST_REG_POINTS_1' => "Für Ihre Anmeldung haben wir Ihnen als Willkommensgutschrift",
'GUEST_REG_POINTS_2' => "{?POINTS?} gutgeschrieben. Sie können bereits jetzt schon Mails an die anderen Mitglieder verschicken - solange Empfänger auch erreichbar sind.",
'GUEST_SELECT_LIFETIME' => "Wie lange soll Auto-Login aktiv sein?",
@@ -532,7 +532,6 @@ addMessages(array(
'MEMBER_PLEASE_RESPECT' => "Sollten Sie damit nicht einverstanden sein, so melden Sie sich bitte bei uns. Wir kommen dann in Kontakt mit Ihnen.",
'ADMIN_LOCKED_SUBJ' => "Ihr Account wurde gesperrt.",
'ADMIN_UNLOCKED_SUBJ' => "Ihr Account wurde wieder freigegeben.",
- 'ADMIN_UNLOCKED_YOUR_ACCOUNT' => "Einer unserer Administratoren hat soeben Ihren Account wieder freigeben! Sie können sich nun wieder unter folgender URL einloggen:\n\n{?URL?}/login.php",
'REASON_UNLOCKED' => "Nachricht vom Admin",
'ADMIN_WELCOME_BACK' => "Bitte beachten Sie beim naechsten Mal auf unsere AGBs, damit Ihnen diese Unangenehmlichkeiten erspart bleiben.",
'ADMIN_DEL_ACCOUNT' => "Loeschung Ihres Accounts.",
@@ -543,7 +542,7 @@ addMessages(array(
'GUEST_CONFIRM_SUBJ' => "Bitte Ihre Email-Adresse bestätigen.",
'MEMBER_ORDER_ACCEPTED' => "Ihre Mailbuchung wurde freigeschaltet",
'MEMBER_ORDER_REJECTED' => "Ihre Mailbuchung wurde abgelehnt",
- 'THANX_REFERAL_ONE' => "Vielen Dank für die Referal-Werbung.",
+ 'THANX_REFERAL_ONE_SUBJECT' => "Vielen Dank für die Referal-Werbung.",
'ADMIN_SEND_MAIL' => "Bonusmail versenden",
'ADMIN_BONUS_SEND' => "Bonusmail wurde in den Sende-Pool eingefügt.",
'ENTER_POINTS' => "Vergütung",
@@ -1040,9 +1039,9 @@ addMessages(array(
'ADMIN_NO_POINTS_REPAYED' => "Die Mailbuchung hatte keine {?POINTS?} zum zurückbuchen.",
'ADMIN_POINTS_SHREDDED' => "Es wurden %s {?POINTS?} geschrettert.",
'EXTENSION_PROBLEM_EXT_INACTIVE' => "Kann nicht fortfahren! Fehler: Erweiterung %s deaktiviert.",
- 'ADMIN_EXTENSION_PROBLEM_EXT_INACTIVE' => "Die Erweiterung %s ist derzeit deaktiviert. Hier können Sie diese aktivieren.",
+ 'ADMIN_EXTENSION_PROBLEM_EXT_INACTIVE' => "Die Erweiterung %s ist derzeit deaktiviert. Hier können Sie diese aktivieren.",
'EXTENSION_PROBLEM_EXT_NOT_INSTALLED' => "Kann nicht fortfahren! Fehler: Erweiterung %s nicht installiert.",
- 'ADMIN_EXTENSION_PROBLEM_EXT_NOT_INSTALLED' => "Die Erweiterung %s ist derzeit nicht installiert. Hier können Sie diese aktivieren.",
+ 'ADMIN_EXTENSION_PROBLEM_EXT_NOT_INSTALLED' => "Die Erweiterung %s ist derzeit nicht installiert. Hier können Sie diese aktivieren.",
'EXTENSION_PROBLEM_NOT_INSTALLED' => "Erweiterung %s nicht installiert.",
'EXTENSION_PROBLEM_UNSET_EXT' => "Skriptfehler: Parameter ext nicht gesetzt.",
'EXTENSION_WARNING_EXT_INACTIVE' => "Die Erweiterung %s ist nicht aktiv. Dies kann zu Störungen führen.
\nBitte aktivieren Sie diese unter Verschiedenes->Erweiterungen.",
diff --git a/inc/language/doubler_de.php b/inc/language/doubler_de.php
index abeb9e7969..c17608245b 100644
--- a/inc/language/doubler_de.php
+++ b/inc/language/doubler_de.php
@@ -115,8 +115,8 @@ addMessages(array(
'DOUBLER_FORM_404_POINTS' => "Keine {?POINTS?} zum Verdoppeln eingegeben.",
'DOUBLER_FORM_404_NICKNAME' => "Unbekannter Nickname eingegeben oder falsches Passwort.",
'DOUBLER_FORM_404_MEMBER' => "Mitgliedsaccount nicht gefunden oder falsches Passwort.",
- 'DOUBLER_FORM_STATUS_UNCONFIRMED' => "Bitte bestätigen Sie erst Ihre EMail-Adresse. Den Bestätigungslink können Sie hier erneut per EMail anfordern .",
- 'DOUBLER_FORM_STATUS_LOCKED' => "Ihr Account wurde von einem Administrator oder durch Urlaub gesperrt. Bitte melden Sie sich bei uns, damit wir Ihren Account freischalten können.",
+ 'DOUBLER_FORM_STATUS_UNCONFIRMED' => "Bitte bestätigen Sie erst Ihre EMail-Adresse. Den Bestätigungslink können Sie hier erneut per EMail anfordern .",
+ 'DOUBLER_FORM_STATUS_LOCKED' => "Ihr Account wurde von einem Administrator oder durch Urlaub gesperrt. Bitte melden Sie sich bei uns, damit wir Ihren Account freischalten können.",
'DOUBLER_FORM_WRONG_PASS' => "Passwort ist falsch.",
'DOUBLER_FORM_POINTS_MIN' => "Zu wenig {?POINTS?} zum Verdoppeln eingegeben.",
'DOUBLER_FORM_POINTS_MAX' => "Zu viele {?POINTS?} zum Verdoppeln eingegeben.",
diff --git a/inc/language/sponsor_de.php b/inc/language/sponsor_de.php
index 69e5a76510..23dbcc70e9 100644
--- a/inc/language/sponsor_de.php
+++ b/inc/language/sponsor_de.php
@@ -135,7 +135,7 @@ addMessages(array(
'SPONSOR_PAYTYPE_VALUE' => "Bestellwert",
'SPONSOR_PAYTYPE_COUNT' => "Bestellmenge",
'GUEST_SPONSOR_RECEIVE_WARNINGS' => "Bei Datenänderung eine Bestätigung per Mail erhalten?",
- 'SPONSOR_ACCEPT_TERMS' => "Ich/wir habe/n die [AGBs] gelesen und akzeptiert.",
+ 'SPONSOR_ACCEPT_TERMS' => "Ich/wir habe/n die [AGBs] gelesen und akzeptiert.",
'SPONSOR_TERMS_HEADER' => "Allgemeine Geschäftsbedingungen",
// Add payment types
@@ -238,7 +238,7 @@ addMessages(array(
'SPONSOR_TAX_IDENT_IS_EMPTY' => "Sie haben keine Ust-Ident-Nr. eingegeben.",
'SPONSOR_REGISTER_SOMETHING_MISSING' => "Die Sponsorenanmeldung konnte wegen der folgenden Punkte nicht durchgeführt werden",
'SPONSOR_PASSWORDS_MISMATCH' => "Die beiden von Ihnen eingegebenen Passwörter stimmen nicht überein.",
- 'SPONSOR_TERMS_NOT_ACCEPTED' => "Bitte akzeptieren Sie unsere [AGBs] .",
+ 'SPONSOR_TERMS_NOT_ACCEPTED' => "Bitte akzeptieren Sie unsere [AGBs] .",
'SPONSOR_NO_PAYTYPE_SELECTED' => "Bitte wählen Sie noch ein Buchungspaket aus.",
'SPONSOR_NO_WARNING_INTERVAL_SELECTED' => "Bitte wählen Sie noch den Zeitabstand zwischen zwei Sponsorenberichten aus.",
'SPONSOR_NO_RECEIVE_WARNINGS_SELECTED' => "Bitte wählen Sie noch aus, ob Sie bei jeder Aktion Bestätigungsmails empfangen wollen oder nicht.",
@@ -276,7 +276,7 @@ addMessages(array(
'SPONSOR_LOGIN_FAILED_LOCKED' => "Ihr Account wurde gesperrt, vermutlich wegen Nichteinhaltung von Regeln.",
'SPONSOR_LOGIN_FAILED_EMAIL' => "Sie haben Ihre Email-Adresse geändert und diese noch nicht bestätigt.",
'SPONSPOR_COOKIE_SETUP_FAILED' => "Es konnten keine Cookies gesetzt werden. Bitte Sicherheitseinstellungen in Ihrem Browser überprüfen.",
- 'SPONSOR_ONLY_AREA_ENTERED' => "Sie haben einen Bereich aufgerufen, der nur den Sponsoren vorenthalten ist, die auch bezahlt haben. Bitte kehren Sie zur [ Eingangsseite ] zurück.",
+ 'SPONSOR_ONLY_AREA_ENTERED' => "Sie haben einen Bereich aufgerufen, der nur den Sponsoren vorenthalten ist, die auch bezahlt haben. Bitte kehren Sie zur [ Eingangsseite ] zurück.",
'SPONSOR_ACCOUNT_STATUS_FAILED' => "Unerwarteter Zustand des Scriptes erreicht! Bitte Support benachrichtigen.",
'SPONSOR_ACCOUNT_IS_CONFIRMED_AGAIN' => "Ihr Sponsorenaccount ist wieder freigegeben! Sie können sich nun erneut einloggen.",
@@ -292,7 +292,7 @@ addMessages(array(
'SPONSOR_ENTER_OLD_PASSWORD' => "Geben Sie Ihr derzeitiges Passwort ein",
'SPONSOR_CHANGE_PASSWORD' => "Neues Passwort einstellen",
'SPONSOR_ACCOUNT_DATA_SAVED' => "Ihre Daten wurden gespeichert.",
- 'SPONSOR_ACCOUNT_EMAIL_CHANGED' => "Sie haben Ihre EMail-Adresse geändert, Account wurde temporär gesperrt. Bitte [hier klicken], um in den Gastbereich zu gelangen.",
+ 'SPONSOR_ACCOUNT_EMAIL_CHANGED' => "Sie haben Ihre EMail-Adresse geändert, Account wurde temporär gesperrt. Bitte [hier klicken], um in den Gastbereich zu gelangen.",
'SPONSOR_SETTINGS_HEADER' => "Einstellungen Ihres Sponsorenaccounts",
'SPONSOR_UNKNOWN_WHAT' => "Scripte-Fehler: Unbekannte Sponsor-Aktion %s erkannt.",
'SPONSOR_SETTINGS_SAVED' => "Neue Einstellungen gespeichert.",
diff --git a/inc/libs/active_functions.php b/inc/libs/active_functions.php
index 2eab3801b1..bdc32fa76d 100644
--- a/inc/libs/active_functions.php
+++ b/inc/libs/active_functions.php
@@ -47,7 +47,7 @@ function FILTER_ADD_LINK_ACTIVE_LIST () {
if (isExtensionActive('online')) {
// Init content
$content = array(
- 'menu' => "".getConfig('menu_blur_spacer').getMessage('GUEST_ACTIVE_LINK')."",
+ 'menu' => "".getConfig('menu_blur_spacer').getMessage('GUEST_ACTIVE_LINK')."",
'what' => 'active'
);
diff --git a/inc/libs/admins_functions.php b/inc/libs/admins_functions.php
index ce02418337..d9aa9f8575 100644
--- a/inc/libs/admins_functions.php
+++ b/inc/libs/admins_functions.php
@@ -139,14 +139,14 @@ LIMIT 1",
list($adminId) = SQL_FETCHROW($result);
// Rewrite email address to contact link
- $email = "{?URL?}/modules.php?module=".$mod."&what=admins_contct&admin=".bigintval($adminId);
+ $email = '{%url=modules.php?module=' . $mod . '&what=admins_contct&admin=' . bigintval($adminId) . '%}';
} // END - if
// Free memory
SQL_FREERESULT($result);
} elseif ((is_int($email)) && ($email > 0)) {
// Direct id given
- $email = "{?URL?}/modules.php?module=".$mod."&what=admins_contct&admin=".bigintval($email);
+ $email = '{%url=modules.php?module=' . $mod . '&what=admins_contct&admin=' . bigintval($email) . '%}';
}
// Return rewritten (?) email address
diff --git a/inc/libs/task_functions.php b/inc/libs/task_functions.php
index 10298ce43d..0d9b52f822 100644
--- a/inc/libs/task_functions.php
+++ b/inc/libs/task_functions.php
@@ -86,7 +86,7 @@ function outputAdvancedOverview (&$result_main) {
$value = countSumTotalData(getCurrentAdminId(), 'task_system', 'id', 'assigned_admin', true, " AND `status`='NEW' AND `task_type`='EXTENSION_UPDATE'");
if ($value > 0) {
- $content['update_tasks'] = "".$value."";
+ $content['update_tasks'] = "".$value."";
} // END - if
//
@@ -96,21 +96,21 @@ function outputAdvancedOverview (&$result_main) {
$value = countSumTotalData('CONFIRMED', 'user_data', 'userid', 'status', true);
if ($value > 0) {
- $content['confirmed_members'] = "".$value."";
+ $content['confirmed_members'] = "".$value."";
} // END - if
// Unconfirmed accounts
$value = countSumTotalData('UNCONFIRMED', 'user_data', 'userid', 'status', true);
if ($value > 0) {
- $content['unconfirmed_members'] = "".$value."";
+ $content['unconfirmed_members'] = "".$value."";
} // END - if
// And locked accounts
$value = countSumTotalData('LOCKED', 'user_data', 'userid', 'status', true);
if ($value > 0) {
- $content['locked_members'] = "".$value."";
+ $content['locked_members'] = "".$value."";
} // END - if
//
@@ -119,7 +119,7 @@ function outputAdvancedOverview (&$result_main) {
$value = countSumTotalData(0, 'task_system', 'id', 'assigned_admin', true, " AND `status` != 'DELETED'");
if ($value > 0) {
- $content['new_tasks'] = "".$value."";
+ $content['new_tasks'] = "".$value."";
} // END - if
//
@@ -128,7 +128,7 @@ function outputAdvancedOverview (&$result_main) {
$value = countSumTotalData('CLOSED', 'task_system', 'id', 'status', true);
if ($value > 0) {
- $content['closed_tasks'] = "".$value."";
+ $content['closed_tasks'] = "".$value."";
} // END - if
//
@@ -137,7 +137,7 @@ function outputAdvancedOverview (&$result_main) {
$value = countSumTotalData('DELETED', 'task_system', 'id', 'status', true);
if ($value > 0) {
- $content['deleted_tasks'] = "".$value."";
+ $content['deleted_tasks'] = "".$value."";
} // END - if
//
@@ -146,7 +146,7 @@ function outputAdvancedOverview (&$result_main) {
$value = countSumTotalData('SOLVED', 'task_system', 'id', 'status', true, sprintf(" AND `assigned_admin`=%s", getCurrentAdminId()));
if ($value > 0) {
- $content['solved_tasks'] = "".$value."";
+ $content['solved_tasks'] = "".$value."";
} // END - if
//
@@ -155,7 +155,7 @@ function outputAdvancedOverview (&$result_main) {
$value = countSumTotalData(getCurrentAdminId(), 'task_system', 'id', 'assigned_admin', true, " AND `status`='NEW' AND task_type != 'EXTENSION_UPDATE'");
if ($value > 0) {
- $content['your_tasks'] = "".$value."";
+ $content['your_tasks'] = "".$value."";
} // END - if
//
@@ -164,7 +164,7 @@ function outputAdvancedOverview (&$result_main) {
$value = countSumTotalData('ADMIN', 'pool', 'id', 'data_type', true);
if ($value > 0) {
- $content['pending_mails'] = "".$value."";
+ $content['pending_mails'] = "".$value."";
} // END - if
//
@@ -173,7 +173,7 @@ function outputAdvancedOverview (&$result_main) {
$value = countSumTotalData('TEMP', 'pool', 'id', 'data_type', true);
if ($value > 0) {
- $content['canceled_mails'] = "".$value."";
+ $content['canceled_mails'] = "".$value."";
} // END - if
//
@@ -182,7 +182,7 @@ function outputAdvancedOverview (&$result_main) {
$value = countSumTotalData('SEND', 'pool', 'id', 'data_type', true);
if ($value > 0) {
- $content['send_emails'] = "".$value."";
+ $content['send_emails'] = "".$value."";
} // END - if
//
@@ -193,7 +193,7 @@ function outputAdvancedOverview (&$result_main) {
$value = countSumTotalData('DELETED', 'pool', 'id', 'data_type', true);
if ($value > 0) {
- $content['purged_mails'] = "".$value."";
+ $content['purged_mails'] = "".$value."";
} // END - if
//
@@ -204,7 +204,7 @@ function outputAdvancedOverview (&$result_main) {
$value = countSumTotalData('DELETED', 'bonus', 'id', 'data_type', true);
if ($value > 0) {
- $content['purged_bonus_mails'] = "".$value."";
+ $content['purged_bonus_mails'] = "".$value."";
} // END - if
} elseif (isExtensionActive('bonus')) {
$content['purged_bonus_mails'] = sprintf(getMessage('ADMIN_EXT_BONUS_OUTDATED'), '0.1.8');
@@ -224,7 +224,7 @@ function outputAdvancedOverview (&$result_main) {
$value = countSumTotalData('SEND', 'bonus', 'id', 'data_type', true, " AND `is_notify`='N'");
if ($value > 0) {
- $content['send_bonus_mails'] = "".$value."";
+ $content['send_bonus_mails'] = "".$value."";
} // END - if
} elseif (isExtensionActive('bonus')) {
$content['send_bonus_mails'] = sprintf(getMessage('ADMIN_EXT_BONUS_OUTDATED'), '0.1.8');
@@ -578,7 +578,7 @@ function createExtraTaskRows ($WHATs, $DESCRs, $TITLEs) {
if (($value > 0) && (!empty($WHATs[$key]))) {
if (empty($TITLEs[$key])) $TITLEs[$key] = getMessage('ADMIN_TASK_UNKNOWN_LIST_TITLE');
- $content['row_link'] = "".$value."";
+ $content['row_link'] = "".$value."";
} else {
$content['row_link'] = '0';
}
diff --git a/inc/libs/theme_functions.php b/inc/libs/theme_functions.php
index ed45abc62e..e39f97f3f7 100644
--- a/inc/libs/theme_functions.php
+++ b/inc/libs/theme_functions.php
@@ -4,7 +4,7 @@
* =================== Last change: 12/13/2004 *
* *
* -------------------------------------------------------------------- *
- * File : theme-manager.php *
+ * File : theme manager.php *
* -------------------------------------------------------------------- *
* Short description : Theme manager *
* -------------------------------------------------------------------- *
@@ -48,8 +48,9 @@ function generateThemeSelectionBox () {
$mod = getModule();
// Construction URL
- $formAction = "{?URL?}/modules.php?module=" . $mod;
+ $formAction = "{%url=modules.php?module=" . $mod;
if (!empty($what)) $formAction .= "&what=" . $what;
+ $formAction = '%}';
// Initialize array
$themesArray = array(
diff --git a/inc/libs/user_functions.php b/inc/libs/user_functions.php
index 75d9fe3de1..ef117260fb 100644
--- a/inc/libs/user_functions.php
+++ b/inc/libs/user_functions.php
@@ -57,9 +57,9 @@ function alpha ($sortby, $colspan, $return=false) {
$OUT .= '' . $ltr . '';
} else {
// Output link to letter
- $OUT .= '' . $ltr . '';
+ $OUT .= '&letter=' . $ltr . '&sortby=' . $sortby . $add . '%}">' . $ltr . '';
}
if ((($counter / getConfig('user_alpha')) == round($counter / getConfig('user_alpha'))) && ($counter > 0)) {
@@ -113,7 +113,7 @@ function addSortLinks ($letter, $sortby, $colspan, $return=false) {
if ($sortby == $sort) {
$OUT .= '' . $title . ' | ';
} else {
- $OUT .= '' . $title . ' | ';
+ $OUT .= '' . $title . ' | ';
}
} // END - foreach
@@ -154,14 +154,14 @@ function addPageNavigation ($PAGES, $offset, $show_form, $colspan,$return=false)
if (!isGetRequestElementSet('sortby')) setRequestGetElement('sortby', 'userid');
// Base link
- $OUT .= '';
+ $OUT .= '&letter=' . getRequestElement('letter') . '&sortby=' . getRequestElement('sortby') . '&page=' . $page . '&offset=' . $offset . '%}">';
}
$OUT .= $page;
@@ -210,7 +210,7 @@ LIMIT 1",
list($userid) = SQL_FETCHROW($result);
// Rewrite email address to contact link
- $email = '{?URL?}/modules.php?module=' . $mod . '&what=user_contct&userid=' . bigintval($userid);
+ $email = '{%url=modules.php?module=' . $mod . '&what=user_contct&userid=' . bigintval($userid) . '%}';
} // END - if
// Free memory
@@ -221,6 +221,7 @@ LIMIT 1",
}
// Selects a random user id as the new referal id if they have at least X confirmed mails in this run
+// @TODO Double-check configuration entry here
function determineRandomReferalId () {
// Default is zero refid
$refid = '0';
@@ -367,7 +368,7 @@ function doUserLogin ($userid, $passwd, $successUrl = '', $errorUrl = 'modules.p
}
} else {
// Cookies not setable!
- $errorCode = getCode('NO_COOKIES');
+ $errorCode = getCode('COOKIES_DISABLED');
}
} elseif (getExtensionVersion('sql_patches') >= '0.6.1') {
// Update failture counter
diff --git a/inc/modules/admin.php b/inc/modules/admin.php
index d1b8d627b8..e1a87b4fcc 100644
--- a/inc/modules/admin.php
+++ b/inc/modules/admin.php
@@ -235,7 +235,7 @@ if (!isAdminRegistered()) {
case 'pass': // Wrong password
setRequestPostElement('ok', $ret);
- $ret = '{--WRONG_PASS--} [{--ADMIN_RESET_PASS--}]';
+ $ret = '{--WRONG_PASS--} [{--ADMIN_RESET_PASS--}]';
destroyAdminSession();
break;
diff --git a/inc/modules/admin/admin-inc.php b/inc/modules/admin/admin-inc.php
index ca8bf8c006..327e51147f 100644
--- a/inc/modules/admin/admin-inc.php
+++ b/inc/modules/admin/admin-inc.php
@@ -377,7 +377,7 @@ ORDER BY
if (($menu == $action) && (empty($what))) {
$OUT .= '';
} else {
- $OUT .= '[';
+ $OUT .= '[';
}
} else {
$OUT .= '';
@@ -447,7 +447,7 @@ ORDER BY
if ($what == $what_sub) {
$OUT .= '';
} else {
- $OUT .= '[';
+ $OUT .= '[';
}
} else {
$OUT .= '';
@@ -730,7 +730,7 @@ function generateUserProfileLink ($userid, $title = '', $what = 'list_user') {
}
// Return link
- return '[' . $title . ']';
+ return '[' . $title . ']';
}
// Check "logical-area-mode"
@@ -1323,11 +1323,11 @@ function adminCreateUserLink ($userid) {
// Is the userid set correctly?
if ($userid > 0) {
// Create a link to that profile
- return '{?URL?}/modules.php?module=admin&what=list_user&userid='.bigintval($userid);
+ return '{%url=modules.php?module=admin&what=list_user&userid='.bigintval($userid) . '%}';
} // END - if
// Return a link to the user list
- return '{?URL?}/modules.php?module=admin&what=list_user';
+ return '{%url=modules.php?module=admin&what=list_user%}';
}
// Generate a "link" for the given admin id (admin_id)
diff --git a/inc/modules/admin/what-adminedit.php b/inc/modules/admin/what-adminedit.php
index d7e8bbdc96..56e36a0db7 100644
--- a/inc/modules/admin/what-adminedit.php
+++ b/inc/modules/admin/what-adminedit.php
@@ -247,13 +247,13 @@ WHERE ".$AND." AND id=%s LIMIT 1",
$data['navi'] = '';
if (($data['sort'] == '0') || (($data['sort'] == 1) && (!empty($SUB)))) {
// Is highest position
- $data['navi'] = "{--LOWER--}";
+ $data['navi'] = "{--LOWER--}";
} elseif ($cnt == $max) {
// Is lowest position
- $data['navi'] = "{--HIGHER--}";
+ $data['navi'] = "{--HIGHER--}";
} elseif ($data['sort'] > 0) {
// Anything else between highest and lowest
- $data['navi'] = "{--HIGHER--}/{--LOWER--}";
+ $data['navi'] = "{--HIGHER--}/{--LOWER--}";
}
// Fix empty elements for constant (fixes display bugs in Firefox)
diff --git a/inc/modules/admin/what-admins_contct.php b/inc/modules/admin/what-admins_contct.php
index 0c6d06d386..6a5b66f07d 100644
--- a/inc/modules/admin/what-admins_contct.php
+++ b/inc/modules/admin/what-admins_contct.php
@@ -39,7 +39,7 @@
// Some security stuff...
if ((!defined('__SECURITY')) || (!isAdmin())) {
die();
-}
+} // END - if
// Add description as navigation point
addMenuDescription('admin', __FILE__);
@@ -49,7 +49,7 @@ if ((isFormSent()) && (isGetRequestElementSet('admin'))) {
if ((isExtensionActive('msg')) && (postRequestElement('type') == 'message')) {
// Add message
$message = loadEmailTemplate('admins_msg_contct_admin', postRequestElement('text'), 0);
- SEND_ADMIN_MESSAGE(getRequestElement('admin'), ADMINS_MSG_FROM_ADMIN, $message);
+ sendAdminMessage(getRequestElement('admin'), getMessage('ADMINS_MSG_FROM_ADMIN'), $message);
} else {
// Load admin's email address
$email = getAdminEmail(bigintval(getRequestElement('admin')));
diff --git a/inc/modules/admin/what-config_home.php b/inc/modules/admin/what-config_home.php
index b9fe7597b4..05c5f93034 100644
--- a/inc/modules/admin/what-config_home.php
+++ b/inc/modules/admin/what-config_home.php
@@ -55,7 +55,7 @@ switch ($sub) {
adminSaveSettingsFromPostData();
// Display continue link
- loadTemplate('admin_settings_saved', false, "{--ADMIN_CONTINUE_TO_CONFIG--}");
+ loadTemplate('admin_settings_saved', false, "{--ADMIN_CONTINUE_TO_CONFIG--}");
} else {
// Prepare data for the template
$content = array_fill(-1, 60, '');
@@ -88,13 +88,13 @@ ORDER BY `sort` ASC", __FILE__, __LINE__);
// Process all entries
while ($content = SQL_FETCHARRAY($result)) {
// Link for setting 'what' as new "home"
- $newHomeLink = "{--_IS_NEW_HOME--}";
+ $newHomeLink = "{--_IS_NEW_HOME--}";
// Is this current home?
if ($content['what'] == getConfig('index_home')) {
// Is current home
- $newHomeLink = "