Subversion Repositories eFlore/Archives.eflore-consultation-v2

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
51 fred 1
<?php
2
/*vim: set expandtab tabstop=4 shiftwidth=4: */
3
// +------------------------------------------------------------------------------------------------------+
58 jpm 4
// | PHP version 5.0.3                                                                                    |
51 fred 5
// +------------------------------------------------------------------------------------------------------+
6
// | Copyright (C) 2004 Tela Botanica (accueil@tela-botanica.org)                                         |
7
// +------------------------------------------------------------------------------------------------------+
93 jpm 8
// | This file is part of Serveur eRibosome.                                                              |
51 fred 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
*
93 jpm 31
* Abréviation du programme : ERIBO
51 fred 32
*
93 jpm 33
*@package eRibosome
34
*@subpackage Generateur
51 fred 35
//Auteur original :
36
*@author        Frédéric LEGENS <flegens@free.fr>
37
//Autres auteurs :
38
*@author        Aucun
39
*@copyright     Tela-Botanica 2000-2004
93 jpm 40
*@version       $Revision: 1.7 $ $Date: 2005-01-19 15:43:40 $
51 fred 41
// +------------------------------------------------------------------------------------------------------+
42
*/
43
 
44
// +------------------------------------------------------------------------------------------------------+
45
// |                                            ENTETE du PROGRAMME                                       |
46
// +------------------------------------------------------------------------------------------------------+
47
 
93 jpm 48
require_once '../configuration/eribo_config.php';
49
require_once '../configuration/eribo_config_avancee.inc.php';
51 fred 50
 
51
// +------------------------------------------------------------------------------------------------------+
52
// |                                            CORPS du PROGRAMME                                        |
53
// +------------------------------------------------------------------------------------------------------+
54
 
55
 
56
header('Content-type: text/xml');
57 jpm 57
if (!empty($_REQUEST['listemacroelements'])) {
51 fred 58
    $nom = EFSE_CHEMIN_GENERATEUR_RACINE.EFSE_CHEMIN_DEF_MACRO.$_REQUEST['listemacroelements'];
59
    $file = fopen($nom, 'r');
60
    $taille = fileSize($nom);
61
    $lecture = fread($file,$taille);
62
    fclose($file);
63
    echo $lecture;
64
}
65
 
57 jpm 66
if (!empty($_REQUEST['groupesmacroelements'])) {
51 fred 67
    $nom = EFSE_CHEMIN_GENERATEUR_RACINE.EFSE_CHEMIN_DEF_MACRO_GROUPE.$_REQUEST['groupesmacroelements'];
68
    $file = fopen($nom, 'r');
69
    $taille = fileSize($nom);
57 jpm 70
    $lecture = fread($file, $taille);
51 fred 71
    fclose($file);
72
    echo $lecture;
73
}
74
 
75
// +------------------------------------------------------------------------------------------------------+
76
// |                                           LISTE de FONCTIONS                                         |
77
// +------------------------------------------------------------------------------------------------------+
78
 
79
 
80
/* +--Fin du code ----------------------------------------------------------------------------------------+
81
*
82
* $Log: not supported by cvs2svn $
93 jpm 83
* Revision 1.6  2004/12/23 15:45:48  jpm
84
* Changement de version de PHP.
85
*
58 jpm 86
* Revision 1.5  2004/12/23 15:44:57  jpm
87
* Mise en conformité convention de codage.
88
*
57 jpm 89
* Revision 1.4  2004/12/23 15:22:15  jpm
90
* Modification du fichier de config appelé.
91
*
54 jpm 92
* Revision 1.3  2004/12/22 23:28:14  fred
93
* intégration de la license
51 fred 94
*
54 jpm 95
*
51 fred 96
* +-- Fin du code ----------------------------------------------------------------------------------------+
97
*/
27 jpm 98
?>