diff --git a/adminer/create.inc.php b/adminer/create.inc.php index e57290dd..2b9ebb28 100644 --- a/adminer/create.inc.php +++ b/adminer/create.inc.php @@ -163,7 +163,7 @@ foreach ($engines as $engine) {

: " autocapitalize="off"> - + " . optionlist(array("" => "(" . lang('engine') . ")") + $engines, $row["Engine"]) . "" : ""); ?> "(" . lang('collation') . ")") + $collations, $row["Collation"]) : ""); ?> @@ -187,7 +187,7 @@ edit_fields($row["fields"], $collations, "TABLE", $foreign_keys, $comments);

: "> - + " . lang('Comment') . "" . ' ' diff --git a/adminer/database.inc.php b/adminer/database.inc.php index 98349f91..57a6643c 100644 --- a/adminer/database.inc.php +++ b/adminer/database.inc.php @@ -66,7 +66,7 @@ echo ($_POST["add_x"] || strpos($name, "\n") 'mssql' => "ms187963.aspx", )) : ""); ?> - + homepage()) { echo "\n"; } echo "\n"; - echo "\n"; + echo "\n"; } echo '

"; echo ""; echo " "; - echo " - - - + + + + - - +\n"; + echo "\n"; echo "\n"; echo "\n"; } diff --git a/adminer/include/design.inc.php b/adminer/include/design.inc.php index 17263fd6..291273c8 100644 --- a/adminer/include/design.inc.php +++ b/adminer/include/design.inc.php @@ -19,13 +19,12 @@ function page_header($title, $error = "", $breadcrumb = array(), $title2 = "") { - <?php echo $title_page; ?> - - + + head()) { ?> @@ -35,7 +34,7 @@ function page_header($title, $error = "", $breadcrumb = array(), $title2 = "") { > - @@ -132,6 +131,6 @@ function page_footer($missing = "") { - + " . lang('Comment') : ""); ?> -"; ?> +"; ?> select_db($db))) { $kill = $connection2->result(connection_id()); // MySQL and MySQLi can use thread_id but it's not in PDO_MySQL ?> -\n"; + echo "\n"; ob_flush(); flush(); } @@ -1383,7 +1383,7 @@ function edit_form($TABLE, $fields, $row, $update) { } } echo ($update ? "\n" - : ($_POST || !$fields ? "" : "\n") + : ($_POST || !$fields ? "" : "\n") ); if (isset($_GET["select"])) { hidden_fields(array("check" => (array) $_POST["check"], "clone" => $_POST["clone"], "all" => $_POST["all"])); diff --git a/adminer/plugin.php b/adminer/plugin.php index d948600f..7267f55e 100644 --- a/adminer/plugin.php +++ b/adminer/plugin.php @@ -17,7 +17,7 @@ function adminer_object() { new AdminerDumpXml, new AdminerDumpAlter, //~ new AdminerSqlLog("past-" . rtrim(`git describe --tags --abbrev=0`) . ".sql"), - //~ new AdminerEditCalendar("\n\n\n\n\n\n\n\n\n", "../externals/jquery-ui/ui/i18n/jquery.ui.datepicker-%s.js"), + //~ new AdminerEditCalendar("\n\n\n\n\n\n\n\n\n", "../externals/jquery-ui/ui/i18n/jquery.ui.datepicker-%s.js"), //~ new AdminerTinymce("../externals/tinymce/jscripts/tiny_mce/tiny_mce_dev.js"), //~ new AdminerWymeditor(array("../externals/wymeditor/src/jquery/jquery.js", "../externals/wymeditor/src/wymeditor/jquery.wymeditor.js", "../externals/wymeditor/src/wymeditor/jquery.wymeditor.explorer.js", "../externals/wymeditor/src/wymeditor/jquery.wymeditor.mozilla.js", "../externals/wymeditor/src/wymeditor/jquery.wymeditor.opera.js", "../externals/wymeditor/src/wymeditor/jquery.wymeditor.safari.js")), new AdminerFileUpload(""), diff --git a/adminer/processlist.inc.php b/adminer/processlist.inc.php index 6ddeb7bc..8f8e9638 100644 --- a/adminer/processlist.inc.php +++ b/adminer/processlist.inc.php @@ -44,7 +44,7 @@ foreach (process_list() as $i => $row) { } ?> - +

$table_status) { ?>

- + \n"; } - echo (!$group && $select ? "" : "\n"); + echo (!$group && $select ? "" : "\n"); } if ($adminer->selectImportPrint()) { diff --git a/adminer/sql.inc.php b/adminer/sql.inc.php index ddd385a2..c51476c4 100644 --- a/adminer/sql.inc.php +++ b/adminer/sql.inc.php @@ -208,7 +208,7 @@ if (!isset($_GET["import"])) { } echo "

"; textarea("query", $q, 20); - echo ($_POST ? "" : "\n"); + echo ($_POST ? "" : "\n"); echo "

$execute\n"; echo lang('Limit rows') . ": \n"; diff --git a/adminer/trigger.inc.php b/adminer/trigger.inc.php index 42afb976..94b98ba9 100644 --- a/adminer/trigger.inc.php +++ b/adminer/trigger.inc.php @@ -40,7 +40,7 @@ page_header(($name != "" ? lang('Alter trigger') . ": " . h($name) : lang('Creat

: " maxlength="64" autocapitalize="off"> - +

diff --git a/adminer/user.inc.php b/adminer/user.inc.php index 4d9afd9f..9442c487 100644 --- a/adminer/user.inc.php +++ b/adminer/user.inc.php @@ -135,7 +135,7 @@ if ($_POST) { " autocapitalize="off"> " autocapitalize="off"> "> - + diff --git a/compile.php b/compile.php index 9982cb75..5e635ec9 100755 --- a/compile.php +++ b/compile.php @@ -393,11 +393,11 @@ if ($_SESSION["lang"]) { $file = str_replace("\n", "", $file); $file = str_replace('', $_SESSION["lang"], $file); } -$file = str_replace('' . "\n", "", $file); -$file = str_replace('' . "\n", "", $file); -$file = str_replace('' . "\n", "", $file); -$file = str_replace('' . "\n", "", $file); -$file = str_replace('' . "\n", "", $file); +$file = str_replace('' . "\n", "", $file); +$file = str_replace('' . "\n", "", $file); +$file = str_replace('' . "\n", "", $file); +$file = str_replace('' . "\n", "", $file); +$file = str_replace('' . "\n", "", $file); $file = str_replace('' . "\n", "", $file); $file = preg_replace_callback("~compile_file\\('([^']+)'(?:, '([^']*)')?\\)~", 'compile_file', $file); // integrate static files $replace = 'h(preg_replace("~\\\\\\\\?.*~", "", ME)) . "?file=\\1&version=' . $VERSION . ($driver ? '&driver=' . $driver : ''); diff --git a/editor/db.inc.php b/editor/db.inc.php index a3349601..352880e9 100644 --- a/editor/db.inc.php +++ b/editor/db.inc.php @@ -21,6 +21,6 @@ if ($adminer->homepage()) { } echo "\n"; - echo "\n"; + echo "\n"; echo "\n"; } diff --git a/editor/include/adminer.inc.php b/editor/include/adminer.inc.php index e0dd1383..0416dfa4 100644 --- a/editor/include/adminer.inc.php +++ b/editor/include/adminer.inc.php @@ -58,7 +58,7 @@ class Adminer { " autocapitalize="off"> - \n\n\n\n", $langPath = "jquery-ui/i18n/jquery.ui.datepicker-%s.js") { + function __construct($prepend = "\n\n\n\n", $langPath = "jquery-ui/i18n/jquery.ui.datepicker-%s.js") { $this->prepend = $prepend; $this->langPath = $langPath; } @@ -27,8 +27,8 @@ class AdminerEditCalendar { $lang = get_lang(); $lang = ($lang == "zh" ? "zh-CN" : ($lang == "zh-tw" ? "zh-TW" : $lang)); if ($lang != "en" && file_exists(sprintf($this->langPath, $lang))) { - printf("\n", $lang); - echo "\n"; + printf("\n", $lang); + echo "\n"; } } } @@ -37,7 +37,7 @@ class AdminerEditCalendar { if (preg_match("~date|time~", $field["type"])) { $dateFormat = "changeYear: true, dateFormat: 'yy-mm-dd'"; //! yy-mm-dd regional $timeFormat = "showSecond: true, timeFormat: 'HH:mm:ss.lcZ', timeInput: true"; - return " - + diff --git a/plugins/wymeditor.php b/plugins/wymeditor.php index 7551924c..3dc2217d 100644 --- a/plugins/wymeditor.php +++ b/plugins/wymeditor.php @@ -22,7 +22,7 @@ class AdminerWymeditor { function head() { foreach ($this->scripts as $script) { - echo "\n"; + echo "\n"; } } @@ -55,7 +55,7 @@ class AdminerWymeditor { $lang = get_lang(); $lang = ($lang == "zh" || $lang == "zh-tw" ? "zh_cn" : $lang); } - return "" . h($value) . ""; }