Subversion Repositories eFlore/Applications.coel-consultation

Rev

Rev 25 | Rev 48 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 25 Rev 39
Line 9... Line 9...
9
 * @author		Jean-Pascal MILCENT <jpm@tela-botanica.org>
9
 * @author		Jean-Pascal MILCENT <jpm@tela-botanica.org>
10
 * @copyright	2010 Tela-Botanica
10
 * @copyright	2010 Tela-Botanica
11
 * @license		GPL-v3 et CECILL-v2
11
 * @license		GPL-v3 et CECILL-v2
12
 * @version		SVN:<svn_id>
12
 * @version		SVN:<svn_id>
13
 */
13
 */
14
 
-
 
15
// La fonction autoload du Framework de Tela Botanica doit être appelée avant tout autre chose dans l'application.
-
 
16
// Sinon, rien ne sera chargé.
-
 
17
require_once dirname(__FILE__).'/../framework/framework/autoload.inc.php';
-
 
18
 
-
 
19
// Autoload pour cette application
14
// Autoload pour cette application
20
function __autoload($nom_classe) {
15
function __autoload($nom_classe) {
21
	// Tableau des chemins à inclure pour trouver une classe relatif à ce fichier
16
	// Tableau des chemins à inclure pour trouver une classe relatif à ce fichier
22
	$chemins = array(
17
	$chemins = array(
23
		'bibliotheque'.DS.'noyau',	
18
		'bibliotheque'.DS.'noyau',	
Line 32... Line 27...
32
			return null;
27
			return null;
33
		}
28
		}
34
	}
29
	}
35
}
30
}
Line -... Line 31...
-
 
31
 
-
 
32
// Le fichier autoload.inc.php du Framework de Tela Botanica doit être appelée avant tout autre chose dans l'application.
-
 
33
// Sinon, rien ne sera chargé.
-
 
34
// Chemin du fichier chargeant le framework requis
-
 
35
$framework = dirname(__FILE__).'/framework.php';
-
 
36
if (!file_exists($framework)) {
-
 
37
	$e = "Veuillez paramêtrer l'emplacement et la version du Framework dans le fichier $framework";
-
 
38
	trigger_error($e, E_USER_ERROR);
-
 
39
} else {
-
 
40
	// Inclusion du Framework
36
 
41
	require_once $framework;
37
// Ajout d'information concernant cette application
42
	// Ajout d'information concernant cette application
38
Application::setChemin(__FILE__);
43
	Application::setChemin(__FILE__);// Obligatoire
39
Application::setInfo(Config::get('info'));
-
 
40
 
44
	Application::setInfo(Config::get('info'));
41
// Lancement de l'application
45
	// Lancement de l'application
-
 
46
	Collection::initialiser();
42
Collection::initialiser();
47
}
43
?>
48
?>