".htmlentities($msg["nettoyage_reindex_global"], ENT_QUOTES, $charset)."

"; $NoIndex = 1; $query = pmb_mysql_query("select notice_id from notices order by notice_id LIMIT $start, $lot"); if(pmb_mysql_num_rows($query)) { print netbase::get_display_progress($start, $count); notice::set_deleted_index(true); while($mesNotices = pmb_mysql_fetch_assoc($query)) { // Mise à jour de tous les index de la notice $info=notice::indexation_prepare($mesNotices['notice_id']); notice::majNotices($mesNotices['notice_id']); notice::majNoticesGlobalIndex($mesNotices['notice_id']); notice::majNoticesMotsGlobalIndex($mesNotices['notice_id']); notice::indexation_restaure($info); } pmb_mysql_free_result($query); $next = $start + $lot; print netbase::get_current_state_form($v_state, $spec, '', $next, $count); } else { $spec = $spec - INDEX_GLOBAL; $not = pmb_mysql_query("SELECT count(1) FROM notices_global_index", $dbh); $compte = pmb_mysql_result($not, 0, 0); $v_state .= "
".htmlentities($msg["nettoyage_reindex_global"], ENT_QUOTES, $charset)." :"; $v_state .= $compte." ".htmlentities($msg["nettoyage_res_reindex_global"], ENT_QUOTES, $charset); print netbase::get_process_state_form($v_state, $spec); pmb_mysql_query("ALTER TABLE notices_global_index ENABLE KEYS",$dbh); pmb_mysql_query("ALTER TABLE notices_mots_global_index ENABLE KEYS",$dbh); pmb_mysql_query("ALTER TABLE notices_fields_global_index ENABLE KEYS",$dbh); }