Greetings,
As a follow-up on this... I realized that when I use the Language Redirection Script (BTW which works very well) well... then when you use the Search on my site for an expression like (ex.: " logo"), the results shows Index as being the first result and an error message for this result only.
Not sure I will keep the Search Option open for long, but... take a chance:
http://www.malouin.ws/design/fr_recherche.phtml
Here's the error message you will get:
Parse error: parse error, unexpected '}' in /home/user/public_html/design/include/inc_front/front.func.inc.php(2048) : eval()'d code on line 1
And here's the code I have in my root index page's WYSYWIG summary' part:
Code: Select all
[PHP] if(!$GLOBALS['aktion'][0]) { switch( strtolower( substr( $_SERVER['HTTP_ACCEPT_LANGUAGE'], 0, 2 ) ) ) { case 'en': header('Location: '.$GLOBALS['phpwcms']['site'].$GLOBALS['phpwcms']['root'].'index.php?welcome'); exit(); break; default: header('Location: '.$GLOBALS['phpwcms']['site'].$GLOBALS['phpwcms']['root'].'index.php?accueil'); exit(); } } [/PHP]
and here's the piece of code to which the error is referring in
include/inc_front/front.func.inc.php(2048):
Code: Select all
function include_int_phpcode($string) {
// return the PHP code
$s = html_despecialchars($string[1]);
$s = str_replace('<br>', "\n", $s);
$s = str_replace('<br />', "\n", $s);
ob_start();
eval($s.";"); // <----------------------- THIS IS LINE 2048 !
$return = ob_get_contents();
ob_end_clean();
return $return;
}
Any insight on how to patch this...?
Can anyone reproduce this behavior on their sites?
Kind Regards,