"", "message" => "Rameau sera intégré en catégorie au premier niveau : ".htmlentities($champ_rameau,ENT_QUOTES,$charset) ); } function traite_categories_from_form() { global $rameau ; global $thesaurus_defaut; global $thes; $categories=array(); $categ_first=explode(" @@@ ",stripslashes($rameau)); for ($i=0; $inum_noeud_racine, $categ_first[$i], " ".addslashes(strip_empty_words($categ_first[$i]))." "); } else { $categories[]["categ_id"] = $resultat; } } } return $categories ; } function create_categ_z3950($num_parent, $libelle, $index) { global $thes; $n = new noeuds(); $n->num_thesaurus = $thes->id_thesaurus; $n->num_parent = $num_parent; $n->save(); $c = new categories($n->id_noeud, 'fr_FR'); $c->libelle_categorie = $libelle; $c->index_categorie = $index; $c->save(); return $n->id_noeud; }