' . _("Back to the homepage of ") . ' ' . NOMAPPLICATION . '
'."\n"; bandeau_pied(); } else { // Step 4 : Data prepare before insert in DB if (isset($_POST["confirmecreation"])) { //recuperation des données de champs textes $temp_results = ''; if (isset($_SESSION['choices'])) { for ($i = 0; $i < count($_SESSION['choices']); $i++) { if ($_SESSION['choices'][$i]!="") { $temp_results.=','.str_replace(",", " ", htmlentities(html_entity_decode($_SESSION['choices'][$i], ENT_QUOTES, 'UTF-8'), ENT_QUOTES, 'UTF-8')); } } } $temp_results=substr($temp_results,1); $_SESSION["toutchoix"]=$temp_results; if (Utils::issetAndNoEmpty('champdatefin')) { $registredate = explode("/",$_POST["champdatefin"]); if (is_array($registredate) == true && count($registredate) == 3) { $time = mktime(0,0,0,$registredate[1],$registredate[0],$registredate[2]); if ($time > time() + (24*60*60)) { $_SESSION["champdatefin"]=$time; } } } //format du sondage AUTRE $_SESSION["formatsondage"]="A".$_SESSION["studsplus"]; ajouter_sondage(); } // recuperation des sujets pour sondage AUTRE if (isset($_POST['choices'])) { $k = 0; for ($i = 0; $i < count($_POST['choices']); $i++) { if (Utils::issetAndNoEmpty($i, $_POST['choices'])) { $_SESSION['choices'][$k]=htmlentities(html_entity_decode($_POST['choices'][$i], ENT_QUOTES, 'UTF-8'), ENT_QUOTES, 'UTF-8'); $k++; } } } // Step 3/3 : Confirm poll creation and choose a removal date if (isset($_POST["fin_sondage_autre"])) { Utils::print_header ( _("Removal date and confirmation (3 on 3)") ); bandeau_titre(_("Removal date and confirmation (3 on 3)")); // Expiration date is initialised with config parameter. Value will be modified in step 4 if user has defined an other date $_SESSION["champdatefin"]= time()+ (86400 * $config['default_poll_duration']); //60 sec * 60 min * 24 hours * config $removal_date= utf8_encode(strftime($date_format['txt_full'], ($_SESSION["champdatefin"])));//textual date // Summary $summary = '