function database_drop() { $q = new mysql(); $instance_id = $_POST["instance-id"]; if (!is_numeric($instance_id)) { $instance_id = 0; } if ($instance_id > 0) { $q = new mysql_multi($instance_id); } $q->DELETE_DATABASE($_POST["dropdb"]); if (!$q->ok) { echo $q->mysql_error; return; } if ($instance_id == 0) { $q->QUERY_SQL("DELETE FROM mysqldbs WHERE databasename='{$_POST["dropdb"]}'", "artica_backup"); if (!$q->ok) { echo $q->mysql_error; return; } $q->BuildTables(); } else { $q = new mysql(); $q->QUERY_SQL("DELETE FROM mysqldbsmulti WHERE databasename='{$_POST["dropdb"]}' AND instance_id={$instance_id}", "artica_backup"); if (!$q->ok) { echo $q->mysql_error; return; } } $sock = new sockets(); $sock->getFrameWork("mysql.php?filstats=yes"); }