diff --git a/tbl_properties.php3 b/tbl_properties.php3 index 8e0d7db0a0c2..1d509483e1cf 100755 --- a/tbl_properties.php3 +++ b/tbl_properties.php3 @@ -4,15 +4,6 @@ require('./tbl_properties_common.php3'); -/** - * Drop multiple fields if required - */ -if ((!empty($submit_mult) && isset($selected_fld)) - || isset($mult_btn)) { - $action = 'tbl_properties.php3'; - include('./mult_submits.inc.php3'); -} - /** * Defines the query to be displayed in the query textarea @@ -35,39 +26,6 @@ if (isset($show_query) && $show_query == 'y') { unset($sql_query); -/** - * Updates table type, comment and order if required - */ -if (isset($submitcomment)) { - if (get_magic_quotes_gpc()) { - $comment = stripslashes($comment); - } - if (empty($prev_comment) || urldecode($prev_comment) != $comment) { - $local_query = 'ALTER TABLE ' . PMA_backquote($table) . ' COMMENT = \'' . PMA_sqlAddslashes($comment) . '\''; - $result = mysql_query($local_query) or PMA_mysqlDie('', $local_query, '', $err_url); - } -} -if (isset($submittype)) { - $local_query = 'ALTER TABLE ' . PMA_backquote($table) . ' TYPE = ' . $tbl_type; - $result = mysql_query($local_query) or PMA_mysqlDie('', $local_query, '', $err_url); -} -if (isset($submitorderby) && !empty($order_field)) { - $order_field = PMA_backquote(urldecode($order_field)); - $local_query = 'ALTER TABLE ' . PMA_backquote($table) . 'ORDER BY ' . $order_field; - $result = mysql_query($local_query) or PMA_mysqlDie('', $local_query, '', $err_url); -} - -/** - * Update table options - */ -if (isset($submitoptions)) { - $local_query = 'ALTER TABLE ' . PMA_backquote($table) - . (isset($pack_keys) ? ' pack_keys=1': ' pack_keys=0') - . (isset($checksum) ? ' checksum=1': ' checksum=0') - . (isset($delay_key_write) ? ' delay_key_write=1': ' delay_key_write=0'); - $result = mysql_query($local_query) or PMA_mysqlDie('', $local_query, '', $err_url); -} - /** * Work on the table */ @@ -161,6 +119,8 @@ echo "\n"; 0) {  ]    [  -  ] diff --git a/tbl_properties_operations.php3 b/tbl_properties_operations.php3 index 617968731c19..0af40370fcfc 100755 --- a/tbl_properties_operations.php3 +++ b/tbl_properties_operations.php3 @@ -3,15 +3,35 @@ require('./tbl_properties_common.php3'); + + +/** + * Reordering the table has been requested by the user + */ +if (isset($submitorderby) && !empty($order_field)) { + $order_field = PMA_backquote(urldecode($order_field)); + $local_query = 'ALTER TABLE ' . PMA_backquote($table) . 'ORDER BY ' . $order_field; + $result = mysql_query($local_query) or PMA_mysqlDie('', $local_query, '', $err_url); +} // end if + + require('./tbl_properties_table_info.php3'); -// Get columns names + +/** + * Get columns names + */ $local_query = 'SHOW COLUMNS FROM ' . PMA_backquote($db) . '.' . PMA_backquote($table); $result = mysql_query($local_query) or PMA_mysqlDie('', $local_query, '', $error_url); for ($i = 0; $row = mysql_fetch_array($result); $i++) { $columns[$i] = $row['Field']; } mysql_free_result($result); + + +/** + * Displays the page + */ ?> = 32322) {