user_lang ; $PMBusernom=$param_nom->nom ; $PMBuserprenom=$param_nom->prenom ; $PMBuseremail=$param_nom->user_email ; // pour que l'id user soit dispo partout define('SESSuserid' , $param_nom->userid); $PMBuserid = $param_nom->userid; $PMBusername = $param_nom->username; $messages = new XMLlist("$include_path/messages/$lang.xml", 0); $messages->analyser(); $msg = $messages->table; include_once("$class_path/bannette.class.php"); include_once("$class_path/equation.class.php"); include_once("$class_path/classements.class.php"); require_once("$class_path/docs_location.class.php"); include_once("$class_path/rss_flux.class.php"); require_once("./dsi/func_abo.inc.php"); require_once("./dsi/func_pro.inc.php"); require_once("./dsi/func_common.inc.php"); require_once("./dsi/func_clas.inc.php"); require_once("./dsi/func_equ.inc.php"); require_once("./dsi/func_diff.inc.php"); require_once("./dsi/func_rss.inc.php"); $action_diff_aff = "

".$msg[dsi_dif_auto_titre]."

" ; // récupérer les bannettes à diffuser $requete = "SELECT id_bannette, proprio_bannette FROM bannettes "; $requete .= " WHERE (DATE_ADD(date_last_envoi, INTERVAL periodicite DAY) <= sysdate()) and bannette_auto=1 " ; $res = mysql_query($requete, $dbh); while(($bann=mysql_fetch_object($res))) { $liste_bannette[]=$bann->id_bannette ; } mysql_free_result($res); if (!$liste_bannette) $liste_bannette = array() ; for ($i=0 ; $i < sizeof($liste_bannette) ; $i++) { $bannette = new bannette($liste_bannette[$i]) ; $action_diff_aff .= $msg['dsi_dif_vidage'].": ".$bannette->nom_bannette."
" ; if(!$bannette->limite_type) $action_diff_aff .= $bannette->vider(); $action_diff_aff .= $msg['dsi_dif_remplissage'].": ".$bannette->nom_bannette ; $action_diff_aff .= $bannette->remplir(); $action_diff_aff .= $bannette->purger(); $action_diff_aff .= "".$msg['dsi_dif_diffusion'].": ".$bannette->nom_bannette."
" ; $action_diff_aff .= $bannette->diffuser(); } print $action_diff_aff ; // deconnection MYSql mysql_close($dbh);