Subversion Repositories Applications.framework

Rev

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

Rev 396 Rev 402
Line 10... Line 10...
10
 * @package	Framework
10
 * @package	Framework
11
 * @author		Jean-Pascal MILCENT <jpm@tela-botanica.org>
11
 * @author		Jean-Pascal MILCENT <jpm@tela-botanica.org>
12
 * @copyright	Copyright (c) 2009, Tela Botanica (accueil@tela-botanica.org)
12
 * @copyright	Copyright (c) 2009, Tela Botanica (accueil@tela-botanica.org)
13
 * @license	http://www.gnu.org/licenses/gpl.html Licence GNU-GPL-v3
13
 * @license	http://www.gnu.org/licenses/gpl.html Licence GNU-GPL-v3
14
 * @license	http://www.cecill.info/licences/Licence_CeCILL_V2-fr.txt Licence CECILL-v2
14
 * @license	http://www.cecill.info/licences/Licence_CeCILL_V2-fr.txt Licence CECILL-v2
15
 * @version	$Id: Config.php 396 2011-11-15 09:19:35Z jpm $
15
 * @version	$Id: Config.php 402 2011-12-29 10:44:54Z jpm $
16
 * @link		/doc/framework/
16
 * @link		/doc/framework/
17
 */
17
 */
Line 18... Line 18...
18
 
18
 
Line 43... Line 43...
43
 
43
 
44
		// Chargement des fichiers config.ini contextuels
44
		// Chargement des fichiers config.ini contextuels
45
		if (PHP_SAPI == 'cli') {// mode console
45
		if (PHP_SAPI == 'cli') {// mode console
46
			foreach ($_SERVER['argv'] as $cle => $valeur) {
46
			foreach ($_SERVER['argv'] as $cle => $valeur) {
47
				if ($valeur == '-contexte') {
47
				if ($valeur == '-contexte') {
48
					chargerFichierContexte($_SERVER['argv'][($cle+1)]);
48
					self::chargerFichierContexte($_SERVER['argv'][($cle+1)]);
49
					break;
49
					break;
50
				}
50
				}
51
			}
51
			}
52
		} else {// mode web
52
		} else {// mode web