ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/phpphylotree/index.php
Revision: 1.5
Committed: Sun Feb 12 11:32:19 2006 UTC (10 years, 9 months ago) by tryphon
Branch: MAIN
CVS Tags: HEAD
Changes since 1.4: +12 -12 lines
Log Message:
PHP5 compliant

Line File contents
1 <?php
2
3
4 /***************************************************************************
5 index.php - point d'entrée dans phpphylotree
6 -------------------
7 begin : 15/8/2002
8 copyright : (C) 2002 by Olivier Langella
9 email : Olivier.Langella@pge.cnrs-gif.fr
10 ***************************************************************************/
11
12 /***************************************************************************
13 * *
14 * This program is free software; you can redistribute it and/or modify *
15 * it under the terms of the GNU General Public License as published by *
16 * the Free Software Foundation; either version 2 of the License, or *
17 * (at your option) any later version. *
18 * *
19 ***************************************************************************/
20
21 //chargement des fonctions communes
22 //echo "coucou déconnexion ".$action."<br/>";
23
24 session_start();
25 define('APP_ROOT_RELATIVE_PATH', './');
26 define('HOMEPAGE', APP_ROOT_RELATIVE_PATH.'index.php');
27
28 require_once APP_ROOT_RELATIVE_PATH.'libsvgtree/constantes.inc';
29 require_once APP_ROOT_RELATIVE_PATH.'libsvgtree/version.inc';
30
31 require_once APP_ROOT_RELATIVE_PATH.'libsvgtree/xhtml_svgtree_page.inc';
32
33 if (array_key_exists('view', $_GET))
34 $view = $_GET['view'];
35 else
36 $view = 'accueil';
37
38 if (array_key_exists('action', $_POST)) {
39 require ('action/'.$_POST['action'].'.inc');
40 }
41
42 $page = new xhtml_svgtree_page();
43
44 $page->goto_zone('body');
45 require 'view/'.$view.'.inc';
46
47 $page->xhtml_svgtree_page_display();
48 ?>