diff --git a/app/classes/Framadate/Utils.php b/app/classes/Framadate/Utils.php index 1cad76f..0d2788b 100644 --- a/app/classes/Framadate/Utils.php +++ b/app/classes/Framadate/Utils.php @@ -19,8 +19,11 @@ namespace Framadate; class Utils { + /** + * @return string Server name + */ public static function get_server_name() { - $scheme = (isset($_SERVER["HTTPS"]) && $_SERVER["HTTPS"] == 'on') ? 'https' : 'http'; + $scheme = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on') ? 'https' : 'http'; $port = in_array($_SERVER['SERVER_PORT'], [80, 443]) ? '' : ':' . $_SERVER['SERVER_PORT']; $dirname = dirname($_SERVER['SCRIPT_NAME']); $dirname = $dirname === '\\' ? '/' : $dirname . '/'; @@ -52,20 +55,16 @@ class Utils { echo ' - '; if (!empty($title)) { - echo '' . stripslashes($title) . ' - ' . NOMAPPLICATION . ''; - } else { - echo '' . NOMAPPLICATION . ''; } echo ' - - - - - + + + + + @@ -79,7 +78,6 @@ class Utils {
'; - } /** @@ -95,7 +93,6 @@ class Utils { /** * Fonction permettant de générer les URL pour les sondage - * * @param string $id L'identifiant du sondage * @param bool $admin True pour générer une URL pour l'administration d'un sondage, False pour un URL publique * @return string L'url pour le sondage