From 1fc489c6e82e1eb33b126e6841a17888be0d98fa Mon Sep 17 00:00:00 2001 From: Benjamin Sonntag Date: Thu, 23 Aug 2012 18:56:51 +0000 Subject: [PATCH] adding search icon + mail_del fix + fix hook error (mail big patch) --- .gitattributes | 2 + bureau/admin/images/search.png | Bin 0 -> 870 bytes bureau/admin/mail_del.php | 88 +++++++++++++++++++++++++++++++++ bureau/admin/mail_list.php | 2 +- 4 files changed, 91 insertions(+), 1 deletion(-) create mode 100644 bureau/admin/images/search.png create mode 100644 bureau/admin/mail_del.php diff --git a/.gitattributes b/.gitattributes index 6eab8526..22d91c16 100644 --- a/.gitattributes +++ b/.gitattributes @@ -213,6 +213,7 @@ bureau/admin/images/quota.png -text bureau/admin/images/row-down.png -text bureau/admin/images/row-down.png2 -text bureau/admin/images/schedule.png -text +bureau/admin/images/search.png -text bureau/admin/images/stat.png -text bureau/admin/index.php -text bureau/admin/ip_main.php -text @@ -245,6 +246,7 @@ bureau/admin/logs_list.php -text bureau/admin/mail_add.php -text bureau/admin/mail_alias_create.inc.php -text bureau/admin/mail_alias_doedit.php -text +bureau/admin/mail_del.php -text bureau/admin/mail_doadd.php -text bureau/admin/mail_doedit.php -text bureau/admin/mail_edit.inc.php -text diff --git a/bureau/admin/images/search.png b/bureau/admin/images/search.png new file mode 100644 index 0000000000000000000000000000000000000000..f8d3782ef479bd0239277adb833c1509905c78c7 GIT binary patch literal 870 zcmV-s1DX7ZP)Px#24YJ`L;(K){{a7>y{D4^000SaNLh0L01FcU01FcV0GgZ_00007bV*G`2iyo3 z5&$@3Hl33I00QPoL_t(I%gvKrZ_`yA$3N$s|GGYReb^|B?x91L0+Z~9h(--)#1JBv zCU8Nx(U;(B@C_LC(qQ6<7beCCBnuZxhGRll7cAXF+mzC+?b>y1*N650KVB3Y7WM-C z-ks!oKIi27`+Wt6=$FUqdMQ<)+-PB18i!4B#Ovf_*v|(ik9|4pb$xC*x_N+qmz*lD{xqNm~02lxZYk7TZA;F0eA2;7W#jwZG|6QZK&)niFehwu$NBP>Rl3$+i5WO zS5gDWdn*~eTBs5UcsM%b;!Zrn{Ie{@T9bzxoBX`AhHG$u*s%az%j&1AvjM zG|*b(b=Xi+kS*5%US%N3Zr1?tyX?Hmwy*7alcm&FS*A<7C@Cn_nwXa6%xC~51)Z*i zX=zT62GLscvQkHggOFy&q*!bE4Vxh`q$FFelgO9(`1BY6@fX{S1wDK^GmdF#_BvgZ z6j-{K$$v5}jWIRsW4%yix7p#xh38y9Kh1?$qz^0AS~zV6pUp<8wf1?MEi#}KQh;mF zz+qDue%BxXHbauDH2C)Z3gbZ!0k@s%UYp8Zn=5B0ITt;`jrU^ww5WKTE`SgO-F7}Y zH74YxnF$eeJNlqTd!OYOCFY-H`8!i2UE1Z=LV~4Kfsn_}M9AA4vy>e7yXi06hts3{ z_B2JiYoeq;Np&E=>RyMr#U%0EHcv7I3?&JBolK4RzCN(_zdqT}cUCeqJKe)NiD_xH z215xV0T1t<2yLcCGHdn*}zKapdr+Bg(sD9J>~%lWA=7h(}{Xo~?JZESw=PrmY9 ws#v8|Z_(*m3^{FteJ-LSKCaG21^-+93ne!$eBcx*&j0`b07*qoM6N<$f^Qd%v;Y7A literal 0 HcmV?d00001 diff --git a/bureau/admin/mail_del.php b/bureau/admin/mail_del.php new file mode 100644 index 00000000..af0accf7 --- /dev/null +++ b/bureau/admin/mail_del.php @@ -0,0 +1,88 @@ + array ("request", "array", ""), + "domain" => array ("request", "string", ""), + "confirm" => array("request", "string", "n"), +); +getFields($fields); + +if (!is_array($d)) { + $d[]=$d; +} + +reset($d); + +include_once ("head.php"); + +if ($confirm=="y") { + +while (list($key,$val)=each($d)) { + if (!$mail->del_mail($val)) { + $error.=sprintf(_("The email address %s does not exist!")."
",$val); + } else { + $error.=sprintf(_("The email address %s has been deleted!")."
",$val); + } +} +include("mail_list.php"); + exit(); +} + +?> + + +

:

+
+
+

+
+

+ + + +"; + echo $val."
"; +} + +?> +

+

+" /> - "/> +

+ +

+NOT be able to get it back!"); ?> +

+ +
+ + + diff --git a/bureau/admin/mail_list.php b/bureau/admin/mail_list.php index 13a43fa2..338d4b8b 100644 --- a/bureau/admin/mail_list.php +++ b/bureau/admin/mail_list.php @@ -107,7 +107,7 @@ while (list($key,$val)=each($mails_list)){ - " /> + " />