0 && MYSQL_MAJOR_VERSION >= 3.23 && intval(MYSQL_MINOR_VERSION) >= 3) { // Special speedup for newer MySQL Versions (in 4.0 format changed) if ($cfgSkipLockedTables == TRUE && MYSQL_MAJOR_VERSION == 3.23 && intval(MYSQL_MINOR_VERSION) >= 30) { $query = 'SHOW OPEN TABLES FROM ' . backquote($db); $result = mysql_query($query); // Blending out tables in use if ($result != FALSE && mysql_num_rows($result) > 0) { while ($tmp = mysql_fetch_array($result)) { // if in use memorize tablename if (eregi('in_use=[1-9]+', $tmp)) { $sot_cache[$tmp[0]] = TRUE; } } mysql_free_result($result); if (isset($sot_cache)) { $query = 'SHOW TABLES FROM ' . backquote($db); $result = mysql_query($query); if ($result != FALSE && mysql_num_rows($result) > 0) { while ($tmp = mysql_fetch_array($result)) { if (!isset($sot_cache[$tmp[0]])) { $sts_result = mysql_query('SHOW TABLE STATUS FROM ' . backquote($db) . ' LIKE \'' . addslashes($tmp[0]) . '\''); $sts_tmp = mysql_fetch_array($sts_result); $tbl_cache[] = $sts_tmp; } else { // table in use $tbl_cache[] = array('Name' => $tmp[0]); } } mysql_free_result($result); $sot_ready = TRUE; } } } } if (!isset($sot_ready)) { $result = mysql_query('SHOW TABLE STATUS FROM ' . backquote($db)); if ($result != FALSE && mysql_num_rows($result) > 0) { while ($sts_tmp = mysql_fetch_array($result)) { $tbl_cache[] = $sts_tmp; } mysql_free_result($result); } } } // 2. Displays tables if ($num_tables == 0) { echo $strNoTablesFound . "\n"; } // show table size on mysql >= 3.23 - staybyte - 11 June 2001 else if (MYSQL_MAJOR_VERSION >= 3.23 && isset($tbl_cache)) { ?> 0) { list($formated_size, $unit) = format_byte_down($tblsize, 3, 1); } else { list($formated_size, $unit) = format_byte_down($tblsize, 3, 0); } } else { $formated_size = ' - '; $unit = ''; } if (isset($sts_data['Rows'])) { $sum_entries += $sts_data['Rows']; } } // MyISAM MERGE Table else if ($mergetable == TRUE) { $formated_size = ' - '; $unit = ''; } else { $formated_size = 'unknown'; $unit = ''; } ?>
  ' . number_format($sts_data['Rows'], 0, $number_decimal_separator, $number_thousands_separator) . '' . "\n"; } else { echo number_format($sts_data['Rows'], 0, $number_decimal_separator, $number_thousands_separator) . "\n"; } ?>   
= 3.23 else { $i = 0; echo "\n"; ?>