1,25 → 1,23 |
<?php |
/*vim: set expandtab tabstop=4 shiftwidth=4: */ |
// +------------------------------------------------------------------------------------------------------+ |
// | PHP version 4.1 | |
// | PHP version 4.1 | |
// +------------------------------------------------------------------------------------------------------+ |
// | Copyright (C) 2004 Tela Botanica (accueil@tela-botanica.org) | |
// | Copyright (C) 2004 Tela Botanica (accueil@tela-botanica.org) | |
// +------------------------------------------------------------------------------------------------------+ |
// | This library is free software; you can redistribute it and/or | |
// | modify it under the terms of the GNU Lesser General Public | |
// | License as published by the Free Software Foundation; either | |
// | version 2.1 of the License, or (at your option) any later version. | |
// | | |
// | This library is distributed in the hope that it will be useful, | |
// | but WITHOUT ANY WARRANTY; without even the implied warranty of | |
// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
// | Lesser General Public License for more details. | |
// | | |
// | You should have received a copy of the GNU Lesser General Public | |
// | License along with this library; if not, write to the Free Software | |
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |
// | This library is free software; you can redistribute it and/or | |
// | modify it under the terms of the GNU Lesser General Public | |
// | License as published by the Free Software Foundation; either | |
// | version 2.1 of the License, or (at your option) any later version. | |
// | | |
// | This library is distributed in the hope that it will be useful, | |
// | but WITHOUT ANY WARRANTY; without even the implied warranty of | |
// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
// | Lesser General Public License for more details. | |
// | | |
// | You should have received a copy of the GNU Lesser General Public | |
// | License along with this library; if not, write to the Free Software | |
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |
// +------------------------------------------------------------------------------------------------------+ |
// CVS : $Id: ins_config.inc.php,v 1.3 2005/05/13 13:49:15 alex Exp $ |
/** |
* Fichier de configuration de l'inscription |
* |
29,9 → 27,9 |
//Auteur original : |
*@author Alexandre GRANIER <alexandre@tela-botanica.org> |
//Autres auteurs : |
*@author Aucun |
*@author Jean-Pascal MILCENT <jpm@tela-botanica.org> |
*@copyright Tela-Botanica 2000-2004 |
*@version $Revision: 1.3 $ $Date: 2005/05/13 13:49:15 $ |
*@version $Id: ins_config.inc.php,v 1.3 2005/05/13 13:49:15 alex Exp $ |
// +------------------------------------------------------------------------------------------------------+ |
*/ |
|
41,7 → 39,6 |
* Définition des variables globales |
//================================================================================== |
*/ |
|
$GLOBALS['AUTH'] =& $GLOBALS['_GEN_commun']['pear_auth'] ; |
|
/** |
58,30 → 55,31 |
* Constantes des noms de tables et de champs dans l'annuaire |
//================================================================================== |
*/ |
define ("INS_ANNUAIRE", "annuaire_tela") ; |
define ("INS_CHAMPS_ID", "U_ID") ; // Nom du champs nom |
define ("INS_CHAMPS_MAIL", "U_MAIL") ; // Nom du champs mail |
define ("INS_CHAMPS_LOGIN", "at_nom_wiki") ; |
define ("INS_CHAMPS_NOM", "U_NAME") ; |
define ("INS_CHAMPS_PRENOM", "U_SURNAME") ; |
define ("INS_CHAMPS_PASSE", "U_PASSWD") ; |
define ("INS_CHAMPS_PAYS", "U_COUNTRY") ; |
define ("PROJET_PRENOM", "U_SURNAME") ; // Nom du champs prénom |
define ("PROJET_DPT", "gen_FRENCH_DPT") ; // Nom de la table département |
define ("INS_TABLE_PAYS", "gen_COUNTRY") ; // Nom de la table pays |
define ("INS_CHAMPS_ID_PAYS", "GC_ID") ; |
define ("INS_CHAMPS_LABEL_PAYS", "GC_NAME") ; |
define ("INS_CHAMPS_CODE_POSTAL", "U_ZIP_CODE") ; |
define ("INS_CHAMPS_VILLE", "U_CITY") ; |
define ("INS_CHAMPS_ADRESSE_1", "U_ADDR1") ; |
define ("INS_CHAMPS_ADRESSE_2", "U_ADDR2") ; |
define ("INS_CHAMPS_REGION", "U_STATE") ; |
define ("INS_CHAMPS_SITE_WEB", "U_WEB") ; |
define ("INS_CHAMPS_TELEPHONE", "U_PHONE") ; |
define ("INS_CHAMPS_FAX", "U_FAX") ; |
define ("INS_CHAMPS_STRUCTURE", "U_TITLE") ; |
define ("INS_CHAMPS_DATE", "U_DATE") ; |
define ("INS_CHAMPS_LETTRE", "U_LETTRE") ; // Le champs qui indique si l'usager est inscrit à la lettre d'inscription |
define ('INS_ANNUAIRE', 'annuaire_tela'); |
define ('INS_CHAMPS_ID', 'U_ID');// Nom du champs nom |
define ('INS_CHAMPS_MAIL', 'U_MAIL');// Nom du champs mail |
define ('INS_CHAMPS_LOGIN', 'at_nom_wiki'); |
define ('INS_CHAMPS_NOM', 'U_NAME'); |
define ('INS_CHAMPS_PRENOM', 'U_SURNAME'); |
define ('INS_CHAMPS_PASSE', 'U_PASSWD'); |
define ('INS_CHAMPS_PAYS', 'U_COUNTRY'); |
define ('INS_CHAMPS_CODE_POSTAL', 'U_ZIP_CODE'); |
define ('INS_CHAMPS_VILLE', 'U_CITY'); |
define ('INS_CHAMPS_ADRESSE_1', 'U_ADDR1'); |
define ('INS_CHAMPS_ADRESSE_2', 'U_ADDR2'); |
define ('INS_CHAMPS_REGION', 'U_STATE'); |
define ('INS_CHAMPS_SITE_WEB', 'U_WEB'); |
define ('INS_CHAMPS_TELEPHONE', 'U_PHONE'); |
define ('INS_CHAMPS_FAX', 'U_FAX'); |
define ('INS_CHAMPS_STRUCTURE', 'U_TITLE'); |
define ('INS_CHAMPS_DATE', 'U_DATE'); |
define ('INS_CHAMPS_LETTRE', 'U_LETTRE');// Le champs qui indique si l'usager est inscrit à la lettre d'inscription |
define ('INS_CHAMPS_DPT', 'U_FRENCH_DPT'); |
define ('PROJET_DPT', 'carto_DEPARTEMENT');// Nom de la table département |
define ('INS_TABLE_PAYS', 'carto_PAYS');// Nom de la table pays |
define ('INS_CHAMPS_ID_PAYS', 'CP_ID_Pays'); |
define ('INS_CHAMPS_LABEL_PAYS', 'CP_Intitule_pays'); |
define ('INS_CHAMPS_PAYS_LG', 'CP_Langue_intitule');// Langue de l'intitule du pays |
|
/** |
//==================================== PARAMETRAGE ================================= |
88,25 → 86,24 |
* Pour régler certaines fonctionnalité de l'application |
//================================================================================== |
*/ |
define ("INS_MAIL_ADMIN_APRES_INSCRIPTION", "Reseau Tela Botanica <accueil@tela-botanica.org>") ; |
define ("INS_MAIL_ADMIN_APRES_INSCRIPTION_SUJET", "[Tela Botanica]Inscription") ; |
define ("INS_MAIL_INSCRIPTION_LISTE", 'actu-subscribe@tela-botanica.org') ; |
define ("INS_MAIL_DESINSCRIPTION_LISTE", 'actu-unsubscribe@tela-botanica.org') ; |
// Indique le type de cryptage du mot de passe à appliquer (doit être identique à PEAR_AUTH) |
define ('INS_MDP_CRYPTYPE', 'md5');// Choix : md5 seulement |
|
// Liste des personne recevant le mail après inscription |
$GLOBALS['mail_admin'] = array ('accueil@tela-botanica.org', 'dmathieu@tela-botanica.org') ; |
define ('INS_MAIL_ADMIN_APRES_INSCRIPTION', 'Accueil Tela Botanica <accueil@tela-botanica.org>'); |
define ('INS_MAIL_ADMIN_APRES_INSCRIPTION_SUJET', '[Tela Botanica] Inscription'); |
|
define ("INS_UTILISE_SPIP", 1) ; |
define ('INS_UTILISE_LISTE', true);// Mettre à false si pas de liste d'actu |
define ('INS_MAIL_INSCRIPTION_LISTE', 'actu-subscribe@tela-botanica.org'); |
define ('INS_MAIL_DESINSCRIPTION_LISTE', 'actu-unsubscribe@tela-botanica.org'); |
|
define ("INS_UTILISE_WIKINI", 1) ; |
// Liste des personne recevant le mail après inscription |
$GLOBALS['mail_admin'] = array ('Accueil <accueil@tela-botanica.org>', |
'Daniel MATHIEU <dmathieu@tela-botanica.org>', |
'Jean-Pascal MILCENT <jpm@tela-botanica.org>'); |
|
if (INS_UTILISE_WIKINI) { |
define ('INS_CHAMPS_WIKINI', 'at_nom_wiki') ; |
define ('INS_BDD_WIKINI', 'tela_prod_wikini') ; |
} |
|
define ('INS_UTILISE_SPIP', 1); |
if (INS_UTILISE_SPIP) { |
define ('INS_BDD_SPIP', 'tela_prod_spip_actu') ; |
define ('INS_BDD_SPIP', 'tela_prod_spip_actu'); |
} |
|
/** |
113,17 → 110,16 |
//==================================== PARAMETRAGE ================================= |
* Pour gérer la réécriture d'url de l'inscription |
* Cela nécessite une ligne dans le fichier .htaccess, par exemple |
* RewriteRule ^ins([0-9a-z]*)$ papyrus.php?menu=22&id=$1 [L] |
* RewriteRule ^ins([0-9a-z]*)$ papyrus.php?menu=22&action=ajouter&id=$1 [L] |
* Cela sert à racourcir l'URL de confirmation d'inscription |
//================================================================================== |
*/ |
|
define ('INS_UTILISE_REECRITURE_URL', 1) ; // mettre à 1 si on souhaite utiliser la réécriture |
|
define ('INS_UTILISE_REECRITURE_URL', 1);// mettre à 1 si on souhaite utiliser la réécriture |
if (INS_UTILISE_REECRITURE_URL) { |
define ('INS_URL_PREFIXE', '_ins_') ; // Indique le préfixe de l'url http://www.mondomaine.org/prefix____ |
define ('INS_URL_PREFIXE', '_ins_');// Indique le préfixe de l'url http://www.mondomaine.org/prefix____ |
} |
|
define ('INS_UTILISE_STAT', true); |
define ('INS_TABLE_STATISTIQUE', 'ins_STATS') ; |
define ('INS_STATS_CHAMPS_DATE', 'IS_DATE') ; |
define ('INS_STATS_CHAMPS_ACTION', 'IS_ACTION') ; |