X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;ds=sidebyside;f=bin%2Fcron%2Frapports_inscription.php;h=c9d09fdba732a01eba8d2783db30eba6956ceeab;hb=da398501bc75b994c9046ae13239db815fcd8ad9;hp=f567ed5f0e69727f9d40ea98f51fc64f5eb7231c;hpb=2e3d2005237b9658dc631cba5f0833f45f99ba2e;p=platal.git diff --git a/bin/cron/rapports_inscription.php b/bin/cron/rapports_inscription.php index f567ed5..c9d09fd 100755 --- a/bin/cron/rapports_inscription.php +++ b/bin/cron/rapports_inscription.php @@ -5,7 +5,7 @@ $MESSAGE = ''; // --------------------------------------- -$res = $globals->xdb->iterRow( +$res = XDB::iterRow( "SELECT a.alias, u.promo, email FROM auth_user_md5 AS u LEFT JOIN aliases AS a ON( u.user_id=a.id AND a.type='a_vie' ) @@ -22,7 +22,7 @@ if ($a = $res->total()) { // --------------------------------------- -$res = $globals->xdb->iterRow( +$res = XDB::iterRow( "SELECT forlife, email, date FROM register_pending WHERE hash != 'INSCRIT' @@ -36,7 +36,7 @@ if ($b = $res->total()) { // --------------------------------------- -$res = $globals->xdb->query('SELECT COUNT(DISTINCT uid), COUNT(*) FROM register_marketing'); +$res = XDB::query('SELECT COUNT(DISTINCT uid), COUNT(*) FROM register_marketing'); list($a, $b) = $res->fetchOneRow(); $MESSAGE .= "\n$c INSCRIPTIONS SOLICITÉES :\n"; $MESSAGE .= " $a utilisateurs\n $b adresses mails\n";