diff --git a/bureau/admin/adm_deactivate.php b/bureau/admin/adm_deactivate.php index ab71ed3e..7ebfbbf8 100644 --- a/bureau/admin/adm_deactivate.php +++ b/bureau/admin/adm_deactivate.php @@ -126,11 +126,11 @@ foreach ($domains as $key => $domain) { } else { # 2.1 keep a copy of where it was, in an SQL request - $backup .= "UPDATE `sub_domaines` SET `type`='$type', valeur='$dest',web_action='UPDATE' WHERE `domaine`='$domain' AND sub='$sub';\n"; + $backup .= "UPDATE `sub_domaines` SET `type`='$type', valeur='$dest',web_action='UPDATE' WHERE id=" . $r['sub'][$k]['id'] . ";\n"; # 2.2 change the subdomain to redirect to http://spam.koumbit.org/ $dom->lock(); - if (!$dom->set_sub_domain($domain, $sub, $dom->type_url, $redirect)) { + if (! $db->query("UPDATE `sub_domaines` SET `type`='" . $dom->type_url . "', valeur='$redirect',web_action='UPDATE' WHERE id=" . $r['sub'][$k]['id'] . ";\n") ) { print "-- error in $sub.$domain: " . $err->errstr() . "\n"; } $dom->unlock(); @@ -141,6 +141,35 @@ foreach ($domains as $key => $domain) { if (!$confirmed) print ''; } +$mail_dom = $mail->enum_domains(); + +if ($confirmed) { + print "
"; + printf(_("-- disabling all the mail passwords\n")); +} +if (!$confirmed) print "\n