Line 1... |
Line 1... |
1 |
<?php
|
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_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 |
*/
|
- |
|
37 |
|
- |
|
38 |
// +------------------------------------------------------------------------------------------------------+
|
- |
|
39 |
// | ENTETE du PROGRAMME |
|
- |
|
40 |
// +------------------------------------------------------------------------------------------------------+
|
- |
|
41 |
|
- |
|
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") ;
|
- |
|
47 |
|
- |
|
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 |
}
|
- |
|
53 |
|
- |
|
54 |
define ("ANN_MAIL_TOUS", 1) ;
|
- |
|
55 |
define ("ANN_MAIL_TOUS_ENVOIE", 2) ;
|
- |
|
56 |
|
- |
|
57 |
|
- |
|
58 |
function afficherContenuCorps () {
|
- |
|
59 |
global $statut ;
|
Line 2... |
Line -... |
2 |
|
- |
|
3 |
// +--------------------------------------------------------------------------------+
|
- |
|
4 |
// | annuaire_moteur.php |
|
- |
|
5 |
// +--------------------------------------------------------------------------------+
|
- |
|
6 |
// | Copyright (c) 2000 - 2003 Tela Botanica |
|
- |
|
7 |
// +--------------------------------------------------------------------------------+
|
- |
|
8 |
// | Moteur de recherhche dans un annuaire, les champs à |
|
- |
|
9 |
// | affichés sont déterminé dans annuaire_moteur_config.php |
|
- |
|
10 |
// +--------------------------------------------------------------------------------+
|
- |
|
11 |
// | Auteur : Alexandre Granier <alexandre@tela-botanica.org> |
|
- |
|
12 |
// +--------------------------------------------------------------------------------+
|
- |
|
13 |
//
|
- |
|
14 |
// $Id: annuaire_moteur.php,v 1.1.1.1 2005-01-03 17:27:49 alex Exp $
|
- |
|
15 |
|
- |
|
16 |
|
- |
|
17 |
include_once ("annuaire_moteur_config.php") ;
|
- |
|
18 |
include_once (AM_CHEMIN_LIBRAIRIE."pack.lib.gen.php") ;
|
- |
|
19 |
include_once (AM_CHEMIN_APPLI."annuaire_moteur_fonction.php");
|
- |
|
20 |
|
- |
|
21 |
|
- |
|
22 |
if (!isset($locale)) $locale = 'fr' ;
|
- |
|
23 |
include_once (AM_CHEMIN_APPLI."annuaire_moteur_lang_".$locale.".php") ;
|
- |
|
24 |
|
- |
|
25 |
include_once "php/auth.php" ;
|
- |
|
26 |
include_once "php/auth_object_login.php" ;
|
- |
|
27 |
|
- |
|
28 |
function putframe () {
|
- |
|
29 |
global $statut, $GS_GLOBAL ;
|
- |
|
30 |
|
60 |
|
31 |
$objet_login = new AuthLoginClass() ;
|
- |
|
32 |
if (!gs_manageAuthWithObject ($GS_GLOBAL['mysql_db'], $GS_GLOBAL['link'], $objet_login, &$outputText)) {
|
61 |
if (!$GLOBALS['AUTH']->getAuth()) {
|
33 |
$res = $outputText ;
|
62 |
$res = AUTH_formulaire_login() ;
|
- |
|
63 |
} else {
|
- |
|
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() ;
|
34 |
} else {
|
72 |
}
|
35 |
$res = "<tr><td>".mkengine()."</td></tr>\n" ;
|
73 |
$res = "<div>".mkengine()."</div>\n" ;
|
36 |
//mkquery() ;
|
74 |
//mkquery() ;
|
- |
|
75 |
$res .= "<div>".mkresu()."</div>\n" ;
|
37 |
$res .= "<tr><td>".mkresu()."</td></tr>\n" ;
|
76 |
|
38 |
}
|
77 |
}
|
39 |
return $res ;
|
78 |
return $res ;
|
Line 40... |
Line 79... |
40 |
}
|
79 |
}
|
41 |
|
80 |
|