break;
case 'src/right_main.php':
-// following code graciously stolen from phpMyAdmin project at:
-// http://www.phpmyadmin.net
- $js = <<<EOS
+ global $fancy_index_highlite;
+ if (!$fancy_index_highlite) {
+ $js = '';
+ } else //{ putting braces around this block creats strange PHP errors
+ // following code graciously borrowed from
+ // phpMyAdmin project at:
+ // http://www.phpmyadmin.net
+ $js = <<<EOS
/**
* This array is used to remember mark status of rows in browse mode
*/
return true;
} // end of the 'setPointer()' function
EOS;
+ //} putting braces around this block creats strange PHP errors
$js = "\n".'<script language="JavaScript" type="text/javascript">' .
"\n<!--\n" . $js;
if ($compose_new_win == '1') {
if (!preg_match("/^[0-9]{3,4}$/", $compose_height)) {
$compose_height = '550';
}
- $js .= "\nfunction comp_in_new(comp_uri) {\n".
+ $js .= "\n\nfunction comp_in_new(comp_uri) {\n".
" if (!comp_uri) {\n".
' comp_uri = "'.$compose_uri."\";\n".
' }'. "\n".
',scrollbars=yes,resizable=yes,status=yes");'."\n".
"}\n\n";
}
- $js .= "// -->\n</script>\n";
+ $js .= $xtra . "\n\n// -->\n</script>\n";
$onload = '';
displayHtmlHeader ('SquirrelMail', $js);
break;