Subversion Repositories Applications.papyrus

Rev

Rev 1088 | Go to most recent revision | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1088 Rev 1292
1
<?php
1
<?php
2
/*vim: set expandtab tabstop=4 shiftwidth=4: */ 
2
/*vim: set expandtab tabstop=4 shiftwidth=4: */ 
3
// +------------------------------------------------------------------------------------------------------+
3
// +------------------------------------------------------------------------------------------------------+
4
// | PHP version 4.1                                                                                      |
4
// | PHP version 4.1                                                                                      |
5
// +------------------------------------------------------------------------------------------------------+
5
// +------------------------------------------------------------------------------------------------------+
6
// | Copyright (C) 2004 Tela Botanica (accueil@tela-botanica.org)                                         |
6
// | Copyright (C) 2004 Tela Botanica (accueil@tela-botanica.org)                                         |
7
// +------------------------------------------------------------------------------------------------------+
7
// +------------------------------------------------------------------------------------------------------+
8
// | This library is free software; you can redistribute it and/or                                        |
8
// | This library is free software; you can redistribute it and/or                                        |
9
// | modify it under the terms of the GNU Lesser General Public                                           |
9
// | modify it under the terms of the GNU Lesser General Public                                           |
10
// | License as published by the Free Software Foundation; either                                         |
10
// | License as published by the Free Software Foundation; either                                         |
11
// | version 2.1 of the License, or (at your option) any later version.                                   |
11
// | version 2.1 of the License, or (at your option) any later version.                                   |
12
// |                                                                                                      |
12
// |                                                                                                      |
13
// | This library is distributed in the hope that it will be useful,                                      |
13
// | This library is distributed in the hope that it will be useful,                                      |
14
// | but WITHOUT ANY WARRANTY; without even the implied warranty of                                       |
14
// | but WITHOUT ANY WARRANTY; without even the implied warranty of                                       |
15
// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU                                    |
15
// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU                                    |
16
// | Lesser General Public License for more details.                                                      |
16
// | Lesser General Public License for more details.                                                      |
17
// |                                                                                                      |
17
// |                                                                                                      |
18
// | You should have received a copy of the GNU Lesser General Public                                     |
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                                  |
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                            |
20
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA                            |
21
// +------------------------------------------------------------------------------------------------------+
21
// +------------------------------------------------------------------------------------------------------+
22
// CVS : $Id: annuaire_backoffice.php,v 1.4 2006-12-01 16:02:16 florian Exp $
22
// CVS : $Id: annuaire_backoffice.php,v 1.5 2007-04-06 08:35:46 neiluj Exp $
23
/**
23
/**
24
* programme principal du module annuaire_moteur
24
* programme principal du module annuaire_moteur
25
*
25
*
26
* programme principal du module annuaire_moteur
26
* programme principal du module annuaire_moteur
27
*
27
*
28
*@package annuaire
28
*@package annuaire
29
//Auteur original :
29
//Auteur original :
30
*@author        Alexandre Granier <alexandre@tela-botanica.org>
30
*@author        Alexandre Granier <alexandre@tela-botanica.org>
31
//Autres auteurs :
31
//Autres auteurs :
32
*@author        Aucun
32
*@author        Aucun
33
*@copyright     Tela-Botanica 2000-2004
33
*@copyright     Tela-Botanica 2000-2004
34
*@version       $Revision: 1.4 $
34
*@version       $Revision: 1.5 $
35
// +------------------------------------------------------------------------------------------------------+
35
// +------------------------------------------------------------------------------------------------------+
36
*/
36
*/
37
 
37
 
38
// +------------------------------------------------------------------------------------------------------+
38
// +------------------------------------------------------------------------------------------------------+
39
// |                                            ENTETE du PROGRAMME                                       |
39
// |                                            ENTETE du PROGRAMME                                       |
40
// +------------------------------------------------------------------------------------------------------+
40
// +------------------------------------------------------------------------------------------------------+
-
 
41
 
-
 
42
// +------------------------------------------------------------------------------------------------------+
-
 
43
// |                                            ENTETE du PROGRAMME                                       |
-
 
44
// +------------------------------------------------------------------------------------------------------+
41
include_once 'configuration/bottin.config.inc.php';
45
include_once 'configuration/bottin.config.inc.php';
-
 
