27 require_once(
"../class/config.php");
30 "d" => array (
"post",
"array",
""),
31 "domain_id" => array (
"post",
"integer",
""),
32 "confirm" => array(
"post",
"string",
"n"),
42 include_once (
"head.php");
47 if (!($email = $mail->is_it_my_mail(
$val))) {
51 if ($mail->delete(
$val)) {
52 if (
$db->f(
"islocal")) {
53 $msg->raise(
"INFO",
"mail", _(
"The email %s has been marked for deletion"), $email);
55 $msg->raise(
"INFO",
"mail", _(
"The email %s has been successfully deleted"), $email);
59 include(
"mail_list.php");
64 <h3><?php
__(
"Deleting mail accounts"); ?> : </h3>
67 <p><?php
__(
"Please confirm the deletion of the following mail accounts:"); ?></p>
68 <form method=
"post" action=
"mail_del.php" id=
"main">
71 <input type=
"hidden" name=
"confirm" value=
"y" />
72 <input type=
"hidden" name=
"domain_id" value=
"<?php ehe($domain_id); ?>" />
77 $m=$mail->get_details(
$val);
78 echo
"<input type=\"hidden\" name=\"d[]\" value=\"".ehe(
$val,
false).
"\" />";
79 echo
"<li><b>".$m[
"address"].
"@".$m[
"domain"].
"</b></li>";
85 <input type=
"submit" class=
"inb" name=
"submit" value=
"<?php __("Confirm the deletion
"); ?>" /> <input type=
"button" name=
"cancel" id=
"cancel" onclick=
"window.history.go(-1);" class=
"inb" value=
"<?php __("Don
't delete anything and go back to the email list"); ?>"/>
88 <p class="warningmsg">
89 <?php __("Warning: Deleting an email address will destroy all the messages it contains! You will <b>NOT</b> be able to get it back!"); ?>
93 <?php include_once("foot.php"); ?>
getFields($fields, $requestOnly=false)
Get the Fields of the posted form from $_REQUEST or POST or GET and check their type.
csrf_get($return=false)
Give a new CSRF uniq token for a form the session must be up since the CSRF is linked to the session ...
$fields
Form to confirm the deletion of an email account delete it when confirmed.
if(empty($_POST['key'])||empty($_POST['val'])) $key