diff --git a/.gitattributes b/.gitattributes index 60e3063a..5adc456c 100644 --- a/.gitattributes +++ b/.gitattributes @@ -34,6 +34,7 @@ bureau/admin/adm_donosu.php -text bureau/admin/adm_dorenew.php -text bureau/admin/adm_dosu.php -text bureau/admin/adm_edit.php -text +bureau/admin/adm_email.php -text bureau/admin/adm_list.php -text bureau/admin/adm_login.php -text bureau/admin/adm_mxaccount.php -text diff --git a/bureau/admin/adm_email.php b/bureau/admin/adm_email.php new file mode 100644 index 00000000..e542422c --- /dev/null +++ b/bureau/admin/adm_email.php @@ -0,0 +1,88 @@ +enabled) { + __("This page is restricted to authorized staff"); + exit(); +} + +$fields = array ( + "subject" => array ("post", "string", ""), + "message" => array ("post", "string", ""), + "from" => array ("post", "string", ""), + "submit" => array ("post", "string", ""), +); +getFields($fields); + +?> + +
+ +mailallmembers($subject,$message,$from)) { + $error=_("The email was successfully sent"); + } else { + $error=_("There was an error"); + } +} + +if (isset($error) && $error) { + echo "$error
"; +} + +?> + + + diff --git a/bureau/admin/adm_panel.php b/bureau/admin/adm_panel.php index af5bc5e8..bdb4bb06 100644 --- a/bureau/admin/adm_panel.php +++ b/bureau/admin/adm_panel.php @@ -53,6 +53,7 @@ if (isset($error) && $error) {