mirror of
https://github.com/vrana/adminer.git
synced 2025-08-16 19:44:00 +02:00
Don't try to drop new object
git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@315 7c3ca157-0c34-0410-bff1-cbf682f78f5c
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
<?php
|
||||
$dropped = false;
|
||||
if ($_POST && !$error) {
|
||||
if ($_POST["dropped"] || $mysql->query("DROP VIEW " . idf_escape($_GET["createv"]))) {
|
||||
if (strlen($_GET["createv"]) && ($_POST["dropped"] || $mysql->query("DROP VIEW " . idf_escape($_GET["createv"])))) {
|
||||
if ($_POST["drop"]) {
|
||||
redirect(substr($SELF, 0, -1), lang('View has been dropped.'));
|
||||
}
|
||||
|
@@ -3,7 +3,7 @@ $routine = (isset($_GET["function"]) ? "FUNCTION" : "PROCEDURE");
|
||||
|
||||
$dropped = false;
|
||||
if ($_POST && !$error && !$_POST["add"] && !$_POST["drop_col"]) {
|
||||
if ($_POST["dropped"] || $mysql->query("DROP $routine " . idf_escape($_GET["procedure"]))) {
|
||||
if (strlen($_GET["procedure"]) && ($_POST["dropped"] || $mysql->query("DROP $routine " . idf_escape($_GET["procedure"])))) {
|
||||
if ($_POST["drop"]) {
|
||||
redirect(substr($SELF, 0, -1), lang('Routine has been dropped.'));
|
||||
}
|
||||
|
@@ -4,7 +4,7 @@ $trigger_event = array("INSERT", "UPDATE", "DELETE");
|
||||
|
||||
$dropped = false;
|
||||
if ($_POST && !$error) {
|
||||
if ($_POST["dropped"] || $mysql->query("DROP TRIGGER " . idf_escape($_GET["name"]))) {
|
||||
if (strlen($_GET["name"]) && ($_POST["dropped"] || $mysql->query("DROP TRIGGER " . idf_escape($_GET["name"])))) {
|
||||
if ($_POST["drop"]) {
|
||||
redirect($SELF . "table=" . urlencode($_GET["trigger"]), lang('Trigger has been dropped.'));
|
||||
}
|
||||
|
Reference in New Issue
Block a user