-#!/usr/bin/php4 -q
+#!/usr/bin/php5 -q
<?php
/***************************************************************************
- * Copyright (C) 2003-2006 Polytechnique.org *
+ * Copyright (C) 2003-2007 Polytechnique.org *
* http://opensource.polytechnique.org/ *
* *
* This program is free software; you can redistribute it and/or modify *
$R_PERIOD = "INTERVAL 6 HOUR"; // période de réponse moyenne de 6h
require('./connect.db.inc.php');
-require('diogenes/diogenes.hermes.inc.php');
+require('../classes/plmailer.php');
$res = XDB::query("SELECT count(stamp), sum(stamp < NOW() - $M_PERIOD), sum(stamp < NOW() - $R_PERIOD) FROM x4dat.requests");
list($nb,$nbold,$nbveryold) = $res->fetchOneRow();
exit;
}
-$mymail = new HermesMailer();
+$mymail = new PlMailer();
$mymail->setFrom('validation@polytechnique.org');
$mymail->addTo("validation@polytechnique.org");
$mymail->setSubject((empty($nbveryold)?"":"[urgent] ")."il y a $nb validations non effectuées");