X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Ffunctions.php;h=f010daf758244f3a06b1538c472f104d1515ac69;hp=a1577f58a7e5b6caedd1817a0c10ae43e4f6cf49;hb=76fd13e5938a334f08e43893eb9a4ff49f72bf07;hpb=4707e8e1d5511597b3d425bca0fd5addbb6fe2a8 diff --git a/inc/functions.php b/inc/functions.php index a1577f58a7..f010daf758 100644 --- a/inc/functions.php +++ b/inc/functions.php @@ -171,7 +171,7 @@ function compileFinalOutput () { // Main compilation loop function doFinalCompilation ($code, $insertComments = true) { - // Insert comments? + // Insert comments? (Only valid with HTML templates, of course) enableTemplateHtml($insertComments); // Init counter @@ -186,7 +186,7 @@ function doFinalCompilation ($code, $insertComments = true) { // Compile it //* DEBUG: */ print '
'.htmlentities($code).''; $eval = '$newContent = "' . str_replace('{DQUOTE}', '"', compileCode(escapeQuotes($code))) . '";'; - //* DEBUG: */ die('
'.htmlentities($eval).''); + //* DEBUG: */ if ($insertComments) die('
'.linenumberCode($eval).''); eval($eval); //* DEBUG: */ die('
'.htmlentities($newContent).''); @@ -987,6 +987,9 @@ function redirectToUrl ($URL, $allowSpider = true) { // Simple probe for bots/spiders from search engines if ((isSpider()) && ($allowSpider === true)) { + // Set HTTP-Status + setHttpStatus('200 OK'); + // Set content-type here to fix a missing array element setContentType('text/html'); @@ -2499,7 +2502,7 @@ function generateErrorCodeFromUserStatus ($status='') { // Back-ported from the new ship-simu engine. :-) function debug_get_printable_backtrace () { // Init variable - $backtrace = "
"; + $debug .= 'Please report this bug at http://bugs.mxchange.org and include the logfile from ' . str_replace(getConfig('PATH'), '', getConfig('CACHE_PATH')) . 'debug.log in your report (you can now attach files):Request-URI: ' . getRequestUri() . ''; $debug .= debug_get_printable_backtrace(); - $debug .= "\nRequest-URI: " . getRequestUri()."
\n"; - $debug .= "Thank you for finding bugs."; + $debug .= '