array("get","integer",null), "target_type" => array("post", "string", null), "target_mail" => array("post", "string", null), "target_domain" => array("post", "string", null), ); getFields($fields); if (is_null($domain_id)) { echo "
"; __("Problem with the domain"); echo"
"; include_once("foot.php"); exit(); } if (!is_null($target_type)) { switch ($target_type) { case "none": $mail->catchall_del($domain_id); $error=_("Catchall successfully deleted"); require_once("mail_list.php"); exit(); break; case "domain": if ($mail->catchall_set($domain_id, $target_domain)) { $error=_("Catchall successfully updated"); require_once("mail_list.php"); exit(); } else { $error=$err->errstr(); } break; case "mail": if ($mail->catchall_set($domain_id, $target_mail)) { $error=_("Catchall successfully updated"); require_once("mail_list.php"); exit(); } else { $error=$err->errstr(); } break; default: $error=_("Unknown target type"); } } $catch=$mail->catchall_getinfos($domain_id); ?>