Subversion Repositories Applications.papyrus

Rev

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

Rev 1088 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: bottin.config.inc.php,v 1.15 2006-12-01 16:02:15 florian Exp $
22
// CVS : $Id: bottin.config.inc.php,v 1.16 2007-04-11 08:30:12 neiluj Exp $
23
/**
23
/**
24
* Fichier de configuration de l'application d'inscription/annuaire
24
* Fichier de configuration de l'application d'inscription/annuaire
25
*
25
*
26
* A éditer de façon spécifique à chaque déploiement
26
* A éditer de façon spécifique à chaque déploiement
27
*
27
*
Line 30... Line 30...
30
*@author        Alexandre GRANIER <alexandre@tela-botanica.org>
30
*@author        Alexandre GRANIER <alexandre@tela-botanica.org>
31
*@author        Florian SCHMITT <florian@ecole-et-nature.org>
31
*@author        Florian SCHMITT <florian@ecole-et-nature.org>
32
//Autres auteurs :
32
//Autres auteurs :
33
*@author        Aucun
33
*@author        Aucun
34
*@copyright     Tela-Botanica 2000-2004
34
*@copyright     Tela-Botanica 2000-2004
35
*@version       $Revision: 1.15 $ $Date: 2006-12-01 16:02:15 $
35
*@version       $Revision: 1.16 $ $Date: 2007-04-11 08:30:12 $
36
// +------------------------------------------------------------------------------------------------------+
36
// +------------------------------------------------------------------------------------------------------+
37
*/
37
*/
38
//================================= CONSTANTES DB ==================================
38
//================================= CONSTANTES DB ==================================
-
 
39
/** Nom de la table Annuaire */
-
 
40
define ('INS_ANNUAIRE', 'annuaire');
-
 
41
/** Nom de la table des départements */ 
-
 
42
define ('INS_TABLE_DPT', 'gen_departement');
-
 
43
/** Nom de la table des pays */
-
 
44
define ('INS_TABLE_PAYS', 'gen_i18n_pays');
-
 
45
/** Champs identifiant */
-
 
46
define ('INS_CHAMPS_ID', 'a_id');                   
-
 
47
/** Champs adresse mail */
-
 
48
define ('INS_CHAMPS_MAIL', 'a_mail');
-
 
49
/** Champs nom */
-
 
50
define ('INS_CHAMPS_NOM', 'a_nom');
-
 
51
/** Champs prénom */
-
 
52
define ('INS_CHAMPS_PRENOM', 'a_prenom');
-
 
53
/** Champs description */
-
 
54
define ('INS_CHAMPS_DESCRIPTION','a_description');
-
 
55
/** Champs mot de passe */
-
 
56
define ('INS_CHAMPS_PASSE', 'a_mot_de_passe');
-
 
57
/** Champs identifiant pays */
-
 
58
define ('INS_CHAMPS_PAYS', 'a_ce_pays');
-
 
59
/** Champs code postal */
-
 
60
define ('INS_CHAMPS_CODE_POSTAL', 'a_code_postal');
-
 
61
/** Champs département */
-
 
62
define ('INS_CHAMPS_DEPARTEMENT', 'a_numero_dpt');
-
 
63
/** Champs adresse 1 */
-
 
64
define ('INS_CHAMPS_ADRESSE_1', 'a_adresse1');
-
 
65
/** Champs adresse 2 */
-
 
66
define ('INS_CHAMPS_ADRESSE_2', 'a_adresse2');
-
 
67
/** Champs ville */
-
 
68
define ('INS_CHAMPS_VILLE', 'a_ville');
-
 
69
/** Champs date de l'inscription */
-
 
70
define ('INS_CHAMPS_DATE_INSCRIPTION', 'a_date_inscription');
-
 
71
/** Champs pour désigner si c'est l'inscription d'une structure */
-
 
72
define ('INS_CHAMPS_EST_STRUCTURE', 'a_est_structure');
-
 
73
/** Champs sigle de la structure */
-
 
74
define ('INS_CHAMPS_SIGLE_STRUCTURE', 'a_sigle_structure');
-
 
75
/** Champs numéro de téléphone */
-
 
76
define ('INS_CHAMPS_TELEPHONE', 'a_telephone');
-
 
77
/** Champs numéro de fax */
-
 
78
define ('INS_CHAMPS_FAX', 'a_fax');
-
 
79
/** Champs d'appartenance à une structure */
-
 
80
define ('INS_CHAMPS_STRUCTURE', 'a_ce_structure');
-
 
81
/** Champs identifiant du pays de la table des pays*/
-
 
82
define ('INS_CHAMPS_ID_PAYS', 'gip_id_pays');
-
 
83
/** Champs nom du pays de la table des pays*/
-
 
84
define ('INS_CHAMPS_LABEL_PAYS', 'gip_nom_pays_traduit');
-
 
85
/** Champs qui contient la localisation */
-
 
86
define ('INS_CHAMPS_I18N_PAYS', ' gip_id_i18n') ;
-
 
87
/** Champs identifiant du département de la table des departement*/
-
 
88
define ('INS_CHAMPS_ID_DEPARTEMENT','gd_id_departement');
-
 
89
/** Champs nom du département de la table des departement*/
-
 