46
include_once INS_CHEMIN_APPLI.'configuration/annuaire_backoffice.config.inc.php';
42
include_once INS_CHEMIN_APPLI.'bibliotheque/annuaire.fonct.php';
47
include_once INS_CHEMIN_APPLI.'bibliotheque/annuaire.fonct.php';
43
include_once INS_CHEMIN_APPLI.'bibliotheque/annuaire_backoffice.fonct.php';
48
include_once INS_CHEMIN_APPLI.'bibliotheque/annuaire_backoffice.fonct.php';
44
include_once INS_CHEMIN_APPLI.'bibliotheque/inscription.class.php';
49
include_once INS_CHEMIN_APPLI.'bibliotheque/inscription.class.php';
45
include_once INS_CHEMIN_APPLI.'bibliotheque/inscription.fonct.php';
50
include_once INS_CHEMIN_APPLI.'bibliotheque/inscription.fonct.php';
-
 
51
 
-
 
52
if (!isset($GLOBALS['lang'])) {
46
$lang=INS_LANGUE_DEFAUT;
53
    $GLOBALS['lang'] = INS_LANGUE_DEFAUT ;
-
 
54
}
-
 
55
include_once INS_CHEMIN_APPLI."langues/bottin_langue_".$GLOBALS['lang'].".inc.php" ;
-
 
56
 
-
 
57
if (isset($lang)) {
-
 
58
    include_once INS_CHEMIN_APPLI."/langues/annuaire_backoffice.langue.$lang.inc.php" ;
-
 
59
} else {
-
 
60
    include_once INS_CHEMIN_APPLI.'/langues/annuaire_backoffice.langue.fr.inc.php' ;
-
 
61
}
-
 
62
 
47
define ("ANN_MAIL_TOUS", 1) ;
63
define ("ANN_MAIL_TOUS", 1) ;
48
define ("ANN_MAIL_TOUS_ENVOIE", 2) ;
64
define ("ANN_MAIL_TOUS_ENVOIE", 2) ;
-
 
65
 
49
 
66
 
50
function afficherContenuCorps () {
67
function afficherContenuCorps () {
51
    global $statut ;
68
    global $statut ;
52
 
69
 
53
    if (!$GLOBALS['AUTH']->getAuth())  {
70
    if (!$GLOBALS['AUTH']->getAuth())  {
54
        $res = AUTH_formulaire_login() ;
71
        $res = AUTH_formulaire_login() ;
55
    } else {
72
    } else {
56
        if (isset($_REQUEST[INS_CHAMPS_ID])) {
73
        if (isset($_REQUEST[INS_CHAMPS_ID])) {
57
            include_once (INS_CHEMIN_APPLI.'bibliotheque/edition_fiche.php');
74
            include_once (INS_CHEMIN_APPLI.'bibliotheque/edition_fiche.php');
58
            $GLOBALS['ins_url']->addQueryString (INS_CHAMPS_ID, $_REQUEST[INS_CHAMPS_ID]) ;
75
            $GLOBALS['ins_url']->addQueryString (INS_CHAMPS_ID, $_REQUEST[INS_CHAMPS_ID]) ;
59
            return putFrame() ;
76
            return putFrame() ;
60
        }
77
        }
61
        if (isset ($_GET['action'])) {
78
        if (isset ($_GET['action'])) {
62
            include_once (INS_CHEMIN_APPLI.'bibliotheque/mail_tous.php') ;
79
            include_once (INS_CHEMIN_APPLI.'bibliotheque/mail_tous.php') ;
63
            return putFrame() ;
80
            return putFrame() ;
64
        }
81
        }
65
        if (isset($_REQUEST['ajouter'])) {
82
        if (isset($_REQUEST['ajouter'])) {
66
        	return ajouterInscrit() ;	
83
        	return ajouterInscrit() ;	
67
        }
84
        }
68
        $res = "<div>".mkengine()."</div>\n" ;
85
        $res = "<div>".mkengine()."</div>\n" ;
69
    }
86
    }
70
    return $res ;
87
    return $res ;
71
}
88
}
72
 
89
 
73
?>
90
?>