$sot_ready = TRUE; } } } else { PMA_DBI_free_result($db_info_result); unset($db_info_result); } } if (!isset($sot_ready)) { if (!empty($tbl_group) && !$cfg['ShowTooltipAliasTB']) { // only tables for selected group $tables = PMA_DBI_get_tables_full($db, $tbl_group, true); } elseif (!empty($tbl_group) && $cfg['ShowTooltipAliasTB']) { // only tables for selected group, // but grouping is done on comment ... $tables = PMA_DBI_get_tables_full($db, $tbl_group, 'comment'); } else { // all tables in db $tables = PMA_DBI_get_tables_full($db); } if ($cfg['ShowTooltip']) { foreach ($tables as $each_table) { fillTooltip($tooltip_truename, $tooltip_aliasname, $each_table); } } } $num_tables = count($tables); /** * Displays top menu links */ require './libraries/db_links.inc.php';
} } else { PMA_DBI_free_result($db_info_result); unset($db_info_result); } } if (!isset($sot_ready)) { $db_info_result = PMA_DBI_query('SHOW TABLE STATUS FROM ' . PMA_backquote($db) . $tbl_group_sql . ';', NULL, PMA_DBI_QUERY_STORE); if ($db_info_result != FALSE && PMA_DBI_num_rows($db_info_result) > 0) { while ($sts_tmp = PMA_DBI_fetch_assoc($db_info_result)) { if (!isset($sts_tmp['Type']) && isset($sts_tmp['Engine'])) { $sts_tmp['Type'] =& $sts_tmp['Engine']; } if (!empty($tbl_group) && $cfg['ShowTooltipAliasTB'] && !preg_match('@' . preg_quote($tbl_group, '@') . '@i', $sts_tmp['Comment'])) { continue; } if ($cfg['ShowTooltip']) { fillTooltip($tooltip_truename, $tooltip_aliasname, $sts_tmp); } $tables[] = $sts_tmp; } } @PMA_DBI_free_result($db_info_result); unset($db_info_result); } $num_tables = isset($tables) ? count($tables) : 0; /** * Displays top menu links */ echo '<!-- Top menu links -->' . "\n"; require './db_details_links.php';