Subversion Repositories Applications.framework

Rev

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

Rev 120 Rev 128
Line 1... Line 1...
1
<?php
1
<?php
2
// declare(encoding='UTF-8');
2
// declare(encoding='UTF-8');
3
/**
3
/**
-
 
4
 * Ceci est un exemple d'application qui permet d'illustrer  le fonctionnement du framework, il montre comment
-
 
5
 * une application peut être dans papyrus, ou bien utilisée en stand alone.
-
 
6
 *
-
 
7
 * PHP version 5
-
 
8
 *
4
* @category PHP
9
 * @category PHP
5
* @package Framework
10
 * @package Framework
6
* @author Aurelien PERONNET <aurelien@tela-botanica.org>
11
 * @author Aurelien PERONNET <aurelien@tela-botanica.org>
7
* @copyright Tela-Botanica 2009
12
 * @copyright Tela-Botanica 2009
-
 
13
 * @license   http://www.cecill.info/licences/Licence_CeCILL_V2-fr.txt Licence CECILL
-
 
14
 * @license   http://www.gnu.org/licenses/gpl.html Licence GNU-GPL
-
 
15
 * @version   SVN: $$Id$$
8
* @link /doc/framework/
16
 * @link /doc/framework/
9
* Ceci est un exemple d'application qui permet d'illustrer  le fonctionnement du framework, il montre comment
-
 
10
* une application peut être dans papyrus, ou bien utilisée en stand alone.
-
 
11
*/
17
 */
Line 12... Line 18...
12
 
18
 
13
// La fonction autolad doit être appelée avant tout autre chose dans l'application.
19
// La fonction autolad doit être appelée avant tout autre chose dans l'application.
14
// Sinon, rien ne sera chargé.
20
// Sinon, rien ne sera chargé.
15
require_once dirname(__FILE__).'/../framework/autoload.inc.php';
21
require_once dirname(__FILE__).'/../framework/autoload.inc.php';
Line 20... Line 26...
20
 */
26
 */
21
function afficherContenuCorps() {
27
function afficherContenuCorps() {
22
	// Si l'utilisateur est authentifié
28
	// Si l'utilisateur est authentifié
23
	if (Config::get('identification')) {
29
	if (Config::get('identification')) {
24
		// on renvoie la vue principale de l'application
30
		// on renvoie la vue principale de l'application
25
		$methode = '' ;
31
		$methode = '';
Line 26... Line 32...
26
 
32
 
27
		if (isset($_GET['m'])) {
33
		if (isset($_GET['m'])) {
28
			$methode = $_GET['m'];
34
			$methode = $_GET['m'];
29
		}
35
		}