Subversion Repositories eFlore/Archives.eflore-consultation-v2

Rev

Rev 57 | Go to most recent revision | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 57 Rev 58
1
<?php
1
<?php
2
/*vim: set expandtab tabstop=4 shiftwidth=4: */ 
2
/*vim: set expandtab tabstop=4 shiftwidth=4: */ 
3
// +------------------------------------------------------------------------------------------------------+
3
// +------------------------------------------------------------------------------------------------------+
4
// | PHP version 5.0.3                                                                                     |
4
// | PHP version 5.0.3                                                                                    |
5
// +------------------------------------------------------------------------------------------------------+
5
// +------------------------------------------------------------------------------------------------------+
6
// | Copyright (C) 2004 Tela Botanica (accueil@tela-botanica.org)                                         |
6
// | Copyright (C) 2004 Tela Botanica (accueil@tela-botanica.org)                                         |
7
// +------------------------------------------------------------------------------------------------------+
7
// +------------------------------------------------------------------------------------------------------+
8
// | This file is part of eFlore-Serveur.                                                                 |
8
// | This file is part of eFlore-Serveur.                                                                 |
9
// |                                                                                                      |
9
// |                                                                                                      |
10
// | Foobar is free software; you can redistribute it and/or modify                                       |
10
// | Foobar is free software; you can redistribute it and/or modify                                       |
11
// | it under the terms of the GNU General Public License as published by                                 |
11
// | it under the terms of the GNU General Public License as published by                                 |
12
// | the Free Software Foundation; either version 2 of the License, or                                    |
12
// | the Free Software Foundation; either version 2 of the License, or                                    |
13
// | (at your option) any later version.                                                                  |
13
// | (at your option) any later version.                                                                  |
14
// |                                                                                                      |
14
// |                                                                                                      |
15
// | Foobar is distributed in the hope that it will be useful,                                            |
15
// | Foobar is distributed in the hope that it will be useful,                                            |
16
// | but WITHOUT ANY WARRANTY; without even the implied warranty of                                       |
16
// | but WITHOUT ANY WARRANTY; without even the implied warranty of                                       |
17
// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the                                        |
17
// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the                                        |
18
// | GNU General Public License for more details.                                                         |
18
// | GNU General Public License for more details.                                                         |
19
// |                                                                                                      |
19
// |                                                                                                      |
20
// | You should have received a copy of the GNU General Public License                                    |
20
// | You should have received a copy of the GNU General Public License                                    |
21
// | along with Foobar; if not, write to the Free Software                                                |
21
// | along with Foobar; if not, write to the Free Software                                                |
22
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA                            |
22
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA                            |
23
// +------------------------------------------------------------------------------------------------------+
23
// +------------------------------------------------------------------------------------------------------+
24
// 
24
// 
25
/**
25
/**
26
* Fichier permmetant d'afficher les sources.
26
* Fichier permmetant d'afficher les sources.
27
*
27
*
28
* Ce fichier permet d'afficher le code source d'un macro-element ou d'un groupe
28
* Ce fichier permet d'afficher le code source d'un macro-element ou d'un groupe
29
* de macro-elements
29
* de macro-elements
30
* 
30
* 
31
* Abréviation du programme : EFSE
31
* Abréviation du programme : EFSE
32
*
32
*
33
*@package eFlore-Serveur
33
*@package eFlore-Serveur
34
//Auteur original :
34
//Auteur original :
35
*@author        Frédéric LEGENS <flegens@free.fr>
35
*@author        Frédéric LEGENS <flegens@free.fr>
36
//Autres auteurs :
36
//Autres auteurs :
37
*@author        Aucun
37
*@author        Aucun
38
*@copyright     Tela-Botanica 2000-2004
38
*@copyright     Tela-Botanica 2000-2004
39
*@version       $Revision: 1.5 $ $Date: 2004-12-23 15:44:57 $
39
*@version       $Revision: 1.6 $ $Date: 2004-12-23 15:45:48 $
40
// +------------------------------------------------------------------------------------------------------+
40
// +------------------------------------------------------------------------------------------------------+
41
*/
41
*/
42
 
42
 
