Subversion Repositories Applications.papyrus

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
448 ddelon 1
<?php
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_backoffice.php,v 1.1 2005-09-22 14:02:49 ddelon 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.1 $
35
// +------------------------------------------------------------------------------------------------------+
36
*/
37
 
38
// +------------------------------------------------------------------------------------------------------+
39
// |                                            ENTETE du PROGRAMME                                       |
40
// +------------------------------------------------------------------------------------------------------+
41
 
42
// +------------------------------------------------------------------------------------------------------+
43
// |                                            ENTETE du PROGRAMME                                       |
44
// +------------------------------------------------------------------------------------------------------+
45
include_once 'configuration/ins_annuaire.config.inc.php';
46
include_once INS_CHEMIN_APPLI.'configuration/annuaire_backoffice.config.inc.php';
47
include_once INS_CHEMIN_APPLI."annuaire.fonct.php";
48
include_once INS_CHEMIN_APPLI.'bibliotheque/annuaire_backoffice.fonct.php';
49
 
50
if (isset($lang)) {
51
    include_once ANN_CHEMIN_APPLI."/langues/ann_langue_$lang.inc.php" ;
52
} else {
53
    include_once ANN_CHEMIN_APPLI.'/langues/ann_langue_fr.inc.php' ;
54
}
55
 
56
define ("ANN_MAIL_TOUS", 1) ;
57
define ("ANN_MAIL_TOUS_ENVOIE", 2) ;
58
 
59
 
60
function afficherContenuCorps () {
61
    global $statut ;
62
 
63
    if (!$GLOBALS['AUTH']->getAuth())  {
64
        $res = AUTH_formulaire_login() ;
65
    } else {
66
        if (isset($_GET['u_id'])) {
67
            include_once (ANN_CHEMIN_APPLI.'admin_annu.php');
68
            $GLOBALS['ann_url']->addQueryString ('u_id', $_GET['u_id']) ;
69
            return putFrame() ;
70
        }
71
        if (isset ($_GET['action'])) {
72
            include_once (ANN_CHEMIN_APPLI.'mail_tous.php') ;
73
            return putFrame() ;
74
        }
75
        $res = "<div>".mkengine()."</div>\n" ;
76
        //mkquery() ;
77
        $res .= "<div>".mkresu()."</div>\n" ;
78
 
79
    }
80
    return $res ;
81
}
82
 
83
?>