Subversion Repositories eFlore/Applications.del

Rev

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

Rev 1621 Rev 1630
Line 45... Line 45...
45
		setlocale(LC_ALL, self::$config['parametres']['locale']);
45
		setlocale(LC_ALL, self::$config['parametres']['locale']);
46
		date_default_timezone_set(self::$config['parametres']['fuseauHoraire']);
46
		date_default_timezone_set(self::$config['parametres']['fuseauHoraire']);
Line 47... Line 47...
47
		
47
		
48
		// Gestion des erreurs
48
		// Gestion des erreurs
49
		error_reporting(self::$config['parametres']['erreurNiveau']);
49
		error_reporting(self::$config['parametres']['erreurNiveau']);
50
		
50
 
51
		if (isset($_SERVER['REQUEST_URI']) && isset($_SERVER['QUERY_STRING'])) {
51
		if (isset($_SERVER['REQUEST_URI']) && isset($_SERVER['QUERY_STRING'])) {
52
			$url_morceaux = $this->parserUrl();
52
			$url_morceaux = $this->parserUrl();
53
			if (isset($url_morceaux[0])) {
53
			if (isset($url_morceaux[0])) {
-
 
54
				$this->widget = $url_morceaux[0];
-
 
55
				// hack car chez moi (mathias) je me retrouve avec $url_morceaux[0] = "delnomduwidget", pourtant j'ai le même .htaccess...
-
 
56
				if (strpos($this->widget, ":") !== false) {
-
 
57
					$this->widget = substr($this->widget, strpos($this->widget, ":") + 1);
54
				$this->widget = $url_morceaux[0];
58
				}
55
				self::$config['chemins']['widgetCourantDossier'] = self::$config['chemins']['widgetsDossier'].strtolower($this->widget).DIRECTORY_SEPARATOR;
59
				self::$config['chemins']['widgetCourantDossier'] = self::$config['chemins']['widgetsDossier'].strtolower($this->widget).DIRECTORY_SEPARATOR;
56
				$this->chargerWidgetConfig();
60
				$this->chargerWidgetConfig();
57
			}
61
			}
58
			// Chargement des chemins pour l'autoload
62
			// Chargement des chemins pour l'autoload