43
// +------------------------------------------------------------------------------------------------------+
43
// +------------------------------------------------------------------------------------------------------+
44
// |                                            ENTETE du PROGRAMME                                       |
44
// |                                            ENTETE du PROGRAMME                                       |
45
// +------------------------------------------------------------------------------------------------------+
45
// +------------------------------------------------------------------------------------------------------+
46
 
46
 
47
require_once '../configuration/eflore_config.php';
47
require_once '../configuration/eflore_config.php';
48
require_once '../configuration/eflore_config_avancee.inc.php';
48
require_once '../configuration/eflore_config_avancee.inc.php';
49
 
49
 
50
// +------------------------------------------------------------------------------------------------------+
50
// +------------------------------------------------------------------------------------------------------+
51
// |                                            CORPS du PROGRAMME                                        |
51
// |                                            CORPS du PROGRAMME                                        |
52
// +------------------------------------------------------------------------------------------------------+
52
// +------------------------------------------------------------------------------------------------------+
53
 
53
 
54
 
54
 
55
header('Content-type: text/xml');
55
header('Content-type: text/xml');
56
if (!empty($_REQUEST['listemacroelements'])) {
56
if (!empty($_REQUEST['listemacroelements'])) {
57
    $nom = EFSE_CHEMIN_GENERATEUR_RACINE.EFSE_CHEMIN_DEF_MACRO.$_REQUEST['listemacroelements'];
57
    $nom = EFSE_CHEMIN_GENERATEUR_RACINE.EFSE_CHEMIN_DEF_MACRO.$_REQUEST['listemacroelements'];
58
    $file = fopen($nom, 'r');
58
    $file = fopen($nom, 'r');
59
    $taille = fileSize($nom);
59
    $taille = fileSize($nom);
60
    $lecture = fread($file,$taille); 
60
    $lecture = fread($file,$taille); 
61
    fclose($file);
61
    fclose($file);
62
    echo $lecture;
62
    echo $lecture;
63
}
63
}
64
 
64
 
65
if (!empty($_REQUEST['groupesmacroelements'])) {
65
if (!empty($_REQUEST['groupesmacroelements'])) {
66
    $nom = EFSE_CHEMIN_GENERATEUR_RACINE.EFSE_CHEMIN_DEF_MACRO_GROUPE.$_REQUEST['groupesmacroelements'];
66
    $nom = EFSE_CHEMIN_GENERATEUR_RACINE.EFSE_CHEMIN_DEF_MACRO_GROUPE.$_REQUEST['groupesmacroelements'];
67
    $file = fopen($nom, 'r');
67
    $file = fopen($nom, 'r');
68
    $taille = fileSize($nom);
68
    $taille = fileSize($nom);
69
    $lecture = fread($file, $taille); 
69
    $lecture = fread($file, $taille); 
70
    fclose($file);
70
    fclose($file);
71
    echo $lecture;
71
    echo $lecture;
72
}
72
}
73
 
73
 
74
// +------------------------------------------------------------------------------------------------------+
74
// +------------------------------------------------------------------------------------------------------+
75
// |                                           LISTE de FONCTIONS                                         |
75
// |                                           LISTE de FONCTIONS                                         |
76
// +------------------------------------------------------------------------------------------------------+
76
// +------------------------------------------------------------------------------------------------------+
77
 
77
 
78
 
78
 
79
/* +--Fin du code ----------------------------------------------------------------------------------------+
79
/* +--Fin du code ----------------------------------------------------------------------------------------+
80
*
80
*
81
* $Log: not supported by cvs2svn $
81
* $Log: not supported by cvs2svn $
-
 
82
* Revision 1.5  2004/12/23 15:44:57  jpm
-
 
83
* Mise en conformité convention de codage.
-
 
84
*
82
* Revision 1.4  2004/12/23 15:22:15  jpm
85
* Revision 1.4  2004/12/23 15:22:15  jpm
83
* Modification du fichier de config appelé.
86
* Modification du fichier de config appelé.
84
*
87
*
85
* Revision 1.3  2004/12/22 23:28:14  fred
88
* Revision 1.3  2004/12/22 23:28:14  fred
86
* intégration de la license
89
* intégration de la license
87
*
90
*
88
*
91
*
89
* +-- Fin du code ----------------------------------------------------------------------------------------+
92
* +-- Fin du code ----------------------------------------------------------------------------------------+
90
*/
93
*/
91
?>
94
?>