'; } diff --git a/choix_autre.php b/choix_autre.php index b44b546..978ba66 100644 --- a/choix_autre.php +++ b/choix_autre.php @@ -28,7 +28,7 @@ if (file_exists('bandeaux_local.php')) { } // Step 1/3 : error if $_SESSION from info_sondage are not valid -if (Utils::issetAndNoEmpty('titre', $_SESSION) === false || Utils::issetAndNoEmpty('nom', $_SESSION) === false || ((config_get('use_smtp')) ? Utils::issetAndNoEmpty('adresse', $_SESSION) === false : false)) { +if (Utils::issetAndNoEmpty('titre', $_SESSION) === false || Utils::issetAndNoEmpty('nom', $_SESSION) === false || (($config['use_smtp']) ? Utils::issetAndNoEmpty('adresse', $_SESSION) === false : false)) { Utils::print_header ( _("Error!") ); bandeau_titre(_("Error!")); @@ -67,7 +67,7 @@ if (Utils::issetAndNoEmpty('titre', $_SESSION) === false || Utils::issetAndNoEmp } } } - + //format du sondage AUTRE $_SESSION["formatsondage"]="A".$_SESSION["studsplus"]; @@ -91,15 +91,11 @@ if (Utils::issetAndNoEmpty('titre', $_SESSION) === false || Utils::issetAndNoEmp 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_get('default_poll_duration')); //60 secondes * 60 minutes * 24 heures * config + // 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= strftime($date_format['txt_full'], ($_SESSION["champdatefin"]));//textual date - $date_format = _("%A, den %e. %B %Y"); //locale replacement - if (strtoupper(substr(PHP_OS,0,3))=='WIN'){ //%e can't be used on Windows platform, use %#d instead - $date_format = preg_replace('#(?'; for ($i=0;$i
-

' . _("Your poll will be automatically removed after"). " " . config_get('default_poll_duration') . " " . _("days") . ' '.$removal_date.'.
' . _("You can fix another removal date for it.") .'

+

' . _("Your poll will be automatically removed after"). " " . $config['default_poll_duration'] . " " . _("days") . ': '.$removal_date.'.
' . _("You can fix another removal date for it.") .'

@@ -155,8 +151,12 @@ if (Utils::issetAndNoEmpty('titre', $_SESSION) === false || Utils::issetAndNoEmp
-

'. _("Once you have confirmed the creation of your poll, you will be automatically redirected on the administration page of your poll."). '

-

' . _("Then, you will receive quickly two emails: one contening the link of your poll for sending it to the voters, the other contening the link to the administration page of your poll.") .'

+

'. _("Once you have confirmed the creation of your poll, you will be automatically redirected on the administration page of your poll."). '

'; + if($config['use_smtp']==true){ + echo ' +

' . _("Then, you will receive quickly two emails: one contening the link of your poll for sending it to the voters, the other contening the link to the administration page of your poll.") .'

'; + } + echo '

@@ -181,9 +181,9 @@ if (Utils::issetAndNoEmpty('titre', $_SESSION) === false || Utils::issetAndNoEmp

'. _("To make a generic poll you need to propose at least two choices between differents subjects.") .'

'. _("You can add or remove additional choices with the buttons") .' '. _("Remove") .' '. _("Add") .'

'; - if(config_get('user_can_add_link_or_url')){ + if($config['user_can_add_img_or_link']){ echo '

'. _("It's possible to propose links or images by using "). ''. _("the Markdown syntax") .'.

'; - } + } echo '
'."\n"; // Fields choices : 5 by default @@ -195,11 +195,11 @@ if (Utils::issetAndNoEmpty('titre', $_SESSION) === false || Utils::issetAndNoEmp
'; - if(config_get('user_can_add_link_or_url')){ - echo ' '; - } + if($config['user_can_add_img_or_link']){ + echo ' '; + } echo ' -
+