' . _("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; // Expiration date → the configuration value is used if not filled or in bad format $_SESSION["champdatefin"]= time()+ (86400 * config_get('default_poll_duration')); //60 secondes * 60 minutes * 24 heures * config 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)")); $removal_date=strftime(_("%A, den %e. %B %Y"), time()+15552000); // Sumary $summary = '