Don't allow to check mysql database for dropping (RFE #1327514).

This commit is contained in:
Michal Čihař
2005-10-16 15:31:03 +00:00
parent aaefb8c518
commit c694ea42b4
2 changed files with 5 additions and 1 deletions

View File

@@ -222,8 +222,10 @@ if (count($statistics) > 0) {
echo ' <tr class="' . ( $odd_row ? 'odd' : 'even' ) . '">' . "\n";
if ($is_superuser || $cfg['AllowUserDropDatabase']) {
echo ' <td class="tool">' . "\n";
if (PMA_MYSQL_INT_VERSION < 50002 || $current['db_name'] != 'information_schema') {
if ($current['db_name'] != 'mysql' && (PMA_MYSQL_INT_VERSION < 50002 || $current['db_name'] != 'information_schema')) {
echo ' <input type="checkbox" name="selected_db[]" title="' . htmlspecialchars($current['db_name']) . '" value="' . htmlspecialchars($current['db_name']) . '" ' . (empty($checkall) ? '' : 'checked="checked" ') . '/>' . "\n";
} else {
echo ' <input type="checkbox" name="selected_db[]" title="' . htmlspecialchars($current['db_name']) . '" value="' . htmlspecialchars($current['db_name']) . '" disabled="disabled"/>' . "\n";
}
echo ' </td>' . "\n";
}