Subversion Repositories Applications.papyrus

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
235 alex 1
<?php
311 alex 2
/*vim: set expandtab tabstop=4 shiftwidth=4: */
3
// +------------------------------------------------------------------------------------------------------+
4
// | PHP version 4.1                                                                                      |
5
// +------------------------------------------------------------------------------------------------------+
6
// | Copyright (C) 2004 Tela Botanica (accueil@tela-botanica.org)                                         |
7
// +------------------------------------------------------------------------------------------------------+
8
// | This library is free software; you can redistribute it and/or                                        |
9
// | modify it under the terms of the GNU Lesser General Public                                           |
10
// | License as published by the Free Software Foundation; either                                         |
11
// | version 2.1 of the License, or (at your option) any later version.                                   |
12
// |                                                                                                      |
13
// | This library is distributed in the hope that it will be useful,                                      |
14
// | but WITHOUT ANY WARRANTY; without even the implied warranty of                                       |
15
// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU                                    |
16
// | Lesser General Public License for more details.                                                      |
17
// |                                                                                                      |
18
// | You should have received a copy of the GNU Lesser General Public                                     |
19
// | License along with this library; if not, write to the Free Software                                  |
20
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA                            |
21
// +------------------------------------------------------------------------------------------------------+
22
// CVS : $Id: annuaire_moteur.php,v 1.2 2005-03-24 08:24:39 alex Exp $
23
/**
24
* programme principal du module annuaire_moteur
25
*
26
* programme principal du module annuaire_moteur
27
*
28
*@package annuaire
29
//Auteur original :
30
*@author        Alexandre Granier <alexandre@tela-botanica.org>
31
//Autres auteurs :
32
*@author        Aucun
33
*@copyright     Tela-Botanica 2000-2004
34
*@version       $Revision: 1.2 $
35
// +------------------------------------------------------------------------------------------------------+
36
*/
235 alex 37
 
311 alex 38
// +------------------------------------------------------------------------------------------------------+
39
// |                                            ENTETE du PROGRAMME                                       |
40
// +------------------------------------------------------------------------------------------------------+
235 alex 41
 
311 alex 42
include_once 'client/annuaire/configuration/ann_config.inc.php' ;
43
include_once 'api/fragmenteur/FRAG_Fragmenteur_Session.class.php' ;
44
//include_once (ANN_CHEMIN_LIBRAIRIE."pack.lib.gen.php") ;
45
include_once (ANN_CHEMIN_APPLI."annuaire_moteur_fonction.php");
46
include_once (ANN_CHEMIN_LIBRAIRIE."annuaire.fonct.php") ;
235 alex 47
 
311 alex 48
if (isset($lang)) {
49
    include_once ANN_CHEMIN_APPLI."/langues/ann_langue_$lang.inc.php" ;
50
} else {
51
    include_once ANN_CHEMIN_APPLI.'/langues/ann_langue_fr.inc.php' ;
52
}
235 alex 53
 
311 alex 54
define ("ANN_MAIL_TOUS", 1) ;
55
define ("ANN_MAIL_TOUS_ENVOIE", 2) ;
235 alex 56
 
57
 
311 alex 58
function afficherContenuCorps () {
59
    global $statut ;
235 alex 60
 
311 alex 61
    if (!$GLOBALS['AUTH']->getAuth())  {
62
        $res = AUTH_formulaire_login() ;
235 alex 63
    } else {
311 alex 64
        if (isset($_GET['u_id'])) {
65
            include_once (ANN_CHEMIN_APPLI.'admin_annu.php');
66
            $GLOBALS['ann_url']->addQueryString ('u_id', $_GET['u_id']) ;
67
            return putFrame() ;
68
        }
69
        if (isset ($_GET['action'])) {
70
            include_once (ANN_CHEMIN_APPLI.'mail_tous.php') ;
71
            return putFrame() ;
72
        }
73
        $res = "<div>".mkengine()."</div>\n" ;
235 alex 74
        //mkquery() ;
311 alex 75
        $res .= "<div>".mkresu()."</div>\n" ;
76
 
235 alex 77
    }
78
    return $res ;
79
}
80
 
81
?>