setDomain(1); if (!$bul_id) { $acces_m = $dom_1->getRights($PMBuserid,$serial_id,8); } else { $acces_j = $dom_1->getJoin($PMBuserid,8,'bulletin_notice'); $q= "select count(1) from bulletins $acces_j where bulletin_id=".$bul_id; $r = pmb_mysql_query($q); if ($r) { if(pmb_mysql_result($r,0,0)==0) { $acces_m=0; } } else { $acces_m=0; } } } if ($acces_m==0) { if (!$bul_id) { error_message('', htmlentities($dom_1->getComment('mod_seri_error'), ENT_QUOTES, $charset), 1, ''); } else { error_message('', htmlentities($dom_1->getComment('mod_bull_error'), ENT_QUOTES, $charset), 1, ''); } } else { $myBulletinage = new bulletinage($bul_id, $serial_id); $notice_id = $myBulletinage->bull_num_notice; pmb_mysql_query("UPDATE bulletins SET num_notice=0 WHERE bulletin_id=".$bul_id); notice::del_notice($notice_id); print "
".$msg["maj_encours"]."
"; $retour = bulletinage::get_permalink($bul_id); print "
"; } ?>