1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-12 17:44:07 +02:00

Plugin for including date in export filename

This commit is contained in:
Jakub Vrana
2012-06-29 14:41:47 -07:00
parent f158d5e392
commit b78b0cd109
6 changed files with 40 additions and 7 deletions

View File

@@ -6,6 +6,8 @@
* @license http://www.gnu.org/licenses/gpl-2.0.html GNU General Public License, version 2 (one or other)
*/
class AdminerDumpXml {
/** @access protected */
var $database = false;
function dumpFormat() {
return array('xml' => 'XML');
@@ -22,10 +24,9 @@ class AdminerDumpXml {
}
function dumpData($table, $style, $query) {
static $database = false;
if ($_POST["format"] == "xml") {
if (!$database) {
$database = true;
if (!$this->database) {
$this->database = true;
echo "<database name='" . h(DB) . "'>\n";
register_shutdown_function(array($this, '_database'));
}