Merge branch 'bugfix/config_encoding_on_install' into 'develop'
Config.php has bad encoding on install Fix #142 See merge request !114
This commit is contained in:
commit
02b94b44d3
@ -33,19 +33,6 @@ class Utils {
|
|||||||
return $scheme . '://' . preg_replace('#//+#', '/', $server_name);
|
return $scheme . '://' . preg_replace('#//+#', '/', $server_name);
|
||||||
}
|
}
|
||||||
|
|
||||||
public static function is_error($cerr) {
|
|
||||||
global $err;
|
|
||||||
if ($err == 0) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
return ($err & $cerr) != 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
public static function is_user() {
|
|
||||||
return (USE_REMOTE_USER && isset($_SERVER['REMOTE_USER'])) || isset($_SESSION['nom']);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param string $title
|
* @param string $title
|
||||||
* @deprecated
|
* @deprecated
|
||||||
@ -85,17 +72,6 @@ class Utils {
|
|||||||
<div class="container ombre">';
|
<div class="container ombre">';
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Check if an email address is valid using PHP filters
|
|
||||||
*
|
|
||||||
* @param string $email Email address to check
|
|
||||||
* @return bool True if valid. False if not valid.
|
|
||||||
* @deprecated
|
|
||||||
*/
|
|
||||||
public static function isValidEmail($email) {
|
|
||||||
return filter_var($email, FILTER_VALIDATE_EMAIL);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Function allowing to generate poll's url
|
* Function allowing to generate poll's url
|
||||||
* @param string $id The poll's id
|
* @param string $id The poll's id
|
||||||
|
@ -4,16 +4,16 @@
|
|||||||
* is not distributed with this file, you can obtain one at
|
* is not distributed with this file, you can obtain one at
|
||||||
* http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.txt
|
* http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.txt
|
||||||
*
|
*
|
||||||
* Authors of STUdS (initial project): Guilhem BORGHESI (borghesi@unistra.fr) and Raphaël DROZ
|
* Authors of STUdS (initial project): Guilhem BORGHESI (borghesi@unistra.fr) and Raphaël DROZ
|
||||||
* Authors of Framadate/OpenSondate: Framasoft (https://github.com/framasoft)
|
* Authors of Framadate/OpenSondate: Framasoft (https://github.com/framasoft)
|
||||||
*
|
*
|
||||||
* =============================
|
* =============================
|
||||||
*
|
*
|
||||||
* Ce logiciel est régi par la licence CeCILL-B. Si une copie de cette licence
|
* Ce logiciel est régi par la licence CeCILL-B. Si une copie de cette licence
|
||||||
* ne se trouve pas avec ce fichier vous pouvez l'obtenir sur
|
* ne se trouve pas avec ce fichier vous pouvez l'obtenir sur
|
||||||
* http://www.cecill.info/licences/Licence_CeCILL-B_V1-fr.txt
|
* http://www.cecill.info/licences/Licence_CeCILL-B_V1-fr.txt
|
||||||
*
|
*
|
||||||
* Auteurs de STUdS (projet initial) : Guilhem BORGHESI (borghesi@unistra.fr) et Raphaël DROZ
|
* Auteurs de STUdS (projet initial) : Guilhem BORGHESI (borghesi@unistra.fr) et Raphaël DROZ
|
||||||
* Auteurs de Framadate/OpenSondage : Framasoft (https://github.com/framasoft)
|
* Auteurs de Framadate/OpenSondage : Framasoft (https://github.com/framasoft)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@ -51,9 +51,9 @@ const DEFAULT_LANGUAGE = '{$defaultLanguage}';
|
|||||||
|
|
||||||
// List of supported languages, fake constant as arrays can be used as constants only in PHP >=5.6
|
// List of supported languages, fake constant as arrays can be used as constants only in PHP >=5.6
|
||||||
$ALLOWED_LANGUAGES = [
|
$ALLOWED_LANGUAGES = [
|
||||||
'fr' => 'Français',
|
'fr' => 'Français',
|
||||||
'en' => 'English',
|
'en' => 'English',
|
||||||
'es' => 'Español',
|
'es' => 'Español',
|
||||||
'de' => 'Deutsch',
|
'de' => 'Deutsch',
|
||||||
'it' => 'Italiano',
|
'it' => 'Italiano',
|
||||||
];
|
];
|
||||||
|
Loading…
Reference in New Issue
Block a user