function cleanCategoriesPath() { global $msg, $charset, $PMBusername; if (SESSrights & ADMINISTRATION_AUTH) { // Pour tous les thésaurus, on parcours les childs $list_thesaurus = thesaurus::getThesaurusList(); foreach ($list_thesaurus as $id_thesaurus => $libelle_thesaurus) { $thes = new thesaurus($id_thesaurus); $noeud_rac = $thes->num_noeud_racine; $r = noeuds::listChilds($noeud_rac, 0); while ($row = mysql_fetch_object($r)) { noeuds::process_categ_path($row->id_noeud); } } if ($thesaurus_auto_postage_search) { categories::process_categ_index(); } $result .= htmlentities($msg["clean_categories_path_end"], ENT_QUOTES, $charset); } else { $result .= sprintf($msg["planificateur_rights_bad_user_rights"], $PMBusername); } return $result; }
// } // $req="update noeuds set path='$path' where id_noeud=$id_noeud"; // pmb_mysql_query($req,$dbh); //} //function process_categ_index() { // global $dbh; // // $q = "select * from categories "; // $r = pmb_mysql_query($q, $dbh); // while ($obj = pmb_mysql_fetch_object($r)) { // $thes = new categories($obj->num_noeud,$obj->langue); // $thes->update_index_path_word(); // } //} // Pour tous les thésaurus, on parcours les childs $list_thesaurus = thesaurus::getThesaurusList(); foreach ($list_thesaurus as $id_thesaurus => $libelle_thesaurus) { $thes = new thesaurus($id_thesaurus); $noeud_rac = $thes->num_noeud_racine; $r = noeuds::listChilds($noeud_rac, 0); while ($row = pmb_mysql_fetch_object($r)) { noeuds::process_categ_path($row->id_noeud); } } if ($thesaurus_auto_postage_search) { categories::process_categ_index(); } $spec = $spec - CLEAN_CATEGORIES_PATH; $v_state = urldecode($v_state); $v_state .= "<br /><img src=../../images/d.gif hspace=3>" . htmlentities($msg["clean_categories_path_end"], ENT_QUOTES, $charset) . "."; print "<form class='form-{$current_module}' name='process_state' action='./clean.php' method='post'>\n\t\t\t<input type='hidden' name='v_state' value=\"" . urlencode($v_state) . "\">\n\t\t\t<input type='hidden' name='spec' value=\"{$spec}\">\n\t\t</form>\n\t\t<script type=\"text/javascript\"><!--\n\t\t\tdocument.forms['process_state'].submit();\n\t\t\t-->\n\t\t</script>";