From: Devops Date: Wed, 5 Apr 2017 12:14:52 +0000 (+0100) Subject: www/dbq/dbq.php X-Git-Url: https://git.nbdom.net/?a=commitdiff_plain;h=6e753bb5f624bdbeb9b9b9ce07b70e2595245e59;p=nb.git www/dbq/dbq.php --- diff --git a/www/dbq/dbq.php b/www/dbq/dbq.php index c3496dec..f5b314cc 100644 --- a/www/dbq/dbq.php +++ b/www/dbq/dbq.php @@ -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; + } }