X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=bin%2Fcron%2Fregistrations.php;fp=bin%2Fcron%2Frapports_inscription.php;h=1caa4405866404633cc6600ddb4cd5470dbfd6f6;hb=5ecaa68e834e823f3d2ab9ea2c3613c1ebc19bf6;hp=880058440a15672516c7b6e987160da3daeb35f9;hpb=93b0da52bfae596573e07fb4b8fe5a3326326179;p=platal.git diff --git a/bin/cron/rapports_inscription.php b/bin/cron/registrations.php similarity index 87% rename from bin/cron/rapports_inscription.php rename to bin/cron/registrations.php index 8800584..1caa440 100755 --- a/bin/cron/rapports_inscription.php +++ b/bin/cron/registrations.php @@ -1,16 +1,16 @@ #!/usr/bin/php5 -q {?} GROUP BY al.alias ORDER BY pd.promo", @@ -22,8 +22,6 @@ if ($count = $res->total()) { } } -// --------------------------------------- - $res = XDB::iterRow("SELECT a.hruid, r.email, r.date FROM register_pending AS r INNER JOIN accounts AS a ON (a.uid = r.uid) @@ -36,16 +34,12 @@ if ($count = $res->total()) { } } -// --------------------------------------- - $res = XDB::query('SELECT COUNT(DISTINCT uid), COUNT(*) FROM register_marketing'); list($a, $b) = $res->fetchOneRow(); $message .= "\nINSCRIPTIONS SOLICITÉES :\n"; $message .= " $a utilisateurs\n $b adresses email\n"; -// --------------------------------------- - $message .= "\n\n"; $mailer = new PlMailer(); @@ -54,5 +48,6 @@ $mailer->setFrom($globals->register->notif); $mailer->addTo($globals->register->notif); $mailer->setTxtBody($message); $mailer->send(); + // vim:set et sw=4 sts=4 sws=4 foldmethod=marker enc=utf-8: ?>