Don't allow to check mysql database for dropping (RFE #1327514).
This commit is contained in:
@@ -7,6 +7,8 @@ $Source$
|
||||
|
||||
2005-10-16 Michal Čihař <michal@cihar.com>
|
||||
* db_details_links.php: Disable drop tab on mysql database (RFE #1327514).
|
||||
* server_databases.php: Don't allow to check mysql database for dropping
|
||||
(RFE #1327514).
|
||||
|
||||
2005-10-16 Marc Delisle <lem9@users.sourceforge.net>
|
||||
* tbl_create.php: undefined $field_collation under MySQL < 4.1.x
|
||||
|
@@ -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";
|
||||
}
|
||||
|
Reference in New Issue
Block a user