From 0523745dd660b9eec091ac17732e8599dd23d7af Mon Sep 17 00:00:00 2001 From: Armel Fauveau Date: Sat, 9 Jun 2001 03:20:06 +0000 Subject: [PATCH] add multiple dump feature (Feature #424176) --- ChangeLog | 9 ++++++--- db_details.php3 | 20 ++++++++++++++++++++ db_dump.php3 | 45 ++++++++++++++++++++++++++++----------------- 3 files changed, 54 insertions(+), 20 deletions(-) diff --git a/ChangeLog b/ChangeLog index 794bc82f2..1036be7ef 100755 --- a/ChangeLog +++ b/ChangeLog @@ -5,12 +5,15 @@ phpMyAdmin - Changelog $Id$ $Source$ +2001-06-09 Armel Fauveau + * add multiple dump feature (Feature #424176) + 2001-06-08 Marc Delisle - * add hostname in title bar + * add hostname in title bar 2001-06-07 Marc Delisle - * modify/implement Steve Alberty's patch for complete table dump - * implement Alessandro Astarita's patch for data only dump + * modify/implement Steve Alberty's patch for complete table dump + * implement Alessandro Astarita's patch for data only dump 2001-06-06 Armel Fauveau * patch bookmark section in sql.php3 (bug #430628) diff --git a/db_details.php3 b/db_details.php3 index ba0c654c9..277903866 100755 --- a/db_details.php3 +++ b/db_details.php3 @@ -96,6 +96,26 @@ if($cfgBookmark['db'] && $cfgBookmark['table'])

  • + 1) { + print "\n"; + print "\t\n"; + echo "\n"; + } + ?>
    \n"; + print "\t\t\n"; + echo "\t
    diff --git a/db_dump.php3 b/db_dump.php3 index 41e85e49d..8605f43d6 100755 --- a/db_dump.php3 +++ b/db_dump.php3 @@ -78,32 +78,43 @@ else } print " $strDatabase: $db$crlf"; + if (isset($table_select)) { + $tmp_select=implode($table_select,"|"); + $tmp_select="|".$tmp_select."|"; + echo $tmp_select; + } + while($i < $num_tables) { $table = mysql_tablename($tables, $i); - if($what != "dataonly") - { - print $crlf; - print "# --------------------------------------------------------$crlf"; - print "#$crlf"; - print "# $strTableStructure '$table'$crlf"; - print "#$crlf"; - print $crlf; + if(isset($tmp_select) && is_int(strpos($tmp_select,"|".$table."|"))==false) + $i++; + else { - echo get_table_def($db, $table, $crlf).";$crlf$crlf"; - } - - if(($what == "data") || ($what == "dataonly")) - { + if($what != "dataonly") + { + print $crlf; + print "# --------------------------------------------------------$crlf"; print "#$crlf"; - print "# $strDumpingData '$table'$crlf"; + print "# $strTableStructure '$table'$crlf"; print "#$crlf"; print $crlf; - - get_table_content($db, $table, "my_handler"); + + echo get_table_def($db, $table, $crlf).";$crlf$crlf"; + } + + if(($what == "data") || ($what == "dataonly")) + { + print "#$crlf"; + print "# $strDumpingData '$table'$crlf"; + print "#$crlf"; + print $crlf; + + get_table_content($db, $table, "my_handler"); + } + $i++; } - $i++; } }