Forum » » Road map développement » » [Résolu] - Alertes versus.txt
Posté : 1 avr. 2021 à 14:29
settype($f_mes, 'array');
while ($SQM=sql_fetch_assoc($QM)) {
$f_mes[]=array($SQM['fretour_h'], $SQM['fnom_affich']);
}
//si on trouve le contenu du fichier dans la requete
if (in_array($ibid[1],$f_mes,true)) and in_array($ibid[2],$f_mes,true)) {
$k=(array_search ($ibid[1], $f_mes));
unset ($f_mes[$k]);
} else {
sql_query('REPLACE '.$NPDS_Prefix.'fonctions SET fdroits1_descr="", fnom="mes_npds_'.$i.'", fretour_h="'.$ibid[1].'", fcategorie="9", fcategorie_nom="Alerte", ficone="'.$fico.'",fetat="1", finterface="1", fnom_affich="'.addslashes($ibid[2]).'", furlscript="data-toggle=\"modal\" data-target=\"#messageModal\""');
}
}
Cet article provient de Labo NPDS 2015-2024
https://labo.infocapagde.com/viewtopic.php?topic=1518&forum=21