diff --git a/adminer/create.inc.php b/adminer/create.inc.php index 93604df9..3e6cf2cd 100644 --- a/adminer/create.inc.php +++ b/adminer/create.inc.php @@ -197,7 +197,7 @@ edit_fields($row["fields"], $collations, "TABLE", $foreign_keys, $comments); -> + "> \n"; + echo "" . confirm() . "\n"; } elseif (!$_POST["add_x"] && $_GET["db"] == "") { echo "\n"; } diff --git a/adminer/db.inc.php b/adminer/db.inc.php index deb5c251..a36ecba2 100644 --- a/adminer/db.inc.php +++ b/adminer/db.inc.php @@ -125,8 +125,8 @@ if ($adminer->homepage()) { . " " . " " : ""))) - . " " - . "\n"; + . " " . confirm() + . "" . confirm() . "\n"; $databases = (support("scheme") ? $adminer->schemas() : $adminer->databases()); if (count($databases) != 1 && $jush != "sqlite") { $db = (isset($_POST["target"]) ? $_POST["target"] : (support("scheme") ? $_GET["ns"] : DB)); diff --git a/adminer/event.inc.php b/adminer/event.inc.php index e561532e..d008952b 100644 --- a/adminer/event.inc.php +++ b/adminer/event.inc.php @@ -47,6 +47,6 @@ if (!$row && $EVENT != "") {

-> + diff --git a/adminer/foreign.inc.php b/adminer/foreign.inc.php index 85779357..2e0ff74f 100644 --- a/adminer/foreign.inc.php +++ b/adminer/foreign.inc.php @@ -86,6 +86,6 @@ foreach ($row["source"] as $key => $val) {

-> + diff --git a/adminer/include/connect.inc.php b/adminer/include/connect.inc.php index 4d3be410..a398e728 100644 --- a/adminer/include/connect.inc.php +++ b/adminer/include/connect.inc.php @@ -58,7 +58,7 @@ function connect_error() { echo (support("database") ? "

" . lang('Selected') . "
\n" . "\n" // used by trCheck() - . "\n" + . "" . confirm() . "\n" . "
\n" : "" ); diff --git a/adminer/include/functions.inc.php b/adminer/include/functions.inc.php index 3bd4d0fa..abe934a0 100644 --- a/adminer/include/functions.inc.php +++ b/adminer/include/functions.inc.php @@ -189,10 +189,11 @@ function select_input($attrs, $options, $value = "", $onchange = "", $placeholde } /** Get onclick confirmation +* @param string * @return string */ -function confirm() { - return " onclick=\"return confirm('" . lang('Are you sure?') . "');\""; +function confirm($selector = "qsl('input')") { + return ""; } /** Print header for hidden fieldset (close by ) @@ -1385,7 +1386,7 @@ function edit_form($TABLE, $fields, $row, $update) { ) . "' title='Ctrl+Shift+Enter'>\n"; } } - echo ($update ? "\n" + echo ($update ? "" . confirm() . "\n" : ($_POST || !$fields ? "" : "\n") ); if (isset($_GET["select"])) { diff --git a/adminer/procedure.inc.php b/adminer/procedure.inc.php index 83a1668a..466e0b8d 100644 --- a/adminer/procedure.inc.php +++ b/adminer/procedure.inc.php @@ -49,6 +49,6 @@ if (isset($_GET["function"])) {

-> + diff --git a/adminer/scheme.inc.php b/adminer/scheme.inc.php index fc588dd6..bc79e1b9 100644 --- a/adminer/scheme.inc.php +++ b/adminer/scheme.inc.php @@ -31,7 +31,7 @@ if (!$row) { \n"; + echo "" . confirm() . "\n"; } ?> diff --git a/adminer/select.inc.php b/adminer/select.inc.php index ef9d3e48..12767bdc 100644 --- a/adminer/select.inc.php +++ b/adminer/select.inc.php @@ -503,7 +503,7 @@ if (!$columns && support("table")) {

-> +
"> \n"; + echo "" . confirm() . "\n"; } ?> diff --git a/adminer/trigger.inc.php b/adminer/trigger.inc.php index 94b98ba9..498b54e5 100644 --- a/adminer/trigger.inc.php +++ b/adminer/trigger.inc.php @@ -44,6 +44,6 @@ page_header(($name != "" ? lang('Alter trigger') . ": " . h($name) : lang('Creat

-> + diff --git a/adminer/type.inc.php b/adminer/type.inc.php index 01712b26..4ba78bc3 100644 --- a/adminer/type.inc.php +++ b/adminer/type.inc.php @@ -22,7 +22,7 @@ if (!$row) {

\n"; + echo "" . confirm() . "\n"; } else { echo "\n"; textarea("as", $row["as"]); diff --git a/adminer/user.inc.php b/adminer/user.inc.php index 9442c487..97b3b4a1 100644 --- a/adminer/user.inc.php +++ b/adminer/user.inc.php @@ -180,6 +180,6 @@ echo "\n"; ?>

-> + diff --git a/adminer/view.inc.php b/adminer/view.inc.php index 9c09a546..fee3fcdf 100644 --- a/adminer/view.inc.php +++ b/adminer/view.inc.php @@ -53,6 +53,6 @@ page_header(($TABLE != "" ? lang('Alter view') : lang('Create view')), $error, a

-> +