0) { $lnk3 = 'db_details_export.php'; $arg3 = $url_query; $lnk4 = 'db_search.php'; $arg4 = $url_query; } else { $lnk3 = ''; $arg3 = ''; $lnk4 = ''; $arg4 = ''; } // Drop link if allowed if (!$cfg['AllowUserDropDatabase']) { // Check if the user is a Superuser $links_result = @PMA_mysql_query('USE mysql'); $cfg['AllowUserDropDatabase'] = (!PMA_mysql_error()); } if ($cfg['AllowUserDropDatabase']) { $lnk5 = 'sql.php'; $arg5 = $url_query . '&sql_query=' . urlencode('DROP DATABASE ' . PMA_backquote($db)) . '&zero_rows=' . urlencode(sprintf($strDatabaseHasBeenDropped, htmlspecialchars(PMA_backquote($db)))) . '&goto=main.php&back=db_details' . $sub_part . '.php&reload=1&purge=1'; $att5 = 'class="drop" ' . 'onclick="return confirmLink(this, \'DROP DATABASE ' . PMA_jsFormat($db) . '\')"'; } else { $lnk5 = ''; } /** * Displays tab links */ if ($cfg['LightTabs']) { echo ' '; } else { echo ''; } echo PMA_printTab($strStructure, 'db_details_structure.php', $url_query); echo PMA_printTab($strSQL, 'db_details.php', $url_query . '&db_query_force=1'); echo PMA_printTab($strExport, $lnk3, $arg3); echo PMA_printTab($strSearch, $lnk4, $arg4); echo PMA_printTab($strQBE, ($num_tables > 0) ? 'db_details_qbe.php' : '', $url_query); // Displays drop link if ($lnk5) { echo PMA_printTab($strDrop, $lnk5, $arg5, $att5); } // end if echo "\n"; if (!$cfg['LightTabs']) { echo '
 
'; } else { echo '
'; } ?>