#!/usr/bin/php5 -q fetchOneCell(); if (!$uid) { echo "WARNING Can't find uid for matricule $xorgid (login $login)\n"; continue; } $market = Marketing::get($uid, "$login@poly.polytechnique.fr"); if (!is_null($market)) { echo "WARNING A marketing has already been to $xorgid on $login\n"; continue; } $market = new Marketing($uid, "$login@poly.polytechnique.fr", 'default', null, 'staff'); $market->add(false); $market->send(); } // vim:set et sw=4 sts=4 sws=4 foldmethod=marker fenc=utf-8: ?>