'Presentation[lang=fr]Présentation[/lang][lang=es]Presentación[/lang][lang=lv]Prezentacija[/lang]', 'content' => $contest['presentation'], ); } if (!empty($contest['rules'])) { $new_description[] = array( 'name' => 'Rules[lang=fr]Règles[/lang][lang=es]Restricciones[/lang][lang=lv]Noteikumi[/lang]', 'content' => $contest['rules'], ); } if (!empty($contest['prices'])) { $new_description[] = array( 'name' => 'Prices[lang=fr]Prix[/lang][lang=es]Precios[/lang][lang=lv]Cenas[/lang]', 'content' => $contest['prices'], ); } if (!empty($contest['final'])) { $new_description[] = array( 'name' => 'Conclusion[lang=fr]Conclusion[/lang][lang=es]Conclusión[/lang][lang=lv]Beigsana[/lang]', 'content' => $contest['final'], ); } $new_description = base64_encode(serialize($new_description)); pwg_query("UPDATE `" . $prefixeTable . "contests` SET description = '". $new_description ."' WHERE id = ". $contest['id'] .";" ); } pwg_query("ALTER TABLE `" . $prefixeTable . "contests` DROP `presentation`, DROP `rules`, DROP `prices`, DROP `final`;" ); } // compatibilité avec les versions < 1.3.b (ajout d'un paramètre de config) $conf['ContestResults'] = unserialize($conf['ContestResults']); if (!isset($conf['ContestResults']['truncate_summary'])) { $conf['ContestResults']['truncate_summary'] = 350; $conf['ContestResults']['menubar_bloc']['display_days'] = true; pwg_query("UPDATE " . CONFIG_TABLE . " SET value='" . serialize($conf['ContestResults']) . "' WHERE param = 'ContestResults';"); } ?>