".htmlentities($msg["nettoyage_reindex_faq"], ENT_QUOTES, $charset)."
";
$NoIndex = 1;
$query = pmb_mysql_query("select id_faq_question from faq_questions order by id_faq_question LIMIT $start, $lot");
if(pmb_mysql_num_rows($query)) {
print netbase::get_display_progress($start, $count);
$indexation = new indexation($include_path."/indexation/faq/question.xml", "faq_questions");
$indexation->set_deleted_index(true);
while($row = pmb_mysql_fetch_assoc($query)) {
// permet de charger la bonne langue, mot vide...
$info=$indexation->maj($row['id_faq_question']);
}
pmb_mysql_free_result($query);
$next = $start + $lot;
print netbase::get_current_state_form($v_state, $spec, '', $next, $count);
} else {
$spec = $spec - INDEX_FAQ;
$not = pmb_mysql_query("SELECT count(distinct id_faq_question) FROM faq_questions_words_global_index", $dbh);
$compte = pmb_mysql_result($not, 0, 0);
$v_state .= "
".htmlentities($msg["nettoyage_reindex_faq"], ENT_QUOTES, $charset)." :";
$v_state .= $compte." ".htmlentities($msg["nettoyage_res_reindex_faq"], ENT_QUOTES, $charset);
print netbase::get_process_state_form($v_state, $spec);
pmb_mysql_query("ALTER TABLE faq_questions_words_global_index ENABLE KEYS",$dbh);
pmb_mysql_query("ALTER TABLE faq_questions_fields_global_index ENABLE KEYS",$dbh);
}