Subversion Repositories eFlore/Applications.cel

Rev

Rev 2995 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2995 Rev 3003
Line 34... Line 34...
34
	public function __construct($fichier_ini = 'widget.ini.php') {
34
	public function __construct($fichier_ini = 'widget.ini.php') {
35
		// Chargement de la configuration
35
		// Chargement de la configuration
36
		self::$config = parse_ini_file($fichier_ini, TRUE);
36
		self::$config = parse_ini_file($fichier_ini, TRUE);
Line 37... Line 37...
37
 
37
 
38
		// ParamĂȘtres de config dynamiques
38
		// ParamĂȘtres de config dynamiques
39
		$protocole = $_SERVER['HTTPS'] == 'on' ? 'https://' : 'http://';
39
		$protocole = (isset($_SERVER['HTTPS']) && ($_SERVER['HTTPS'] == 'on')) ? 'https://' : 'http://';
Line 40... Line 40...
40
		self::$config['chemins']['baseURLAbsoluDyn'] = $protocole . $_SERVER['SERVER_NAME'].self::$config['chemins']['baseURL'].'%s';
40
		self::$config['chemins']['baseURLAbsoluDyn'] = $protocole . $_SERVER['SERVER_NAME'].self::$config['chemins']['baseURL'].'%s';
41
 
41