$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;
+
}
}