diff --git a/ChangeLog b/ChangeLog index ec433548a..357243634 100755 --- a/ChangeLog +++ b/ChangeLog @@ -5,6 +5,11 @@ phpMyAdmin - Changelog $Id$ $Source$ +2005-10-21 Sebastian Mendel + * db_details_export.php: + - replaced for() with foreach() + - dont pollute $GLOBALS['table'] + 2005-10-20 Marc Delisle * server_databases.php: security fix * libraries/common.lib.php, /grab_globals.lib.php: security fix diff --git a/db_details_export.php b/db_details_export.php index ffe2e6f86..6c88163a3 100644 --- a/db_details_export.php +++ b/db_details_export.php @@ -1,59 +1,66 @@ - - 1) { - - $multi_values = '
'; - - $checkall_url = 'db_details_export.php?' - . PMA_generate_common_url($db) - . '&goto=db_details_export.php'; - - $multi_values .= '
- ' . $strSelectAll . ' -  /  - ' . $strUnselectAll . ''; -} elseif ($num_tables == 0) { +// exit if no tables in db found +if ( $num_tables < 1 ) { echo $strDatabaseNoTable; - require_once('./footer.inc.php'); + require('./footer.inc.php'); + exit; } // end if +$multi_values = '
'; + +$checkall_url = 'db_details_export.php?' + . PMA_generate_common_url( $db ) + . '&goto=db_details_export.php'; + +$multi_values .= '
+ ' . $strSelectAll . ' + / + ' . $strUnselectAll . ''; + $export_type = 'database'; require_once('./libraries/display_export.lib.php');