Subversion Repositories eFlore/Archives.eflore-consultation-v2

Rev

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

Rev 27 Rev 30
Line 1... Line 1...
1
<?
1
<?php
2
    require_once '..\\eflore_config.php';
2
require_once '../configuration/eflore_config.php';
3
    header('Content-type: text/xml');
3
header('Content-type: text/xml');
4
    if(!empty($_REQUEST['listemacroelements'])) {
4
if(!empty($_REQUEST['listemacroelements'])) {
5
        $nom='..\\'.$appConfig['def_macro'].$_REQUEST['listemacroelements'];
5
    $nom = EFSE_CHEMIN_GENERATEUR_RACINE.EFSE_CHEMIN_DEF_MACRO.$_REQUEST['listemacroelements'];
6
        $file = fopen($nom,'r');
6
    $file = fopen($nom, 'r');
7
        $taille =fileSize($nom);
7
    $taille = fileSize($nom);
8
        $lecture = fread($file,$taille); 
8
    $lecture = fread($file,$taille); 
9
        fclose($file);
9
    fclose($file);
10
        echo $lecture;
10
    echo $lecture;
11
    }
11
}
12
    
12
 
13
    if(!empty($_REQUEST['groupesmacroelements'])) {
13
if(!empty($_REQUEST['groupesmacroelements'])) {
14
        $nom='..\\'.$appConfig['def_groupes'].$_REQUEST['groupesmacroelements'];
14
    $nom = EFSE_CHEMIN_GENERATEUR_RACINE.EFSE_CHEMIN_DEF_MACRO_GROUPE.$_REQUEST['groupesmacroelements'];
15
        $file = fopen($nom,'r');
15
    $file = fopen($nom, 'r');
16
        $taille =fileSize($nom);
16
    $taille = fileSize($nom);
17
        $lecture = fread($file,$taille); 
17
    $lecture = fread($file,$taille); 
18
        fclose($file);
18
    fclose($file);
19
        echo $lecture;
19
    echo $lecture;
20
    }
20
}
21
?>
21
?>
22
22