Subversion Repositories Applications.papyrus

Rev

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

Rev 1292 Rev 1298
Line 17... Line 17...
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.5 2007-04-06 08:35:46 neiluj Exp $
22
// CVS : $Id: annuaire_backoffice.php,v 1.6 2007-04-11 08:30:12 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
*
Line 29... Line 29...
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.5 $
34
*@version       $Revision: 1.6 $
35
// +------------------------------------------------------------------------------------------------------+
35
// +------------------------------------------------------------------------------------------------------+
36
*/
36
*/
Line 37... Line 37...
37
 
37
 
38
// +------------------------------------------------------------------------------------------------------+
38
// +------------------------------------------------------------------------------------------------------+
Line 41... Line 41...
41
 
41
 
42
// +------------------------------------------------------------------------------------------------------+
42
// +------------------------------------------------------------------------------------------------------+
43
// |                                            ENTETE du PROGRAMME                                       |
43
// |                                            ENTETE du PROGRAMME                                       |
44
// +------------------------------------------------------------------------------------------------------+
44
// +------------------------------------------------------------------------------------------------------+
45
include_once 'configuration/bottin.config.inc.php';
-
 
46
include_once INS_CHEMIN_APPLI.'configuration/annuaire_backoffice.config.inc.php';
45
include_once 'configuration/bottin.config.inc.php';
47
include_once INS_CHEMIN_APPLI.'bibliotheque/annuaire.fonct.php';
46
include_once INS_CHEMIN_APPLI.'bibliotheque/annuaire.fonct.php';
48
include_once INS_CHEMIN_APPLI.'bibliotheque/annuaire_backoffice.fonct.php';
47
include_once INS_CHEMIN_APPLI.'bibliotheque/annuaire_backoffice.fonct.php';
49
include_once INS_CHEMIN_APPLI.'bibliotheque/inscription.class.php';
48
include_once INS_CHEMIN_APPLI.'bibliotheque/inscription.class.php';
50
include_once INS_CHEMIN_APPLI.'bibliotheque/inscription.fonct.php';
-
 
51
 
-
 
52
if (!isset($GLOBALS['lang'])) {
49
include_once INS_CHEMIN_APPLI.'bibliotheque/inscription.fonct.php';
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
 
50
$lang=INS_LANGUE_DEFAUT;
63
define ("ANN_MAIL_TOUS", 1) ;
51
define ("ANN_MAIL_TOUS", 1) ;
Line -... Line 52...
-
 
52
define ("ANN_MAIL_TOUS_ENVOIE", 2) ;
-
 
53
 
-
 
54
// Recherche parametres menu actif : ils ne sont pas present dans le contexte, quel dommage !
-
 
55
$requete_menu =  'SELECT gm_application_arguments '.
-
 
56
                 'FROM gen_menu '.
-
 
57
                 'WHERE gm_id_menu = '.$_GET['menu'];         
-
 
58
$resultat_menu = $GLOBALS['_GEN_commun']['pear_db']->query($requete_menu);
-
 
59
$info_menu = $resultat_menu->fetchRow(DB_FETCHMODE_OBJECT);
-
 
60
$resultat_menu->free();
-
 
61
if (isset($info_menu->gm_application_arguments)) {
-
 
62
	$arguments = explode(' ', $info_menu->gm_application_arguments);
-
 
63
   	for ($i = 0; $i < count($arguments); $i++) {
-
 
64
   		$attr = explode('=', $arguments[$i]);
-
 
65
   		if ($attr[0] != '') {
-
 
66
	    	$info_application->$attr[0] = (isset($attr[1]) ? $attr[1] : '');
-
 
67
   		}
-
 
68
   	}
-
 
69
}
-
 
70
//cas de l'annuaire admin papyrus, on modifie certaines constantes
-
 
71
if ($info_application->type_annuaire==1) {
Line 64... Line 72...
64
define ("ANN_MAIL_TOUS_ENVOIE", 2) ;
72
	include_once INS_CHEMIN_APPLI.'configuration/annuaire_backoffice.config.inc.php';
65
 
73
}
Line 66... Line 74...
66
 
74