From dcd40c1c4431244057b1d921f2016f770fe09baa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Chapeaux?= Date: Fri, 7 Sep 2001 19:39:29 +0000 Subject: [PATCH] * adjusted font sizes depending on IE versions; * line 2337: fixed an illegal index warning with php3; * line 1762: invalid number of parameters in the function call. * $reload has now true boolean values --- lib.inc.php3 | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/lib.inc.php3 b/lib.inc.php3 index b20c9751f..2f645c7f6 100755 --- a/lib.inc.php3 +++ b/lib.inc.php3 @@ -518,17 +518,18 @@ if (!defined('__LIB_INC__')){ { global $font_size, $font_bigger, $font_smaller, $font_smallest; - // IE for win case: needs smaller fonts than anyone else + // IE (<6)/Opera for win case: needs smaller fonts than anyone else if (USR_OS == 'Win' - && (USR_BROWSER_AGENT == 'IE' || USR_BROWSER_AGENT == 'OPERA')) { + && ((USR_BROWSER_AGENT == 'IE' && USR_BROWSER_VER < 6) + || USR_BROWSER_AGENT == 'OPERA')) { $font_size = 'x-small'; $font_bigger = 'large '; - // Unreadable - // $font_smaller = 'xx-small'; - $font_smaller = '90%'; + $font_smaller = (USR_BROWSER_AGENT == 'IE' && USR_BROWSER_VER < 5.5) + ? '80%' + : '90%'; $font_smallest = '7pt'; } - // Other browsers for win case + // IE6 and other browsers for win case else if (USR_OS == 'Win') { $font_size = 'small'; $font_bigger = 'large '; @@ -688,7 +689,7 @@ if (!defined('__LIB_INC__')){ function show_message($message) { // Reloads the navigation frame via JavaScript if required - if (!empty($GLOBALS['reload']) && ($GLOBALS['reload'] == 'true')) { + if (isset($GLOBALS['reload']) && $GLOBALS['reload']) { echo "\n"; $reload_url = './left.php3' . '?lang=' . $GLOBALS['lang'] @@ -1123,6 +1124,7 @@ window.parent.frames['nav'].location.replace(''); = $sessionMaxRows) { + echo "\n"; ?>
@@ -1758,7 +1760,7 @@ window.parent.frames['nav'].location.replace(''); // 4. ----- Displays the navigation bar at the bottom if required ----- if ($is_display['nav_bar'] == '1') { - display_table_navigation($pos_next, $pos_prev, $dt_result, $encoded_sql_query); + display_table_navigation($pos_next, $pos_prev, $encoded_sql_query); } else { echo "\n" . '
' . "\n"; } @@ -2333,7 +2335,7 @@ window.parent.frames['nav'].location.replace(''); $j = 1; while ($sql[$i+$j] != "\n") { $j++; - if ($j+$i > strlen($sql)) { + if ($j+$i >= strlen($sql)) { break; } } // end while