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

"; $NoIndex = 1; $query = mysql_query("select id_article from cms_articles order by id_article LIMIT $start, $lot"); if(mysql_num_rows($query)) { // définition de l'état de la jauge $state = floor(($start+$start_2) / ($count / $jauge_size)); if(($start+$start_2)>$count){ $state = floor(($count/2)/($count/$jauge_size)); } $state .= "px"; // mise à jour de l'affichage de la jauge print "
"; print "
"; // calcul pourcentage avancement $percent = floor((($start+$start_2)/$count)*100); if($percent>100) $percent = 50; // affichage du % d'avancement et de l'état print "
$percent%
"; while($row = mysql_fetch_assoc($query)) { // permet de charger la bonne langue, mot vide... $article = new cms_article($row['id_article']); $info=$article->maj_indexation(); } mysql_free_result($query); $next = $start + $lot; print "
"; } else { $query = mysql_query("select id_section from cms_sections order by id_section LIMIT $start_2, $lot"); if(mysql_num_rows($query)) { // définition de l'état de la jauge $state = floor(($start+$start_2) / ($count / $jauge_size)); if(($start+$start_2)>$count){ $state = floor(($count/2)/($count/$jauge_size)); } $state .= "px"; // mise à jour de l'affichage de la jauge print "
"; print "
"; // calcul pourcentage avancement $percent = floor((($start+$start_2)/$count)*100); if($percent>100) $percent = 50; // affichage du % d'avancement et de l'état print "
$percent%
"; while($row = mysql_fetch_assoc($query)) { // permet de charger la bonne langue, mot vide... $section = new cms_section($row['id_section']); $info=$section->maj_indexation(); } mysql_free_result($query); $next = $start + $lot; print "
"; }else { $spec = $spec - INDEX_CMS; $not = mysql_query("SELECT 1 FROM cms_editorial_words_global_index group by num_obj,type", $dbh); $compte = mysql_num_rows($not); $v_state .= "
".htmlentities($msg["nettoyage_reindex_cms"], ENT_QUOTES, $charset)." :"; $v_state .= $compte." ".htmlentities($msg["nettoyage_res_reindex_cms"], ENT_QUOTES, $charset); print "
"; mysql_query("ALTER TABLE cms_editorial_words_global_index ENABLE KEYS",$dbh); mysql_query("ALTER TABLE cms_editorial_fields_global_index ENABLE KEYS",$dbh); } }