Subversion Repositories eFlore/Applications.coel

Rev

Rev 1943 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1943 Rev 1948
Line 32... Line 32...
32
	 * @param str iniFile Configuration file to use
32
	 * @param str iniFile Configuration file to use
33
	 */
33
	 */
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);
37
		// Paramêtres de config dynamiques
37
		// Paramètres de config dynamiques
-
 
38
		$protocole = (isset($_SERVER['HTTPS']) && ($_SERVER['HTTPS'] == 'on')) ? 'https://' : 'http://';
38
		self::$config['chemins']['baseURLAbsoluDyn'] = 'http://'.$_SERVER['SERVER_NAME'].self::$config['chemins']['baseURL'].'%s';
39
		self::$config['chemins']['baseURLAbsoluDyn'] = $protocole . $_SERVER['SERVER_NAME'].self::$config['chemins']['baseURL'].'%s';
Line 39... Line 40...
39
		
40
		
40
		// Gestion de la mémoire maximum allouée aux services
41
		// Gestion de la mémoire maximum allouée aux services
Line 41... Line 42...
41
		ini_set('memory_limit', self::$config['parametres']['limiteMemoire']);
42
		ini_set('memory_limit', self::$config['parametres']['limiteMemoire']);