]> git.nbdom.net Git - nb.git/commitdiff
www/dbq/dbq.php
authorDevops <sys@15gifts.com>
Wed, 5 Apr 2017 12:14:52 +0000 (13:14 +0100)
committerDevops <sys@15gifts.com>
Wed, 5 Apr 2017 12:14:52 +0000 (13:14 +0100)
www/dbq/dbq.php

index c3496dec96f867ce639e571d6f07f65000994cf8..f5b314cc9fe0bd4643fe895064c4772dd157d71b 100644 (file)
@@ -797,10 +797,22 @@ EOF;
       $this->page($this->db,'databases');
 
     } elseif ($action == 'dump') {
-      echo serialize($this->db->tables());
+      header('Content-type: text/plain');
+      $this->db->dump();
       exit;
+      #echo serialize($this->db->tables());
       $this->page(array_values($this->db()->conf));
 
+    } elseif ($action == 'csv') {
+      header('Content-type: text/plain');
+      $this->db->dump2csv();
+      exit;
+
+    } elseif ($action == 'sql') {
+      header('Content-type: text/plain');
+      $this->db->sql();
+      exit;
+
     }
 
   }