From: Jakub Vrana Date: Sun, 12 Aug 2012 05:37:30 +0000 (-0700) Subject: Export data settings only with data X-Git-Tag: v3.6.0~57 X-Git-Url: https://git.joonet.de/?a=commitdiff_plain;h=f9cbf50bd78107de9abe14d1bd391219f3d6d705;p=adminer.git Export data settings only with data --- diff --git a/adminer/dump.inc.php b/adminer/dump.inc.php index 5f10bb8f..d4d33934 100644 --- a/adminer/dump.inc.php +++ b/adminer/dump.inc.php @@ -13,10 +13,10 @@ if ($_POST) { echo "-- Adminer $VERSION " . $drivers[DRIVER] . " dump " . ($jush != "sql" ? "" : "SET NAMES utf8; -SET foreign_key_checks = 0; +" . ($_POST["data_style"] ? "SET foreign_key_checks = 0; SET time_zone = " . q($connection->result("SELECT @@time_zone")) . "; SET sql_mode = 'NO_AUTO_VALUE_ON_ZERO'; - +" : "") . " "); }