array ("post", "string", ""),
);
getFields($fields);
if(!isset($error)){
$error="";
}
if ($confirm=="y" ) {
reset($_POST);
while (list($key,$val)=each($_POST)) {
if (substr($key,0,4)=="del_") {
// Effacement de la base $val
$r=$mysql->del_db(substr($key,4));
if (!$r) {
$error.=$err->errstr()."
";
} else {
$error.=sprintf(_("The database %s has been successfully deleted"),$val)."
";
}
}
}
include("sql_list.php");
exit();
}
$found=false;
foreach($_POST as $key=>$val) {
if (substr($key,0,4)=="del_") {
$found=true;
}
}
if (!$found) {
$error=_("Please check which databases you want to delete");
include("sql_list.php");
exit();
}
?>