Subversion Repositories eFlore/Archives.eflore-consultation-v2

Rev

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

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