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:
@@ -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'));
|
||||
}
|
||||
|
Reference in New Issue
Block a user