90
define ('INS_CHAMPS_NOM_DEPARTEMENT','gd_nom');
-
 
91
/** Champs pour l'abonnement à une liste, laisser vide si vous ne souhaitez pas d'inscription' */
-
 
92
define ('INS_CHAMPS_LETTRE', 'a_lettre');
-
 
93
/** Champs de la date d'inscription */
-
 
94
define ('INS_CHAMPS_DATE', 'a_date_inscription');
-
 
95
/** Champs du site Internet*/
-
 
96
define ('INS_CHAMPS_SITE_INTERNET', 'a_site_internet');
-
 
97
/** Champs pour la vue sur carto*/
-
 
98
define ('INS_CHAMPS_VISIBLE', 'a_voir_sur_carto');
-
 
99
/** Champs pour la vue sur carto*/
-
 
100
define ('INS_CHAMPS_NUM_AGREMENT', 'a_num_agrement_fpc');
-
 
101
/** Champs pour le logo*/
-
 
102
define ('INS_CHAMPS_LOGO', 'a_logo');
-
 
103
 
-
 
104
 
-
 
105
if (INS_CHAMPS_LETTRE != '') {
-
 
106
	/** adresse d'inscription à la newsletter */
-
 
107
	define ('INS_MAIL_INSCRIPTION_LISTE', 'newsletter-subscribe@domaine.org');
-
 
108
	/** adresse de désinscription à la newsletter */
-
 
109
	define ('INS_MAIL_DESINSCRIPTION_LISTE', 'newsletter-unsubscribe@domaine.org');
-
 
110
}
Line 39... Line 111...
39
 
111
 
40
//teste si l'on est dans l'application Papyrus
112
//teste si l'on est dans l'application Papyrus
41
if (!defined('PAP_VERSION')) { //pas dans Papyrus
113
if (!defined('PAP_VERSION')) { //pas dans Papyrus
42
	//================================ BASE DE DONNEES =================================
114
	//================================ BASE DE DONNEES =================================
Line 109... Line 181...
109
	/** Choix de la langue par défaut de l'application */
181
	/** Choix de la langue par défaut de l'application */
110
	define ('INS_LANGUE_DEFAUT', $GLOBALS['_GEN_commun']['i18n']) ;
182
	define ('INS_LANGUE_DEFAUT', $GLOBALS['_GEN_commun']['i18n']) ;
111
	include_once INS_CHEMIN_APPLI.'langues/bottin.langue_'.INS_LANGUE_DEFAUT.'.inc.php'; //appel du fichier de constantes des langues
183
	include_once INS_CHEMIN_APPLI.'langues/bottin.langue_'.INS_LANGUE_DEFAUT.'.inc.php'; //appel du fichier de constantes des langues
112
}
184
}
Line 113... Line -...
113
 
-
 
114
// Recherche parametres menu actif : ils ne sont pas present dans le contexte, quel dommage !
-
 
115
$requete_menu =  'SELECT gm_application_arguments '.
-
 
116
                 'FROM gen_menu '.
-
 
117
                 'WHERE gm_id_menu = '.$_GET['menu'];         
-
 
118
$resultat_menu = $GLOBALS['_GEN_commun']['pear_db']->query($requete_menu);
-
 
119
$info_menu = $resultat_menu->fetchRow(DB_FETCHMODE_OBJECT);
-
 
120
$resultat_menu->free();
-
 
121
if (isset($info_menu->gm_application_arguments)) {
-
 
122
	$arguments = explode(' ', $info_menu->gm_application_arguments);
-
 
123
   	for ($i = 0; $i < count($arguments); $i++) {
-
 
124
   		$attr = explode('=', $arguments[$i]);
-
 
125
   		if ($attr[0] != '') {
-
 
126
	    	$info_application->$attr[0] = (isset($attr[1]) ? $attr[1] : '');
-
 
127
   		}
-
 
128
   	}
-
 
129
}
-
 
130
//cas de l'annuaire admin papyrus, on modifie certaines constantes
-
 
131
if (isset($info_application) && $info_application->type_annuaire==1) {
-
 
132
	include_once INS_CHEMIN_APPLI.'configuration/annuaire_backoffice.config.inc.php';
-
 
133
} else {
-
 
134
	include_once INS_CHEMIN_APPLI.'configuration/annuaire_backoffice_bottin.config.inc.php';	
-
 
135
}
-
 
136
 
-
 
137
if (defined('INS_CHAMPS_LETTRE')) {
-
 
138
	/** adresse d'inscription à la newsletter */
-
 
139
	define ('INS_MAIL_INSCRIPTION_LISTE', 'newsletter-subscribe@domaine.org');
-
 
140
	/** adresse de désinscription à la newsletter */
-
 
141
	define ('INS_MAIL_DESINSCRIPTION_LISTE', 'newsletter-unsubscribe@domaine.org');
-
 
Line 142... Line 185...
142
}
185
 
143
 
186
 
Line 144... Line 187...
144
/** Définir la présence d'un formulaire d'inscription de structure (mettre à 1 pour oui, 0 pour non */
187
/** Définir la présence d'un formulaire d'inscription de structure (mettre à 1 pour oui, 0 pour non */