From: Roland Häder Date: Sun, 6 Jun 2010 15:49:41 +0000 (+0000) Subject: A lot forced-space characters ( ) removed, naming convention applied also in... X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=commitdiff_plain;h=22ba0c36c75ff989a6f48197c5a71524fb891b87 A lot forced-space characters ( ) removed, naming convention applied also in JavaScript functions --- diff --git a/inc/db/lib-mysql3.php b/inc/db/lib-mysql3.php index cd5efd4600..4f4b8cd098 100644 --- a/inc/db/lib-mysql3.php +++ b/inc/db/lib-mysql3.php @@ -76,8 +76,7 @@ function SQL_QUERY ($sqlString, $F, $L) { $sqlString = str_replace('{PER}', '%', $sqlString); // Compile config entries out - $eval = '$sqlString = "' . FILTER_COMPILE_CONFIG(escapeQuotes($sqlString)) . '";'; - eval($eval); + $sqlString = SQL_PREPARE_SQL_STRING($sqlString); // Starting time $querytimeBefore = microtime(true); @@ -550,5 +549,21 @@ function SQL_HASZERONUMS ($result) { return (SQL_NUMROWS($result) === 0); } +// Private function to prepare the SQL query string +function SQL_PREPARE_SQL_STRING ($sqlString) { + // Is it already cached? + if (!isset($GLOBALS['sql_strings'][$sqlString])) { + // No, then generate the eval() command + $eval = '$sql = "' . FILTER_COMPILE_EXPRESSION_CODE(FILTER_COMPILE_CONFIG(escapeQuotes($sqlString))) . '";'; + eval($eval); + + // ... and set it + $GLOBALS['sql_strings'][$sqlString] = $sql; + } // END - if + + // Return it + return $GLOBALS['sql_strings'][$sqlString]; +} + // [EOF] ?> diff --git a/inc/expression-functions.php b/inc/expression-functions.php index c77eb0c92a..c3d1f57f8b 100644 --- a/inc/expression-functions.php +++ b/inc/expression-functions.php @@ -42,10 +42,17 @@ if (!defined('__SECURITY')) { die(); } // END - if +// Private function to replace the code +function replaceExpressionCode ($data, $replacer) { + // Replace the code + // @TODO is escapeQuotes() enougth for strings with single/double quotes? + return str_replace($data['matches'][0][$data['key']], $replacer, escapeQuotes($data['code'])); +} + // Expression call-back function for getCode() calls function doExpressionCode ($data) { // Replace the code - $code = str_replace($data['matches'][0][$data['key']], "\" . getCode('" . $data['matches'][4][$data['key']] . "') . \"", $data['code']); + $code = str_replace($data['matches'][0][$data['key']], "{DQUOTE} . getCode('" . $data['matches'][4][$data['key']] . "') . {DQUOTE}", $data['code']); // Return replaced code return $code; @@ -57,10 +64,10 @@ function doExpressionUrl ($data) { if ($data['callback'] == 'js') $data['mode'] = 1; // Handle an URL here - $replacer = "\" . encodeUrl(\"" . $data['matches'][4][$data['key']] . "\", " . $data['mode'] . ") . \""; + $replacer = "{DQUOTE} . encodeUrl('" . $data['matches'][4][$data['key']] . "', " . $data['mode'] . ') . {DQUOTE}'; // Replace it - $code = str_replace($data['matches'][0][$data['key']], $replacer, $data['code']); + $code = replaceExpressionCode($data, $replacer); // Return replaced code return $code; @@ -71,8 +78,11 @@ function doExpressionServer ($data) { // This will make 'foo_bar' to detectFooBar() $functionName = "'detect' . implode('', array_map('ucfirst', explode('_', '" . $data['callback'] . "')))"; + // Generate replacer + $replacer = '{DQUOTE} . call_user_func(' . $functionName . ') . {DQUOTE}'; + // Replace it - $code = str_replace($data['matches'][0][$data['key']], "\" . call_user_func(" . $functionName . ") . \"", $data['code']); + $code = replaceExpressionCode($data, $replacer); // Return replaced code return $code; @@ -104,8 +114,11 @@ function doExpressionUser ($data) { $functionName = $data['extra_func'] . '(' . $functionName . ')'; } // END - if + // Generate replacer + $replacer = '{DQUOTE} . ' . $functionName . ' . "'; + // Now replace the code - $code = str_replace($data['matches'][0][$data['key']], "\" . " . $functionName . " . \"", $data['code']); + $code = replaceExpressionCode($data, $replacer); // Return replaced code return $code; @@ -122,11 +135,14 @@ function doExpressionExt ($data) { $functionName = 'getExtension' . ucfirst(strtolower($data['callback'])); // Construct call of the function - $replacer = "\" . call_user_func_array('" . $functionName . "', array('" . $data['matches'][4][$data['key']] . "', true)) . \""; + $replacer = "{DQUOTE} . call_user_func_array('" . $functionName . "', array('" . $data['matches'][4][$data['key']] . "', true)) . {DQUOTE}"; } // END - if + // Generate replacer + $replacer = sprintf("&ext=%s&ver=%s&rev={DQUOTE} . getConfig('CURR_SVN_REVISION') . {DQUOTE}", $data['matches'][4][$data['key']], $replacer); + // Replace it and insert parameter for GET request - $code = str_replace($data['matches'][0][$data['key']], sprintf("&ext=%s&ver=%s&rev=\" . getConfig('CURR_SVN_REVISION') . \"", $data['matches'][4][$data['key']], $replacer), $data['code']); + $code = replaceExpressionCode($data, $replacer); // Return replaced code return $code; @@ -138,11 +154,17 @@ function doExpressionConfig ($data) { // Read configuration $configValue = getConfig($data['matches'][4][$data['key']]); - // Construct a new expression - $replacer = '{%pipe,' . $data['callback'] . ',' . $configValue . '%}'; + // Default replacer is the config value itself + $replacer = $configValue; + + // Is there a call-back function provided? + if (!empty($data['callback'])) { + // Construct a new expression + $replacer = '{%pipe,' . $data['callback'] . ',' . $configValue . '%}'; + } // END - if // Replace the config entry - $code = str_replace($data['matches'][0][$data['key']], $replacer, $data['code']); + $code = replaceExpressionCode($data, $replacer); // Return replaced code return $code; @@ -156,11 +178,11 @@ function doExpressionPipe ($data) { // Do we have a call-back? Should always be there! if (!empty($data['callback'])) { // Parse it through this function - $replacer = "\" . " . $data['callback'] . "('" . $replacer . "') . \""; + $replacer = '{DQUOTE} . ' . $data['callback'] . "('" . $replacer . "') . {DQUOTE}"; } // END - if // Replace the config entry - $code = str_replace($data['matches'][0][$data['key']], $replacer, $data['code']); + $code = replaceExpressionCode($data, $replacer); // Return replaced code return $code; @@ -169,10 +191,10 @@ function doExpressionPipe ($data) { // Expression call-back function for calling filters function doExpressionFilter ($data) { // Construct replacement - $replacer = "\" . runFilterChain('" . $data['matches'][4][$data['key']] . "') . \""; + $replacer = "{DQUOTE} . runFilterChain('" . $data['matches'][4][$data['key']] . "') . {DQUOTE}"; // Run the filter and insert result - $code = str_replace($data['matches'][0][$data['key']], $replacer, $data['code']); + $code = replaceExpressionCode($data, $replacer); // Return replaced code return $code; @@ -193,7 +215,7 @@ function doExpressionValidatorLinks ($data) { } // END - if // Replace the code - $code = str_replace($data['matches'][0][$data['key']], $replacer, $code); + $code = replaceExpressionCode($data, $replacer); // Return the (maybe) replaced code return $code; @@ -204,15 +226,14 @@ function doExpressionMessage ($data) { // Message string replacement depends on if message is masked if (isMessageMasked($data['callback'])) { // Message should be masked - $replacer = "\" . getMaskedMessage('" . $data['callback'] . "', '" . $data['extra_func'] . "') . \""; + $replacer = "{DQUOTE} . getMaskedMessage('" . $data['callback'] . "', '" . $data['extra_func'] . "') . {DQUOTE}"; } else { // Regular message - $replacer = "\" . getMessage('" . $data['callback'] . "') . \""; + $replacer = "{DQUOTE} . getMessage('" . $data['callback'] . "') . {DQUOTE}"; } // Replace the code - // @TODO is escapeQuotes enougth for strings with single/double quotes? - $code = str_replace($data['matches'][0][$data['key']], $replacer, escapeQuotes($data['code'])); + $code = replaceExpressionCode($data, $replacer); // Return the (maybe) replaced code return $code; diff --git a/inc/extensions/ext-network.php b/inc/extensions/ext-network.php index c74f1153f9..82af41e464 100644 --- a/inc/extensions/ext-network.php +++ b/inc/extensions/ext-network.php @@ -158,7 +158,7 @@ PRIMARY KEY (`network_translate_id`) UNIQUE `provider_type_key` (`network_id`,`network_type_id`,`network_array_index`), UNIQUE `provider_type_trans` (`network_id`,`network_type_id`,`network_index_translation`), PRIMARY KEY (`network_array_id`) -) TYPE={?_TABLE_TYPE?} COMMENT='Return codes'"); +) TYPE={?_TABLE_TYPE?} COMMENT='Translation of API responses'"); // Data from the webmaster (you!) addExtensionSql('DROP TABLE IF EXISTS `{?_MYSQL_PREFIX?}_network_config`'); @@ -2041,7 +2041,8 @@ PRIMARY KEY (`network_reload_id`) addAdminMenuSql('network','list_network_params','Abfrageparameter','Experten-Einstellungen! Hier stellen Sie die Abfrageparameter (wie sie genannt werden müssen, um das API-Script korrekt aufrufen zu können) ein, pro Werbenetzwerk. Sie sollten hier generell nichts einstellen und im Forum um Hilfe fragen, wenn Sie selber ein Werbenetzwerk einrichten möchten.',8); addAdminMenuSql('network','list_network_array_translation','Antwort-Array','Experten-Einstellungen! Hier stellen Sie die Zuweisungen der aus der analysierten API-Antwort Array-Elementen zu den Datenspalten ein. Sie sollten hier generell nichts einstellen und im Forum um Hilfe fragen, wenn Sie selber ein Werbenetzwerk einrichten möchten.',9); addAdminMenuSql('network','list_network_error_codes','Fehlercodes','Experten-Einstellungen! Hier stellen Sie die Fehlercodes ein, die im Falle eines Fehlers pro API-Script kommen können. Sie sollten hier generell nichts einstellen und im Forum um Hilfe fragen, wenn Sie selber ein Werbenetzwerk einrichten möchten.',10); - addAdminMenuSql('network','list_network_error_types','Fehlertypen','Experten-Einstellungen! Hier stellen Sie die Namen von Fehlercodes ein, die Scripte zurückliefern können. Dies sind INTERNE Daten und sollten nur vom Entwicklerteam angepasst werden. Stellen Sie an diesen Einstellungen bitte nichts um. Sie sollten hier generell nichts einstellen und im Forum um Hilfe fragen, wenn Sie selber ein Werbenetzwerk einrichten möchten.',11); + addAdminMenuSql('network','list_network_translations','Array-Übersetzungen','Experten-Einstellungen! Hier richten Sie Array-Index-Übersetzungen für nicht-fehler API-Antworten ein. Dies sind INTERNE Daten und sollten nur vom Entwicklerteam angepasst werden. Sie sollten hier generell nichts einstellen und im Forum um Hilfe fragen, wenn Sie selber ein Werbenetzwerk einrichten möchten.',11); + addAdminMenuSql('network','list_network_error_types','Fehlertypen','Experten-Einstellungen! Hier stellen Sie die Namen von Fehlercodes ein, die Scripte zurückliefern können. Dies sind INTERNE Daten und sollten nur vom Entwicklerteam angepasst werden. Stellen Sie an diesen Einstellungen bitte nichts um. Sie sollten hier generell nichts einstellen und im Forum um Hilfe fragen, wenn Sie selber ein Werbenetzwerk einrichten möchten.',12); // Configuration entries addExtensionSql('ALTER TABLE `{?_MYSQL_PREFIX?}_config` ADD `network_cache_refresh` BIGINT(20) UNSIGNED NOT NULL DEFAULT ' . (60 * 15) . ''); diff --git a/inc/filters.php b/inc/filters.php index 198067b39d..4dcb9e3f0f 100644 --- a/inc/filters.php +++ b/inc/filters.php @@ -71,8 +71,8 @@ function FILTER_FLUSH_FILTERS () { $removed = '0'; // Prepare SQL queries - $insertSQL = "INSERT INTO `{?_MYSQL_PREFIX?}_filters` (`filter_name`,`filter_function`,`filter_active`) VALUES"; - $removeSQL = "DELETE LOW_PRIORITY FROM `{?_MYSQL_PREFIX?}_filters` WHERE"; + $insertSQL = 'INSERT INTO `{?_MYSQL_PREFIX?}_filters` (`filter_name`,`filter_function`,`filter_active`) VALUES'; + $removeSQL = 'DELETE LOW_PRIORITY FROM `{?_MYSQL_PREFIX?}_filters` WHERE'; // Write all filters to database foreach ($GLOBALS['cache_array']['filter']['chains'] as $filterName => $filterArray) { @@ -409,13 +409,13 @@ function FILTER_COMPILE_CONFIG ($code, $compiled = false) { // Is the config valid? if (isConfigEntrySet($matches[1][$key])) { // Set it for caching - $GLOBALS['compile_config'][$matches[1][$key]] = "\" . getConfig('" . $matches[1][$key] . "') . \""; + $GLOBALS['compile_config'][$matches[1][$key]] = '{%config=' . $matches[1][$key] . '%}'; } elseif (isConfigEntrySet('default_' . strtoupper($matches[1][$key]))) { // Use default value - $GLOBALS['compile_config'][$matches[1][$key]] = "\" . getConfig('" . 'DEFAULT_' . strtoupper($matches[1][$key]) . "') . \""; + $GLOBALS['compile_config'][$matches[1][$key]] = '{%config=' . '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]] = '{%message,DEFAULT_' . strtoupper($matches[1][$key]) . '%}'; } else { // Unhandled! $GLOBALS['compile_config'][$matches[1][$key]] = '!' . $matches[1][$key] . '!'; diff --git a/inc/functions.php b/inc/functions.php index eec116f9c7..7b9e64ad5b 100644 --- a/inc/functions.php +++ b/inc/functions.php @@ -157,16 +157,17 @@ function compileFinalOutput () { addPageHeaderFooter(); // Compile all out - while (((strpos($GLOBALS['output'], '{--') !== false) || (strpos($GLOBALS['output'], '{!') !== false) || (strpos($GLOBALS['output'], '{?') !== false) || (strpos($GLOBALS['output'], '{%') !== false)) && ($cnt < 3)) { + while (((strpos($GLOBALS['output'], '{--') !== false) || (strpos($GLOBALS['output'], '{DQUOTE}') !== false) || (strpos($GLOBALS['output'], '{!') !== false) || (strpos($GLOBALS['output'], '{?') !== false) || (strpos($GLOBALS['output'], '{%') !== false)) && ($cnt < 3)) { // Init common variables $content = array(); $newContent = ''; // Compile it //* DEBUG: */ print '
'.htmlentities($GLOBALS['output']).'
'; - $eval = '$newContent = "' . compileCode(escapeQuotes($GLOBALS['output'])) . '";'; + $eval = '$newContent = "' . str_replace('{DQUOTE}', '"', compileCode(escapeQuotes($GLOBALS['output']))) . '";'; //* DEBUG: */ die('
'.htmlentities($eval).'
'); eval($eval); + //* DEBUG: */ die('
'.htmlentities($newContent).'
'); // Was that eval okay? if (empty($newContent)) { @@ -1708,7 +1709,10 @@ function addEmailNavigation ($PAGES, $offset, $show_form, $colspan, $return=fals } // Add seperator if we have not yet reached total pages - if ($page < $PAGES) $NAV .= ' | '; + if ($page < $PAGES) { + // Add it + $NAV .= '|'; + } // END - if } // END - for // Define constants only once @@ -2081,7 +2085,7 @@ function generateMemberAdminActionLinks ($userid, $status = '') { $targetArray = array('del_user', 'edit_user', 'lock_user', 'add_points', 'sub_points'); // Begin of navigation links - $OUT = '[ '; + $OUT = '['; foreach ($targetArray as $tar) { $OUT .= ' '; @@ -3759,7 +3763,7 @@ function generateSelectionBoxFromArray ($options, $name, $optionValue, $optionCo // Add the '; @@ -3777,7 +3781,7 @@ function generateSelectionBoxFromArray ($options, $name, $optionValue, $optionCo ); // Load template and return it - return loadTemplate('select_' . $name . '_box', true, $content); + return loadTemplate('select_' . $name . $extraName . '_box', true, $content); } // Get a module from filename and access level diff --git a/inc/install-inc.php b/inc/install-inc.php index 38e4a6be53..f27ccb8c02 100644 --- a/inc/install-inc.php +++ b/inc/install-inc.php @@ -103,7 +103,7 @@ if ((!isInstalled()) || (!isAdminRegistered())) { if (ifFatalErrorsDetected()) { addToInstallContent('
'); foreach (getFatalArray() as $key => $err) { - addToInstallContent('
· {--FATAL_NO--}' . ($key + 1) . ': ' . $err . '
'); + addToInstallContent('
· {--FATAL_NO--}' . ($key + 1) . ': ' . $err . '
'); } // END - foreach addToInstallContent('
'); } // END - if diff --git a/inc/language/de.php b/inc/language/de.php index b91dfb6f5a..d336270ccc 100644 --- a/inc/language/de.php +++ b/inc/language/de.php @@ -1029,15 +1029,14 @@ addMessages(array( 'SUBJECT_DIRECT_PAYMENT' => "Direkte {?POINTS?}-Gutschrift durch das System", 'ADMIN_LOGOUT_SQL_PATCHES_DONE' => "Sie wurden automatisch ausgeloggt, da Sie die Erweiterung sql_patches installiert haben und dabei das Passort-Hashing geändert/verbessert wurde. Bitte erneut einloggen.", 'ADMIN_LOGOUT_SQL_PATCHES_REMOVE' => "Sie wurden automatisch ausgeloggt, da Sie die Erweiterung sql_patches entfernt haben. Bitte klicken Sie weiter, um jetzt das Passwort neu zu setzen.", - 'ADMIN_POINTS_REPAYED' => "Es wurden dem Mitglied %s  {?POINTS?} zurückgeschrieben.", - 'ADMIN_POINTS_TO_JACKPOT' => "Es wurden %s  {?POINTS?} in den Jackpot gelegt.", + 'ADMIN_POINTS_REPAYED' => "Es wurden dem Mitglied %s {?POINTS?} zurückgeschrieben.", + 'ADMIN_POINTS_TO_JACKPOT' => "Es wurden %s {?POINTS?} in den Jackpot gelegt.", 'ADMIN_NO_POINTS_REPAYED' => "Die Mailbuchung hatte keine {?POINTS?} zum zurückbuchen.", - 'ADMIN_POINTS_SHREDDED' => "Es wurden %s  {?POINTS?} geschrettert.", - 'EXTENSION_PROBLEM_EXTENSION_INACTIVE' => "Kann nicht fortfahren! Fehler: Erweiterung %s deaktiviert.", + 'ADMIN_POINTS_SHREDDED' => "Es wurden %s {?POINTS?} geschrettert.", 'ADMIN_EXTENSION_PROBLEM_EXTENSION_INACTIVE' => "Die Erweiterung %s ist derzeit deaktiviert.
Hier können Sie diese aktivieren.", - 'EXTENSION_PROBLEM_EXTENSION_NOT_INSTALLED' => "Kann nicht fortfahren! Fehler: Erweiterung %s nicht installiert.", 'ADMIN_EXTENSION_PROBLEM_EXTENSION_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_EXTENSION_INACTIVE' => "Kann nicht fortfahren! Fehler: Erweiterung %s deaktiviert.", + 'EXTENSION_PROBLEM_EXTENSION_NOT_INSTALLED' => "Kann nicht fortfahren! Fehler: Erweiterung %s nicht installiert.", 'EXTENSION_PROBLEM_UNSET_EXT' => "Skriptfehler: Parameter ext nicht gesetzt.", 'EXTENSION_WARNING_EXTENSION_INACTIVE' => "Die Erweiterung %s ist nicht aktiv. Dies kann zu Störungen führen.
\nBitte aktivieren Sie diese unter Verschiedenes->Erweiterungen.", 'EXTENSION_WARNING_USER_LIMIT' => "Die Erweiterung user ist nicht aktiv. Die Anzahl Mitglieder pro Seite wurde auf 100 gesetzt. Bitte aktivieren Sie diese unter Verschiedenes->Erweiterungen.", diff --git a/inc/language/network_de.php b/inc/language/network_de.php index 99b0beb208..2023154526 100644 --- a/inc/language/network_de.php +++ b/inc/language/network_de.php @@ -65,6 +65,7 @@ addMessages(array( 'ADMIN_NETWORK_REQUEST_PARAMETER_NOTHING_CHANGED' => "Es wurden keine Änderungen an den API-Parametern ausgeführt.", 'ADMIN_NETWORK_REQUEST_PARAMETER_NOTHING_REMOVED' => "Es wurden keine API-Parameter gelöscht.", 'ADMIN_NETWORK_ARRAY_TRANSLATION_404' => "Es wurden keine Übersetzungen zum Antwort-Array zum Werbenetzwerk %s gefunden.", + 'ADMIN_NETWORK_TRANSLATIONS_404' => "Es wurden keine Array-Übersetzungen für den Werbeart-Handler %s ({%%network,getNetworkDataById,network_title=%%network%%%%}) gefunden.", // - Form titles 'ADMIN_NETWORK_ADD_TITLE' => "Neues Werbenetzwerk hinzufügen - Allgemeine Daten", 'ADMIN_NETWORK_EDIT_TITLE' => "Werbenetzwerk editieren - Allgemeine Daten", @@ -194,8 +195,8 @@ addMessages(array( 'ADMIN_NETWORK_REQUEST_PARAMETER_EROTIC' => "Erotik erlaubt", 'ADMIN_NETWORK_REQUEST_PARAMETER_EXTRA' => "Extra-Parameter", // - Return code translation - 'ADMIN_NETWORK_ARRAY_TRANSLATION_INDEX' => "Rückgabe-Code auswählen", - 'ADMIN_NETWORK_ARRAY_TRANSLATION_INDEX_TRANSLATION' => "", + 'ADMIN_NETWORK_ARRAY_TRANSLATION_INDEX' => "Neuen Array-Index eintragen", + 'ADMIN_NETWORK_ARRAY_TRANSLATION_INDEX_TRANSLATION' => "Index-Übersetzung auswählen", // Error codes 'ADMIN_NETWORK_AFF_ID_PASS_WRONG_ERROR_CODE' => "Affiliate-Id oder -Passwort falsch", 'ADMIN_NETWORK_SITE_ID_NOT_ASSIGNED_ERROR_CODE' => "Seiten-Id nicht zugewiesen/ungültig", diff --git a/inc/language/payout_de.php b/inc/language/payout_de.php index 8fe926a276..d50bbe5b57 100644 --- a/inc/language/payout_de.php +++ b/inc/language/payout_de.php @@ -100,7 +100,7 @@ addMessages(array( 'PAYOUT_TARGET_BANK2' => "Ziel-Bank", 'PAYOUT_ID' => "Auszahlungs-Id", 'PAYOUT_TIMESTAMP' => "Wann?", - 'PAYOUT_STATUS' => "Status / Aktionen", + 'PAYOUT_STATUS' => "Status/Aktionen", 'PAYOUT_STATUS_NEW' => "Neu", 'PAYOUT_STATUS_ACCEPTED' => "Angenommen", 'PAYOUT_STATUS_REJECTED' => "Abgelehnt", diff --git a/inc/language/sponsor_de.php b/inc/language/sponsor_de.php index 6f7463b76a..485566a57f 100644 --- a/inc/language/sponsor_de.php +++ b/inc/language/sponsor_de.php @@ -277,7 +277,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.", diff --git a/inc/language/surfbar_de.php b/inc/language/surfbar_de.php index 85e92f5562..ed0c9455f0 100644 --- a/inc/language/surfbar_de.php +++ b/inc/language/surfbar_de.php @@ -54,12 +54,12 @@ addMessages(array( 'ADMIN_CONFIG_SURFBAR_PAYMENT_MODEL_DYNAMIC' => "Dynamische Werte errechnen.", 'ADMIN_CONFIG_SURFBAR_DYNAMIC_PERCENT' => "Prozent auf dynamische Vergütung/ Verweildauer/Reload-Sperre:", 'ADMIN_CONFIG_SURFBAR_MAX_ORDER' => "Maximal durch Mitglied in Surfbar buchbare URLs:", - 'ADMIN_CONFIG_SURFBAR_RESTART_TIME' => "Ruhezeit der Surfbar, wenn alle URLs in Reload-Lock sind: ", + 'ADMIN_CONFIG_SURFBAR_RESTART_TIME' => "Ruhezeit der Surfbar, wenn alle URLs in Reload-Lock sind:", 'ADMIN_CONFIG_SURFBAR_AUTOSTART' => "Surfbar soll nach Ruhezeit automatisch starten?", 'ADMIN_CONFIG_SURFBAR_STATS_RELOAD' => "Reload-Zeit der Statistik unterhalb der beworbenen Seite:", 'ADMIN_CONFIG_SURFBAR_PURGE_DELETED' => "Verweildauer gelöschter URLs in der Datenbank:", 'ADMIN_CONFIG_SURFBAR_PURGE_MIGRATED' => "Verweildauer migrierter URLs in der Datenbank:", - 'ADMIN_CONFIG_SURFBAR_NOTE' => "Hinweise: Es wird empfohlen, die Ruhezeit etwas länger als die Reload-Sperre einzustellen. Migrierte URLs sind aus Mailbuchungen übernommene URLs, die das Mitglied noch bestätigen muss. Werden URLs aus freigeschalteten Mailbuchungen in die Surfbar "migriert" so muss erst das Mitglied der Aufnahme zustimmen. Tut es dies nicht, wird die URL wieder aus der Surfbar entfernt. Eine sofortige Freischaltung ist nicht möglich.", + 'ADMIN_CONFIG_SURFBAR_NOTE' => "Hinweise: Es wird empfohlen, die Ruhezeit etwas länger als die Reload-Sperre einzustellen. Migrierte URLs sind aus Mailbuchungen übernommene URLs, die das Mitglied noch bestätigen muss. Werden URLs aus freigeschalteten Mailbuchungen in die Surfbar "migriert" so muss erst das Mitglied der Aufnahme zustimmen. Tut es dies nicht, wird die URL wieder aus der Surfbar entfernt. Eine sofortige Freischaltung ist nicht möglich.", 'ADMIN_CONFIG_SURFBAR_PAUSE_MODE' => "Auf welche Seite soll umgeleitet werden, wenn das Mitglied alle gebuchten URLs besucht hat? (Wenn sie also im Reload-Lock sind)", 'ADMIN_CONFIG_SURFBAR_PAUSE_MODE_INTERNAL' => "Auf interne Pausenseite umleiten.", 'ADMIN_CONFIG_SURFBAR_PAUSE_MODE_EXTERNAL' => "Auf externe Seite umleiten.
(Bitte angeben)", diff --git a/inc/libs/network_functions.php b/inc/libs/network_functions.php index b33bfea63b..11ca2ba09d 100644 --- a/inc/libs/network_functions.php +++ b/inc/libs/network_functions.php @@ -42,6 +42,16 @@ if (!defined('__SECURITY')) { die(); } // END - if +// Private setter for current network id +function setCurrentNetworkId ($id) { + $GLOBALS['current_network_id'] = bigintval($id); +} + +// Private getter for current network id +function getCurrentNetworkId () { + return $GLOBALS['current_network_id']; +} + // Handle a (maybe) sent form here function doNetworkHandleForm () { // Was the form sent? @@ -139,6 +149,9 @@ function getNetworkDataById ($id, $column = '') { debug_report_bug('Network id ' . $id . ' is smaller than 1.'); } // END - if + // Set current network id + setCurrentNetworkId($id); + // Is it cached? if (!isset($GLOBALS['network_data'][$id])) { // By default we have no data @@ -174,6 +187,57 @@ LIMIT 1", } } +// "Getter" for a network's data by provided type id number +function getNetworkDataByTypeId ($id, $column = '') { + // Ids lower one are not accepted + if ($id < 1) { + // Not good, should be fixed + debug_report_bug('Network type id ' . $id . ' is smaller than 1.'); + } // END - if + + // Set current network id + setCurrentNetworkId($id); + + // Is it cached? + if (!isset($GLOBALS['network_data'][$id])) { + // By default we have no data + $GLOBALS['network_data'][$id] = array(); + + // Query for the network data + $result = SQL_QUERY_ESC("SELECT + d.`network_id`, d.`network_short_name`, d.`network_title`, d.`network_reflink`, d.`network_data_seperator`, d.`network_row_seperator`, d.`network_request_type`, d.`network_charset`, + t.`network_type_handle`, t.`network_type_api_url`, t.`network_type_click_url`, t.`network_type_banner_url` +FROM + `{?_MYSQL_PREFIX?}_network_data` AS d +LEFT JOIN + `{?_MYSQL_PREFIX?}_network_types` AS t +ON + d.`network_id`=t.`network_id` +WHERE + t.`network_type_id`=%s +LIMIT 1", + array(bigintval($id)), __FUNCTION__, __LINE__); + + // Do we have an entry? + if (SQL_NUMROWS($result) == 1) { + // Then get it + $GLOBALS['network_data'][$id] = SQL_FETCHARRAY($result); + } // END - if + + // Free result + SQL_FREERESULT($result); + } // END - if + + // Return result + if (empty($column)) { + // Return array + return $GLOBALS['network_data'][$id]; + } else { + // Return column + return $GLOBALS['network_data'][$id][$column]; + } +} + // "Getter" for a network type data by provided id number function getNetworkTypeDataById ($id) { // Ids lower one are not accepted @@ -371,6 +435,51 @@ ORDER BY return $content; } +// Generator (somewhat getter) for a list of network types for all types +function generateAdminDistinctNetworkTypeList () { + // Init content + $content = ''; + + // Query all types of this network + $result = SQL_QUERY("SELECT + t.`network_type_id`, t.`network_type_handle`, d.`network_title` +FROM + `{?_MYSQL_PREFIX?}_network_types` AS t +LEFT JOIN + `{?_MYSQL_PREFIX?}_network_data` AS d +ON + t.`network_id`=d.`network_id` +ORDER BY + d.`network_short_name` ASC, + t.`network_type_handle` ASC", __FILE__, __LINE__); + + // Do we have entries? + if (SQL_NUMROWS($result) > 0) { + // List all entries + $rows = array(); + while ($row = SQL_FETCHARRAY($result)) { + // Is this valid, then add it + if ((is_array($row)) && (isset($row['network_type_id']))) { + // Add entry + $rows[$row['network_type_id']] = $row; + } // END - if + } // END - while + + // Generate the selection box + $content = generateSelectionBoxFromArray($rows, 'network_type', 'network_type_id', '', '_title'); + } else { + // Nothing selected + $content = loadTemplate('admin_settings_unsaved', false, getMessage('ADMIN_ENTRIES_404')); + } + + // Free the result + SQL_FREERESULT($result); + //* DEBUG: */ die('
'.htmlentities($content).'
'); + + // Return content + return $content; +} + // Generator (somewhat getter) for network type options function generateNetworkTypeOptions ($id) { // Is this an array, then we just came back from edit/delete actions @@ -451,14 +560,16 @@ function generateNetworkArrayTranslationOptions ($default) { if (!isset($GLOBALS['network_array_translation'][$default])) { // Generate and cache it $GLOBALS['network_array_translation'][$default] = generateOptionList( - 'network_request_params', - 'network_param_id', - 'request_param_key', + 'network_translations', + 'network_translation', + 'network_translation', $default, '', - sprintf("WHERE `network_id`='%s'", bigintval(getRequestParameter('network'))), + sprintf("WHERE `network_type_id`=%s", + bigintval(getRequestParameter('network_type')) + ), $GLOBALS['network_array_translation_disabled'], - 'ADMIN_NETWORK_REQUEST_PARAMETER_' + 'ADMIN_NETWORK_ARRAY_TRANSLATION_' ); } // END - if @@ -1038,12 +1149,15 @@ function doAdminNetworkProcessAddnetworkparamForm () { function doExpressionNetwork ($data) { // Construct replacer $replacer = sprintf( - "\" . %s(%s, '%s') . \"", + "{DQUOTE} . %s(%s, '%s') . {DQUOTE}", $data['callback'], $data['matches'][4][$data['key']], $data['extra_func'] ); + // Replace %network% with the current network id + $replacer = str_replace('%network%', getCurrentNetworkId(), $replacer); + // Replace the code $code = replaceExpressionCode($data, $replacer); @@ -1053,3 +1167,4 @@ function doExpressionNetwork ($data) { // [EOF] ?> + diff --git a/inc/libs/user_functions.php b/inc/libs/user_functions.php index ca86a9b5f8..cc9c5fcc66 100644 --- a/inc/libs/user_functions.php +++ b/inc/libs/user_functions.php @@ -64,9 +64,9 @@ function alpha ($sortby, $colspan, $return=false) { } if ((($counter / getConfig('user_alpha')) == round($counter / getConfig('user_alpha'))) && ($counter > 0)) { - $OUT .= ' ]
[ '; + $OUT .= ']
['; } elseif ( $counter != $num ) { - $OUT .= ' | '; + $OUT .= '|'; } } // END - while @@ -112,9 +112,9 @@ function addSortLinks ($letter, $sortby, $colspan, $return=false) { foreach ($list as $sort => $title) { if ($sortby == $sort) { - $OUT .= '' . $title . ' | '; + $OUT .= '' . $title . '|'; } else { - $OUT .= '' . $title . ' | '; + $OUT .= '' . $title . '|'; } } // END - foreach @@ -173,7 +173,7 @@ function addPageNavigation ($pages, $offset, $showForm, $colspan, $return=false) $OUT .= ''; } - if ($page < $pages) $OUT .= ' | '; + if ($page < $pages) $OUT .= '|'; } // END - for // Remember the list diff --git a/inc/modules/admin/what-list_network_array_translation.php b/inc/modules/admin/what-list_network_array_translation.php index 0777636159..112bf491e0 100644 --- a/inc/modules/admin/what-list_network_array_translation.php +++ b/inc/modules/admin/what-list_network_array_translation.php @@ -6,7 +6,7 @@ * -------------------------------------------------------------------- * * File : what-list_network_array_translation.php * * -------------------------------------------------------------------- * - * Short description : List/manage network API query parameters * + * Short description : List/manage network array index translations * * -------------------------------------------------------------------- * * Kurzbeschreibung : Verwaltet API-Abfrageparameter * * -------------------------------------------------------------------- * @@ -100,8 +100,11 @@ ORDER BY bigintval(getRequestParameter('network_type')) ), __FILE__, __LINE__); + // Remember the rows + $rows = SQL_NUMROWS($result); + // Do we have entries? - if (SQL_NUMROWS($result) > 0) { + if ($rows > 0) { // List all entries $OUT = ''; $SW = 2; while ($row = SQL_FETCHARRAY($result)) { @@ -121,10 +124,10 @@ ORDER BY // Prepare data for template $content = array( - 'rows' => $OUT, - 'network_id' => bigintval(getRequestParameter('network')), - 'network_title' => $networkData['network_title'], - 'network_reflink' => $networkData['network_reflink'], + 'rows' => $OUT, + 'network_id' => bigintval(getRequestParameter('network')), + 'network_title' => $networkData['network_title'], + 'network_reflink' => $networkData['network_reflink'], ); // Load main template @@ -138,7 +141,8 @@ ORDER BY SQL_FREERESULT($result); // Add options list for network type - $networkData['type_options'] = generateNetworkTypeOptions(getRequestParameter('network_type_id')); + $networkData['translation_index'] = ($rows + 1); + $networkData['type_options'] = generateNetworkTypeOptions(getRequestParameter('network_type_id')); // Add form for adding new array_translation pair loadTemplate('admin_add_network_array_translation', false, $networkData); diff --git a/inc/modules/admin/what-list_network_translations.php b/inc/modules/admin/what-list_network_translations.php new file mode 100644 index 0000000000..e88d8f945b --- /dev/null +++ b/inc/modules/admin/what-list_network_translations.php @@ -0,0 +1,127 @@ + 0) { + // List all entries + $OUT = ''; $SW = 2; + while ($row = SQL_FETCHARRAY($result)) { + // Add/translate some data + $row['sw'] = $SW; + + // Add it to network if the type matches selected + if ($row['network_type_id'] == getRequestParameter('network_type_id')) { + // Matches, then add it for disabling this entry + $GLOBALS['network_translations_disabled'][$row['network_array_index']] = true; + } // END - if + + // Add row template and switch color + $OUT .= loadTemplate('admin_list_network_translations_row', true, $row); + $SW = 3 - $SW; + } // END - while + + // Prepare data for template + $content = array( + 'rows' => $OUT, + ); + + // Load main template + loadTemplate('admin_list_network_translations', false, $content); + } else { + // No entries found + loadTemplate('admin_settings_saved', false, getMaskedMessage('ADMIN_NETWORK_TRANSLATIONS_404', $networkData['network_type_handle'])); + } + + // Free result + SQL_FREERESULT($result); + + // Add form for adding new translations pair + loadTemplate('admin_add_network_translations'); +} else { + // Generate type-selection box + outputHtml(generateAdminDistinctNetworkTypeList()); +} + +// [EOF] +?> diff --git a/inc/modules/admin/what-list_payouts.php b/inc/modules/admin/what-list_payouts.php index 00a5e0b55d..9575dc8b04 100644 --- a/inc/modules/admin/what-list_payouts.php +++ b/inc/modules/admin/what-list_payouts.php @@ -235,7 +235,7 @@ ORDER BY while ($content = SQL_FETCHARRAY($result)) { if ($content['status'] == 'NEW') { // Generate links for direct accepting and rejecting - $content['status'] = '{--PAYOUT_ACCEPT_PAYOUT--} | {--PAYOUT_REJECT_PAYOUT--}'; + $content['status'] = '{--PAYOUT_ACCEPT_PAYOUT--}|{--PAYOUT_REJECT_PAYOUT--}'; } else { // Translate status $content['status'] = getMessage('PAYOUT_STATUS_'.strtoupper($content['status']).''); diff --git a/templates/de/html/admin/admin_add_network_array_translation.tpl b/templates/de/html/admin/admin_add_network_array_translation.tpl index 0c5ae2edd5..bb1431a7e9 100644 --- a/templates/de/html/admin/admin_add_network_array_translation.tpl +++ b/templates/de/html/admin/admin_add_network_array_translation.tpl @@ -20,15 +20,16 @@ {--ADMIN_NETWORK_ARRAY_TRANSLATION_INDEX--}: - + + $content[translation_index] {--ADMIN_NETWORK_ARRAY_TRANSLATION_INDEX_TRANSLATION--}: - + diff --git a/templates/de/html/admin/admin_list_sponsor_row.tpl b/templates/de/html/admin/admin_list_sponsor_row.tpl index 4cedde4470..7fcfdb13d8 100644 --- a/templates/de/html/admin/admin_list_sponsor_row.tpl +++ b/templates/de/html/admin/admin_list_sponsor_row.tpl @@ -5,13 +5,13 @@ - [ $content[id] ] + [$content[id]] $content[gender] $content[surname] $content[family] - [ $content[points] ] + [$content[points]] @@ -24,7 +24,7 @@ - [ $content[status] ] + [$content[status]] $content[created] diff --git a/templates/de/html/admin/admin_list_user_pagenav.tpl b/templates/de/html/admin/admin_list_user_pagenav.tpl index 535201f76c..59ca0fb01b 100644 --- a/templates/de/html/admin/admin_list_user_pagenav.tpl +++ b/templates/de/html/admin/admin_list_user_pagenav.tpl @@ -3,7 +3,7 @@
- [ {--USER_PAGENAV--}: $content[list] ] + [{--USER_PAGENAV--}:$content[list]]
diff --git a/templates/de/html/guest/guest_menu_title.tpl b/templates/de/html/guest/guest_menu_title.tpl index f40a066e99..d245d39e28 100644 --- a/templates/de/html/guest/guest_menu_title.tpl +++ b/templates/de/html/guest/guest_menu_title.tpl @@ -1,5 +1,5 @@ - ::: $content[title] ::: + :::$content[title]::: diff --git a/templates/de/html/guest/guest_receive_table.tpl b/templates/de/html/guest/guest_receive_table.tpl index 26bbf37916..08b162dce2 100644 --- a/templates/de/html/guest/guest_receive_table.tpl +++ b/templates/de/html/guest/guest_receive_table.tpl @@ -1,11 +1,14 @@ - +
+
- + {--MAX_PER_DAY--}: + +
- {--MAX_PER_DAY--}:   + +
+ diff --git a/templates/de/html/guest/guest_sponsor_activate.tpl b/templates/de/html/guest/guest_sponsor_activate.tpl index 8a9c5a47f7..2796510eab 100644 --- a/templates/de/html/guest/guest_sponsor_activate.tpl +++ b/templates/de/html/guest/guest_sponsor_activate.tpl @@ -3,23 +3,23 @@
- + - - + + - +
- {--SPONSOR_SEND_ACTIVATION_LINK--} - + {--SPONSOR_SEND_ACTIVATION_LINK--} +
- {--SPONSOR_ENTER_EMAIL--}: - - - + {--SPONSOR_ENTER_EMAIL--}: + + +
@@ -28,7 +28,7 @@
-
{--SPONSOR_HOWTO_GET_ACTIVATION_LINK--}
+
{--SPONSOR_HOWTO_GET_ACTIVATION_LINK--}
@@ -36,9 +36,9 @@
- +
- »» {--SPONSOR_BACK_TO_LOGIN--}
-
+ »»{--SPONSOR_BACK_TO_LOGIN--} +
diff --git a/templates/de/html/guest/guest_sponsor_reg.tpl b/templates/de/html/guest/guest_sponsor_reg.tpl index fb8e3dc736..f1481fe93e 100644 --- a/templates/de/html/guest/guest_sponsor_reg.tpl +++ b/templates/de/html/guest/guest_sponsor_reg.tpl @@ -25,7 +25,7 @@ - {--SPONSOR_ENTER_COMPANY_TITLE--}:  + {--SPONSOR_ENTER_COMPANY_TITLE--}: @@ -33,7 +33,7 @@ - {--SPONSOR_ENTER_COMPANY_POSITION--}:  + {--SPONSOR_ENTER_COMPANY_POSITION--}: @@ -41,7 +41,7 @@ - {--SPONSOR_ENTER_TAX_IDENT--}:  + {--SPONSOR_ENTER_TAX_IDENT--}: @@ -54,7 +54,7 @@ - {--GUEST_GENDER--}:  + {--GUEST_GENDER--}: @@ -74,7 +74,7 @@ - {--GUEST_FAMILY--}:  + {--GUEST_FAMILY--}: @@ -87,7 +87,7 @@ - {--SPONSOR_ENTER_STREET_NR1--}:  + {--SPONSOR_ENTER_STREET_NR1--}: @@ -95,7 +95,7 @@ - {--SPONSOR_ENTER_STREET_NR2--}:  + {--SPONSOR_ENTER_STREET_NR2--}: @@ -103,7 +103,7 @@ - {--SPONSOR_ENTER_CNTRY_ZIP_CITY--}:  + {--SPONSOR_ENTER_CNTRY_ZIP_CITY--}: - @@ -112,7 +112,7 @@ - {--SPONSOR_ENTER_PHONE--}:  + {--SPONSOR_ENTER_PHONE--}: @@ -120,7 +120,7 @@ - {--SPONSOR_ENTER_FAX--}:  + {--SPONSOR_ENTER_FAX--}: @@ -128,7 +128,7 @@ - {--SPONSOR_ENTER_CELL--}:  + {--SPONSOR_ENTER_CELL--}: @@ -136,7 +136,7 @@ - {--SPONSOR_ENTER_EMAIL--}:  + {--SPONSOR_ENTER_EMAIL--}: @@ -144,7 +144,7 @@ - {--SPONSOR_ENTER_URL--}:  + {--SPONSOR_ENTER_URL--}: @@ -157,7 +157,7 @@ - {--SPONSOR_ENTER_PASSWORDS--}:  + {--SPONSOR_ENTER_PASSWORDS--}: @@ -171,7 +171,7 @@ - {--SPONSOR_REFID_WAS--}:  + {--SPONSOR_REFID_WAS--}: $content[refid] @@ -184,7 +184,7 @@ - {--GUEST_SPONSOR_RECEIVE_WARNINGS--}  + {--GUEST_SPONSOR_RECEIVE_WARNINGS--} diff --git a/templates/de/html/index.tpl b/templates/de/html/index.tpl index d4952059c4..5bc2be083f 100644 --- a/templates/de/html/index.tpl +++ b/templates/de/html/index.tpl @@ -18,7 +18,7 @@ diff --git a/templates/de/html/js/js_surfbar_stopped.tpl b/templates/de/html/js/js_surfbar_stopped.tpl index 61025f7adc..4234cf4a4b 100644 --- a/templates/de/html/js/js_surfbar_stopped.tpl +++ b/templates/de/html/js/js_surfbar_stopped.tpl @@ -1,33 +1,33 @@ var interval = null; -var counter = "$content[restart]"; +var countDown = "$content[restart]"; var timer = document.getElementById("surfbar_counter"); var buttonDiv = document.getElementById("surfbar_button"); -function Restart () { +function restart () { this.location.reload(); } -function ShowButton () { +function showButton () { buttonDiv.innerHTML = "
"; } -function Counter () { - if (counter == 0) { +function counter () { + if (countDown == 0) { if ($content[autostart] == true) { - Restart(); + restart(); } else { - ShowButton(); + showButton(); } window.clearInterval(interval); } else { - counter--; - timer.innerHTML = counter; + countDown--; + timer.innerHTML = countDown; } } -function Init () { - interval = window.setInterval("Counter()", 1000); +function init () { + interval = window.setInterval("counter()", 1000); timer.innerHTML = "$content[restart]"; } -window.setTimeout("Init()", 500); +window.setTimeout("init()", 500); diff --git a/templates/de/html/loader.tpl b/templates/de/html/loader.tpl index 85700c74eb..e2eac34609 100644 --- a/templates/de/html/loader.tpl +++ b/templates/de/html/loader.tpl @@ -1,9 +1,11 @@ -D E R E F E R R E R  -  {?MAIN_TITLE?}
-
-
-
-
-{--LOADER_NOT_WORKING--} [{--LOADER_CLICK_HERE--}] +
+ DEREFERRER-{?MAIN_TITLE?} +
+ +
+ {--LOADER_NOT_WORKING--} + [{--LOADER_CLICK_HERE--}] +
diff --git a/templates/de/html/runtime_fatal_row.tpl b/templates/de/html/runtime_fatal_row.tpl index 0a17e69831..f4766b77b5 100644 --- a/templates/de/html/runtime_fatal_row.tpl +++ b/templates/de/html/runtime_fatal_row.tpl @@ -4,6 +4,7 @@
- · $content[value] + · + $content[value]
diff --git a/templates/de/html/select/select_network_type_box.tpl b/templates/de/html/select/select_network_type_box.tpl index 0fee2b9b3f..21c51343bf 100644 --- a/templates/de/html/select/select_network_type_box.tpl +++ b/templates/de/html/select/select_network_type_box.tpl @@ -2,7 +2,7 @@
- +
diff --git a/templates/de/html/select/select_network_type_title_box.tpl b/templates/de/html/select/select_network_type_title_box.tpl new file mode 100644 index 0000000000..f6fced34e9 --- /dev/null +++ b/templates/de/html/select/select_network_type_title_box.tpl @@ -0,0 +1,21 @@ +
+ + + +
+
+
+ {--ADMIN_NETWORK_TYPE_SELECT_TITLE--} +
+
+ +
+ $content[selection_box] +
+ + +
+ +
diff --git a/templates/de/html/select/select_network_type_title_option.tpl b/templates/de/html/select/select_network_type_title_option.tpl new file mode 100644 index 0000000000..4ecc3eafd6 --- /dev/null +++ b/templates/de/html/select/select_network_type_title_option.tpl @@ -0,0 +1 @@ + diff --git a/templates/de/html/show_bonus_yr.tpl b/templates/de/html/show_bonus_yr.tpl index 1143e3c8c5..9cb95a3016 100644 --- a/templates/de/html/show_bonus_yr.tpl +++ b/templates/de/html/show_bonus_yr.tpl @@ -1,9 +1,11 @@
- {--BONUS_SHOW_YOU_HAVE_CONFIRMED--} $content[yr_tmark] + {--BONUS_SHOW_YOU_HAVE_CONFIRMED--} + $content[yr_tmark] {--_ON--} $content[yr_level]. - {--BONUS_SHOW_CONFIRMED_BONUS_IS--}: $content[yr_points] {?POINTS?} + {--BONUS_SHOW_CONFIRMED_BONUS_IS--}: + $content[yr_points] {?POINTS?}
diff --git a/templates/de/html/show_timings.tpl b/templates/de/html/show_timings.tpl index e36d026207..e9fffa0880 100644 --- a/templates/de/html/show_timings.tpl +++ b/templates/de/html/show_timings.tpl @@ -1,16 +1,20 @@
  • - {--SHOW_TIMINGS_RUNTIME--} $content[run_time] {--SHOW_TIMINGS_SECS--} + {--SHOW_TIMINGS_RUNTIME--} + $content[run_time] {--SHOW_TIMINGS_SECS--}
  • - {--SHOW_TIMINGS_SQL_QUERIES--} {?sql_count?} + {--SHOW_TIMINGS_SQL_QUERIES--} + {?sql_count?}
  • - {--SHOW_TIMINGS_SQL_TIME--} $content[sql_time] ms + {--SHOW_TIMINGS_SQL_TIME--} + $content[sql_time] ms
  • - {--SHOW_TIMINGS_NUM_TEMPLATES--} {?num_templates?} + {--SHOW_TIMINGS_NUM_TEMPLATES--} + {?num_templates?}
diff --git a/templates/de/html/sponsor/sponsor_account_form.tpl b/templates/de/html/sponsor/sponsor_account_form.tpl index 98dbe03017..58f849638f 100644 --- a/templates/de/html/sponsor/sponsor_account_form.tpl +++ b/templates/de/html/sponsor/sponsor_account_form.tpl @@ -8,26 +8,26 @@ - {--SPONSOR_ENTER_COMPANY_TITLE--}:  + {--SPONSOR_ENTER_COMPANY_TITLE--}: -   + - {--SPONSOR_ENTER_COMPANY_POSITION--}:  + {--SPONSOR_ENTER_COMPANY_POSITION--}: -   + - {--SPONSOR_ENTER_TAX_IDENT--}:  + {--SPONSOR_ENTER_TAX_IDENT--}: -   + @@ -37,10 +37,10 @@ - {--GUEST_GENDER--}:  + {--GUEST_GENDER--}: -   @@ -49,18 +49,18 @@ - {--GUEST_SURNAME--}:  + {--GUEST_SURNAME--}: -   + - {--GUEST_FAMILY--}:  + {--GUEST_FAMILY--}: -   + @@ -70,67 +70,67 @@ - {--SPONSOR_ENTER_STREET_NR1--}:  + {--SPONSOR_ENTER_STREET_NR1--}: -   + - {--SPONSOR_ENTER_STREET_NR2--}:  + {--SPONSOR_ENTER_STREET_NR2--}: -   + - {--SPONSOR_ENTER_CNTRY_ZIP_CITY--}:  + {--SPONSOR_ENTER_CNTRY_ZIP_CITY--}: -  - + - - {--SPONSOR_ENTER_PHONE--}:  + {--SPONSOR_ENTER_PHONE--}: -   + - {--SPONSOR_ENTER_FAX--}:  + {--SPONSOR_ENTER_FAX--}: -   + - {--SPONSOR_ENTER_CELL--}:  + {--SPONSOR_ENTER_CELL--}: -   + - {--SPONSOR_ENTER_EMAIL--}:  + {--SPONSOR_ENTER_EMAIL--}: -   + - {--SPONSOR_ENTER_URL--}:  + {--SPONSOR_ENTER_URL--}: -   + @@ -140,10 +140,10 @@ - {--SPONSOR_ENTER_PASSWORD--}:  + {--SPONSOR_ENTER_PASSWORD--}: -   + @@ -153,10 +153,10 @@ - {--SPONSOR_ENTER_PASSWORDS--}:  + {--SPONSOR_ENTER_PASSWORDS--}: -   + diff --git a/templates/de/html/sponsor/sponsor_fillup_form.tpl b/templates/de/html/sponsor/sponsor_fillup_form.tpl index 3407a066c5..f1025e4892 100644 --- a/templates/de/html/sponsor/sponsor_fillup_form.tpl +++ b/templates/de/html/sponsor/sponsor_fillup_form.tpl @@ -8,26 +8,26 @@ - {--SPONSOR_POINTS_AMOUNT--}:  + {--SPONSOR_POINTS_AMOUNT--}: -  $content[points_amount] {?POINTS?} + $content[points_amount] {?POINTS?} - {--SPONSOR_POINTS_USED--}:  + {--SPONSOR_POINTS_USED--}: -  $content[points_used] {?POINTS?} + $content[points_used] {?POINTS?} - {--SPONSOR_POINTS_TOTAL--}:  + {--SPONSOR_POINTS_TOTAL--}: -  $content[points_total] {?POINTS?} + $content[points_total] {?POINTS?} diff --git a/templates/de/html/sponsor/sponsor_footer.tpl b/templates/de/html/sponsor/sponsor_footer.tpl index 6c6e9d0cc2..6fd18dc89c 100644 --- a/templates/de/html/sponsor/sponsor_footer.tpl +++ b/templates/de/html/sponsor/sponsor_footer.tpl @@ -1,2 +1,2 @@ -  + diff --git a/templates/de/html/sponsor/sponsor_settings_form.tpl b/templates/de/html/sponsor/sponsor_settings_form.tpl index 5f965992e2..b3ac13cf05 100644 --- a/templates/de/html/sponsor/sponsor_settings_form.tpl +++ b/templates/de/html/sponsor/sponsor_settings_form.tpl @@ -33,10 +33,10 @@ - {--SPONSOR_ENTER_PASSWORD--}:  + {--SPONSOR_ENTER_PASSWORD--}: -   + diff --git a/templates/de/html/surfbar/surfbar_frame_top.tpl b/templates/de/html/surfbar/surfbar_frame_top.tpl index df7e2321dc..ce80817c02 100644 --- a/templates/de/html/surfbar/surfbar_frame_top.tpl +++ b/templates/de/html/surfbar/surfbar_frame_top.tpl @@ -1,23 +1,32 @@ +
- »$content[xxx]=$content[xxx]  {?POINTS?} in - $content[xxx] Sekunden« »X von X im Reload«
+
+ »$content[xxx]=$content[xxx] {?POINTS?} in + $content[xxx] + Sekunden« + »X von + X im Reload« +
+ +
»{?MAIN_TITLE?} ist für den Inhalt nicht verantwortlich!« +
+
diff --git a/templates/de/html/welcome.tpl b/templates/de/html/welcome.tpl index 20a15329f2..c74fef8d6f 100644 --- a/templates/de/html/welcome.tpl +++ b/templates/de/html/welcome.tpl @@ -22,7 +22,7 @@ Als Startguthaben erhalten Sie von uns für Ihre kostenlose Anmeldung derzei
Für jeden User, den Sie geworben haben erhalten Sie -$content[ref_points] ({?POINTS?}) +$content[ref_points] {?POINTS?} plus prozentualen Verdienst über $content[ref_levels] Referal-Ebenen hinweg!