X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=bin%2Fcron%2Frapports_inscription.php;h=b7e916787f3c067fb1cbb361c9ebafb8c09f882c;hb=d293e17c2f13ba1e27ef843b485fe6fb0edcc069;hp=d25f1fdd5fb949159c6862a915547b7bb6e61ba8;hpb=64b8f057d537f4f78c2b8fb6ea8fcf3b3248628a;p=platal.git diff --git a/bin/cron/rapports_inscription.php b/bin/cron/rapports_inscription.php index d25f1fd..b7e9167 100755 --- a/bin/cron/rapports_inscription.php +++ b/bin/cron/rapports_inscription.php @@ -1,6 +1,6 @@ #!/usr/bin/php5 -q total()) { // --------------------------------------- $res = XDB::iterRow( - "SELECT forlife, email, date - FROM register_pending - WHERE hash != 'INSCRIT' - ORDER BY date"); + "SELECT u.hruid, r.email, r.date + FROM register_pending AS r + LEFT JOIN auth_user_md5 AS u ON (u.user_id = r.uid) + WHERE r.hash != 'INSCRIT' + ORDER BY r.date"); if ($b = $res->total()) { $MESSAGE.="\n$b INSCRIPTIONS NON CONFIRMEES:\n"; while (list($usern, $mail, $quand) = $res->next()) { @@ -38,14 +39,13 @@ if ($b = $res->total()) { $res = XDB::query('SELECT COUNT(DISTINCT uid), COUNT(*) FROM register_marketing'); list($a, $b) = $res->fetchOneRow(); -$MESSAGE .= "\n$c INSCRIPTIONS SOLICITÉES :\n"; +$MESSAGE .= "\nINSCRIPTIONS SOLICITÉES :\n"; $MESSAGE .= " $a utilisateurs\n $b adresses email\n"; // --------------------------------------- $MESSAGE .= "\n\n"; -require_once('../../classes/plmailer.php'); $mailer = new PlMailer(); $mailer->setSubject("$a confirmées, $b en attente et $c sollicitées"); $mailer->setFrom($globals->register->notif);