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

"; $query = pmb_mysql_query("select id_word,word from words LIMIT $start, $lot"); if(pmb_mysql_num_rows($query)) { print netbase::get_display_progress($start, $count); while($row = pmb_mysql_fetch_object($query)){ $dmeta = new DoubleMetaPhone($row->word); $stemming = new stemming($row->word); $element_to_update = ""; if($dmeta->primary || $dmeta->secondary){ $element_to_update.=" double_metaphone = '".$dmeta->primary." ".$dmeta->secondary."'"; } if($element_to_update) $element_to_update.=","; $element_to_update.="stem = '".$stemming->stem."'"; if ($element_to_update){ pmb_mysql_query("update words set ".$element_to_update." where id_word = '".$row->id_word."'"); } } pmb_mysql_free_result($query); $next = $start + $lot; print netbase::get_current_state_form($v_state, $spec, '', $next, $count); } else { $spec = $spec - GEN_PHONETIQUE; $v_state .= "
"; $v_state .= $count." ".htmlentities($msg["gen_phonetique_end"], ENT_QUOTES, $charset); $opt = pmb_mysql_query('OPTIMIZE TABLE words'); // mise à jour de l'affichage de la jauge print netbase::get_display_final_progress(); print netbase::get_process_state_form($v_state, $spec); }