X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=include%2Fxorg.misc.inc.php;h=37525b8050fe696a260505ec9ee3663c373a6be8;hb=b6cdf7b450a26a7fb5027d23569b15def0abd812;hp=e6bf429a8b1f6f7d35751c6e47bd950c82682d54;hpb=50a40a33a496131e817df875607ea5542d096a64;p=platal.git diff --git a/include/xorg.misc.inc.php b/include/xorg.misc.inc.php index e6bf429..37525b8 100644 --- a/include/xorg.misc.inc.php +++ b/include/xorg.misc.inc.php @@ -1,6 +1,6 @@ numRows(); +} + +function send_warning_mail($title) +{ + $mailer = new PlMailer(); + $mailer->setFrom("webmaster@polytechnique.org"); + $mailer->addTo("hotliners@staff.polytechnique.org"); + $mailer->setSubject($title); + $mailer->setTxtBody("Identifiants de session :\n" . var_export($_SESSION, true) . "\n\n" + ."Identifiants de connexion :\n" . var_export($_SERVER, true)); + $mailer->send(); +} + ?>