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

"; $NoIndex = 1; $query = pmb_mysql_query("select id_article from cms_articles order by id_article LIMIT $start, $lot"); if(pmb_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 = pmb_mysql_fetch_assoc($query)) { // permet de charger la bonne langue, mot vide... $article = new cms_article($row['id_article']); $info=$article->maj_indexation(); } pmb_mysql_free_result($query); $next = $start + $lot; print "
"; } else { $query = pmb_mysql_query("select id_section from cms_sections order by id_section LIMIT $start_2, $lot"); if(pmb_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 = pmb_mysql_fetch_assoc($query)) { // permet de charger la bonne langue, mot vide... $section = new cms_section($row['id_section']); $info=$section->maj_indexation(); } pmb_mysql_free_result($query); $next = $start_2 + $lot; print "
"; }else { $spec = $spec - INDEX_CMS; $not = pmb_mysql_query("SELECT 1 FROM cms_editorial_words_global_index group by num_obj,type", $dbh); $compte = pmb_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 netbase::get_process_state_form($v_state, $spec); pmb_mysql_query("ALTER TABLE cms_editorial_words_global_index ENABLE KEYS",$dbh); pmb_mysql_query("ALTER TABLE cms_editorial_fields_global_index ENABLE KEYS",$dbh); } }