GET as $key => $val){
$GLOBALS[$key] = $val;
}
foreach($tab->POST as $key => $val){
$GLOBALS[$key] = $val;
}
//On met à jour le graphe rdf avant de supprimer
if($pmb_synchro_rdf){
$arrayIdImpactes=array();
$synchro_rdf=new synchro_rdf();
$noeud=new noeuds($id);
$thes=new thesaurus($noeud->num_thesaurus);
//parent
if($noeud->num_parent!=$thes->num_noeud_racine){
$arrayIdImpactes[]=$noeud->num_parent;
}
//renvoi_voir
if($noeud->num_renvoi_voir){
$arrayIdImpactes[]=$noeud->num_renvoi_voir;
}
//on supprime le rdf
if(count($arrayIdImpactes)){
foreach($arrayIdImpactes as $idNoeud){
$synchro_rdf->delConcept($idNoeud);
}
}
$synchro_rdf->delConcept($id);
}
$requete="DELETE FROM notices_categories WHERE num_noeud=".$id;
mysql_query($requete, $dbh);
noeuds::delete($id);
//On remet à jour les noeuds impactes
if($pmb_synchro_rdf){
if(count($arrayIdImpactes)){
foreach($arrayIdImpactes as $idNoeud){
$synchro_rdf->storeConcept($idNoeud);
}
}
}
} else {
$requete="SELECT notcateg_notice FROM notices_categories WHERE num_noeud=".$id." ORDER BY ordre_categorie";
$result_cat=mysql_query($requete, $dbh);
if (mysql_num_rows($result_cat)) {
//affichage de l'erreur, en passant tous les param postés (serialise) pour l'éventuel forcage
$tab->POST = $_POST;
$tab->GET = $_GET;
$ret_url= urlencode(serialize($tab));
require_once("$class_path/mono_display.class.php");
require_once("$class_path/serial_display.class.php");
print "