From: Roland Häder Date: Wed, 18 Nov 2009 04:02:18 +0000 (+0000) Subject: Final fixes for admin logout X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=commitdiff_plain;h=6c705c335bdf8693bcb24f76f8e86d2f34f07af7 Final fixes for admin logout --- diff --git a/inc/filters.php b/inc/filters.php index 362898e490..e2ddb66c1d 100644 --- a/inc/filters.php +++ b/inc/filters.php @@ -471,7 +471,7 @@ function FILTER_COMPILE_EXTENSION ($code) { if (substr($cmd, -2, 2) == 'js') $outputMode = 1; // Handle an URL here - $replacer = "\" . encodeUrl('" . $matches[3][$key] . "', " . $outputMode . ") . \""; + $replacer = "\" . encodeUrl(\"" . $matches[3][$key] . "\", " . $outputMode . ") . \""; // Replace it $code = str_replace($matches[0][$key], $replacer, $code); diff --git a/inc/functions.php b/inc/functions.php index 73928d9698..ef7e638836 100644 --- a/inc/functions.php +++ b/inc/functions.php @@ -169,7 +169,7 @@ function compileFinalOutput () { // Was that eval okay? if (empty($newContent)) { // Something went wrong! - debug_report_bug('Evaluation error:
' . linenumberCode($eval) . '
'); + debug_report_bug('Evaluation error:
' . linenumberCode($eval) . '
', false); } // END - if $GLOBALS['output'] = $newContent; @@ -587,7 +587,7 @@ function sendEmail ($toEmail, $subject, $message, $isHtml = 'N', $mailHeader = ' eval("\$toEmail = \"".compileRawCode(escapeQuotes($toEmail))."\";"); // Compile "MSG" - eval("\$message = \"".compileRawCode(escapeQuotes($message))."\";"); + eval("\$message = \"".str_replace('$', '$', compileRawCode(escapeQuotes($message)))."\";"); // Fix HTML parameter (default is no!) if (empty($isHtml)) $isHtml = 'N'; @@ -2559,7 +2559,7 @@ function debug_get_mailable_backtrace () { } // Output a debug backtrace to the user -function debug_report_bug ($message = '') { +function debug_report_bug ($message = '', $sendEmail = true) { // Is this already called? if (isset($GLOBALS[__FUNCTION__])) { // Other backtrace @@ -2591,15 +2591,18 @@ function debug_report_bug ($message = '') { $debug .= "\nRequest-URI: " . getRequestUri()."
\n"; $debug .= "Thank you for finding bugs."; - // Prepare content - $content = array( - 'message' => trim($message), - 'backtrace' => trim(debug_get_mailable_backtrace()), - 'request_uri' => trim(getRequestUri()) - ); + // Send an email? (e.g. not wanted for evaluation errors) + if ($sendEmail === true) { + // Prepare content + $content = array( + 'message' => trim($message), + 'backtrace' => trim(debug_get_mailable_backtrace()), + 'request_uri' => trim(getRequestUri()) + ); - // Send email to webmaster - sendAdminNotification(getMessage('DEBUG_REPORT_BUG_SUBJECT'), 'admin_report_bug', $content); + // Send email to webmaster + sendAdminNotification(getMessage('DEBUG_REPORT_BUG_SUBJECT'), 'admin_report_bug', $content); + } // END - if // And abort here // @TODO This cannot be rewritten to app_die(), try to find a solution for this. @@ -3847,7 +3850,9 @@ function encodeUrl ($url, $outputMode = '0') { } // Add it to URL - $url .= $seperator . session_name() . '=' . session_id(); + if (session_id() != '') { + $url .= $seperator . session_name() . '=' . session_id(); + } // END - if } // END - if // Add {?URL?} diff --git a/templates/de/html/mailid/mailid_confirm_buttom.tpl b/templates/de/html/mailid/mailid_confirm_buttom.tpl index 725fe681b8..e8a28191cd 100644 --- a/templates/de/html/mailid/mailid_confirm_buttom.tpl +++ b/templates/de/html/mailid/mailid_confirm_buttom.tpl @@ -1,7 +1,7 @@
-
+ {--MAILID_CLICK_BUTTON--}:
diff --git a/templates/de/html/mailid/mailid_enter_code.tpl b/templates/de/html/mailid/mailid_enter_code.tpl index 927ea3b8d7..8d73e46801 100644 --- a/templates/de/html/mailid/mailid_enter_code.tpl +++ b/templates/de/html/mailid/mailid_enter_code.tpl @@ -3,7 +3,7 @@
{--ENTER_CODE--}: $content[image]
diff --git a/templates/de/html/mailid/mailid_points_done2.tpl b/templates/de/html/mailid/mailid_points_done2.tpl index 70ff2a04bb..31b6ef38b6 100644 --- a/templates/de/html/mailid/mailid_points_done2.tpl +++ b/templates/de/html/mailid/mailid_points_done2.tpl @@ -6,7 +6,7 @@ {--MAILID_TOTAL_POINTS1--} $content[total] {?POINTS?} {--MAILID_TOTAL_POINTS2--}

- {--BONUS_SHOW_TURBO_BONUS--} + {--BONUS_SHOW_TURBO_BONUS--}
diff --git a/templates/de/html/mailid/mailid_points_locked2.tpl b/templates/de/html/mailid/mailid_points_locked2.tpl index 8bc5855cf2..4037af9d3b 100644 --- a/templates/de/html/mailid/mailid_points_locked2.tpl +++ b/templates/de/html/mailid/mailid_points_locked2.tpl @@ -4,7 +4,7 @@
{--THANX_POINTS_LOCKED_1--}$content[points] {--THANX_POINTS_LOCKED_2--}

- {--BONUS_SHOW_TURBO_BONUS--} + {--BONUS_SHOW_TURBO_BONUS--}