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

"; $NoIndex = 1; $query = mysql_query("select notice_id from notices order by notice_id LIMIT $start, $lot"); if(mysql_num_rows($query)) { // définition de l'état de la jauge $state = floor($start / ($count / $jauge_size)); $state .= "px"; // mise à jour de l'affichage de la jauge print "
"; print "
"; // calcul pourcentage avancement $percent = floor(($start/$count)*100); // affichage du % d'avancement et de l'état print "
$percent%
"; while($mesNotices = mysql_fetch_assoc($query)) { // permet de charger la bonne langue, mot vide... $info=notice::indexation_prepare($mesNotices['notice_id']); // Mise à jour de la table "notices_global_index" notice::majNoticesGlobalIndex($mesNotices['notice_id']); // Mise à jour de la table "notices_mots_global_index" notice::majNoticesMotsGlobalIndex($mesNotices['notice_id']); // restaure l'environnement de langue notice::indexation_restaure($info); } mysql_free_result($query); $next = $start + $lot; print "
"; } else { $spec = $spec - INDEX_GLOBAL; $not = mysql_query("SELECT count(1) FROM notices_global_index", $dbh); $compte = 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 "
"; mysql_query("ALTER TABLE notices_global_index ENABLE KEYS",$dbh); mysql_query("ALTER TABLE notices_mots_global_index ENABLE KEYS",$dbh); mysql_query("ALTER TABLE notices_fields_global_index ENABLE KEYS",$dbh); }