Subversion Repositories eFlore/Applications.cel

Rev

Rev 2021 | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2021 Rev 2415
1
<?php
1
<?php
2
// Encodage : UTF-8
2
// Encodage : UTF-8
3
// +-------------------------------------------------------------------------------------------------------------------+
3
// +-------------------------------------------------------------------------------------------------------------------+
4
/**
4
/**
5
* Initialise le chargement et l'exécution des scripts
5
* Initialise le chargement et l'exécution des scripts
6
*
6
*
7
* Lancer ce fichier en ligne de commande avec :
7
* Lancer ce fichier en ligne de commande avec :
8
* <code>/opt/lampp/bin/php cli.php mon_script -a test</code>
8
* <code>/opt/lampp/bin/php cli.php mon_script -a test</code>
9
*
9
*
10
//Auteur original :
10
 * @category   CEL
-
 
11
 * @package    Scripts
-
 
12
 * @author     Mathias CHOUET <mathias@tela-botanica.org>
11
* @author       Jean-Pascal MILCENT <jpm@tela-botanica.org>
13
 * @author     Jean-Pascal MILCENT <jpm@tela-botanica.org>
12
* @author       Delphine CAUQUIL <delphine@tela-botanica.org>
14
 * @author     Aurelien PERONNET <aurelien@tela-botanica.org>
13
* @copyright    Tela-Botanica 1999-2008
15
 * @license    GPL v3 <http://www.gnu.org/licenses/gpl.txt>
14
* @licence      GPL v3 & CeCILL v2
16
 * @license    CECILL v2 <http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt>
15
* @version      $Id$
17
 * @copyright  1999-2014 Tela Botanica <accueil@tela-botanica.org>
16
*/
18
 */
17
// +-------------------------------------------------------------------------------------------------------------------+
-
 
18
 
19
 
19
// Le fichier Framework.php du Framework de Tela Botanica doit être appelée avant tout autre chose dans l'application.
20
// Le fichier Framework.php du Framework de Tela Botanica doit être appelée avant tout autre chose dans l'application.
20
// Sinon, rien ne sera chargé.
21
// Sinon, rien ne sera chargé.
21
// Chemin du fichier chargeant le framework requis
22
// Chemin du fichier chargeant le framework requis
22
$framework = dirname(__FILE__).DIRECTORY_SEPARATOR.'framework.php';
23
$framework = dirname(__FILE__).DIRECTORY_SEPARATOR.'framework.php';
23
if (!file_exists($framework)) {
24
if (!file_exists($framework)) {
24
	$e = "Veuillez paramétrer l'emplacement et la version du Framework dans le fichier $framework";
25
	$e = "Veuillez paramétrer l'emplacement et la version du Framework dans le fichier $framework";
25
	trigger_error($e, E_USER_ERROR);
26
	trigger_error($e, E_USER_ERROR);
26
} else {
27
} else {
27
	// Inclusion du Framework
28
	// Inclusion du Framework
28
	require_once $framework;
29
	require_once $framework;
29
 
30
 
30
	// Ajout d'information concernant cette application
31
	// Ajout d'information concernant cette application
31
	Framework::setCheminAppli(__FILE__);// Obligatoire
32
	Framework::setCheminAppli(__FILE__);// Obligatoire
32
	Framework::setInfoAppli(Config::get('info'));
33
	Framework::setInfoAppli(Config::get('info'));
33
 
34
 
34
	// Initialisation et lancement du script appelé en ligne de commande
35
	// Initialisation et lancement du script appelé en ligne de commande
35
	Cli::executer();
36
	Cli::executer();
36
}
-
 
37
?>
-
 
38
37
}
-
 
38
39
39