Subversion Repositories eFlore/Projets.eflore-projets

Rev

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

Rev 948 Rev 982
Line 359... Line 359...
359
		return array_intersect_key(self::$allow_champs, array_flip($syno));
359
		return array_intersect_key(self::$allow_champs, array_flip($syno));
360
	}
360
	}
Line 361... Line 361...
361
 
361
 
362
	// request handler
362
	// request handler
-
 
363
	static function requestParse(&$ressource, &$params) {
363
	static function requestParse(&$ressource, &$params) {
364
		if (isset($_SERVER['REDIRECT_URL'])) {
-
 
365
            $uri = explode('/', $_SERVER['REDIRECT_URL']);
-
 
366
        } else {
-
 
367
            $uri = explode('/', $_SERVER['REQUEST_URI']);
364
		$uri = explode('/', $_SERVER['REDIRECT_URL']);
368
        }
365
		if(!empty($_SERVER['QUERY_STRING']))
369
		if(!empty($_SERVER['QUERY_STRING']))
366
			parse_str($_SERVER['REDIRECT_QUERY_STRING'], $params);
370
			parse_str($_SERVER['REDIRECT_QUERY_STRING'], $params);
367
		$ressource = array_slice($uri, array_search('textes', $uri) + 1, 3);
371
		$ressource = array_slice($uri, array_search('textes', $uri) + 1, 3);