From: x2003bruneau Date: Mon, 26 Feb 2007 17:55:44 +0000 (+0000) Subject: Add connection informations in Registration notification mail X-Git-Tag: xorg/0.9.14~256 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=5f5f0eb548c40e4bf0619d3b917c7f6a58fba5e1;p=platal.git Add connection informations in Registration notification mail git-svn-id: svn+ssh://murphy/home/svn/platal/trunk@1524 839d8a87-29fc-0310-9880-83ba4fa771e5 --- diff --git a/modules/register.php b/modules/register.php index 92fc139..389d664 100644 --- a/modules/register.php +++ b/modules/register.php @@ -326,6 +326,8 @@ class RegisterModule extends PLModule $mymail->setTxtBody(wordwrap($msg, 72)); $mymail->send(); } + + /**** send a mail to X.org administrators ****/ if ($globals->register->notif) { $mymail = new PlMailer(); $mymail->setSubject("Inscription de $prenom $nom (X$promo)"); @@ -338,7 +340,10 @@ class RegisterModule extends PLModule . " - naissance : $naissance\n" . " - forlife : $forlife\n" . " - email : $email\n" - . " - sexe : $femme\n"; + . " - sexe : $femme\n" + . " - ip : " . (@$_SERVER['HTTP_X_FORWARDED_FOR'] ? $_SERVER['HTTP_X_FORWARDED_FOR'] + : $_SERVER['REMOTE_ADDR']) . "\n" + . " - proxy : " . (@$_SERVER['HTTP_X_FORWARDED_FOR'] ? $_SERVER['REMOTE_ADDR'] : "") . "\n"; $mymail->setTxtBody($msg); $mymail->send(); }