Subversion Repositories Applications.framework

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
228 jpm 1
<?php
2
// Encodage : UTF-8
3
// +-------------------------------------------------------------------------------------------------------------------+
4
/**
5
* Serveur
6
*
7
* Description : initialise le chargement et l'exécution des services web.
8
*
9
//Auteur original :
10
* @author		Jean-Pascal MILCENT <jpm@tela-botanica.org>
11
* @copyright	Tela-Botanica 1999-2008
12
* @licence		GPL v3 & CeCILL v2
13
* @version		$Id$
14
*/
15
// +-------------------------------------------------------------------------------------------------------------------+
16
 
17
// Le fichier autoload.inc.php du Framework de Tela Botanica doit être appelée avant tout autre chose dans l'application.
18
// Sinon, rien ne sera chargé.
19
// Chemin du fichier chargeant le framework requis
20
$framework = dirname(__FILE__).DIRECTORY_SEPARATOR.'framework.php';
21
if (!file_exists($framework)) {
22
	$e = "Veuillez paramétrer l'emplacement et la version du Framework dans le fichier $framework";
23
	trigger_error($e, E_USER_ERROR);
24
} else {
25
	// Inclusion du Framework
26
	require_once $framework;
27
 
28
	// Ajout d'information concernant cette application
29
	Framework::setCheminAppli(__FILE__);// Obligatoire
30
	Framework::setInfoAppli(Config::get('info'));
31
 
32
	// Initialisation et lancement du serveur
33
	$Serveur = new Serveur();
34
	$Serveur->executer();
35
}
36
?>