831 |
florian |
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$
|
|
|
23 |
/**
|
|
|
24 |
* Fichier de configuration du phorum
|
|
|
25 |
*
|
|
|
26 |
* A éditer de façon spécifique à chaque déploiement
|
|
|
27 |
*
|
|
|
28 |
*@package bazar
|
|
|
29 |
//Auteur original :
|
|
|
30 |
*@author Florian SCHMITT <florian@ecole-et-nature.org>
|
|
|
31 |
//Autres auteurs :
|
|
|
32 |
*@copyright Outils-Reseaux 2006-2010
|
|
|
33 |
*@version $Revision$ $Date$
|
|
|
34 |
// +------------------------------------------------------------------------------------------------------+
|
|
|
35 |
*/
|
|
|
36 |
|
|
|
37 |
//===================================== CHEMINS ====================================
|
|
|
38 |
/** Chemin des sources de l'application phorum (mettre un / à la fin) */
|
|
|
39 |
define ('PHO_CHEMIN_SOURCES_APPLI', PAP_CHEMIN_RACINE.'client/phorum/bibliotheque/phorum/');
|
|
|
40 |
// set the Phorum install dir
|
|
|
41 |
$PHORUM_DIR=PHO_CHEMIN_SOURCES_APPLI;
|
|
|
42 |
|
|
|
43 |
|
|
|
44 |
// needed to really load the alternate db-config in common.php
|
|
|
45 |
define("PHORUM_WRAPPER",1);
|
|
|
46 |
|
|
|
47 |
//teste si l'on est dans l'application Papyrus
|
|
|
48 |
if (!defined('PAP_VERSION')) { //pas dans Papyrus
|
|
|
49 |
//================================ BASE DE DONNEES =================================
|
|
|
50 |
$PHORUM['DBCONFIG']=array(
|
|
|
51 |
// Database connection.
|
|
|
52 |
'type' => 'mysql',
|
|
|
53 |
'name' => 'papyrus',
|
|
|
54 |
'server' => 'localhost',
|
|
|
55 |
'user' => 'root',
|
|
|
56 |
'password' => 'fs1980',
|
|
|
57 |
'table_prefix' => 'phorum',
|
|
|
58 |
'mysql_use_ft' => '1'
|
|
|
59 |
);
|
|
|
60 |
} else { //dans Papyrus
|
|
|
61 |
//================================ BASE DE DONNEES =================================
|
|
|
62 |
/** Variable globale contenant l'objet d'accès à la base de données de l'application, un objet DB*/
|
|
|
63 |
$GLOBALS['_PHORUM_']['db'] =& $GLOBALS['_GEN_commun']['pear_db'];
|
|
|
64 |
// set the databse settings for this Phorum Install
|
|
|
65 |
$PHORUM['DBCONFIG']=array(
|
|
|
66 |
// Database connection.
|
|
|
67 |
'type' => $GLOBALS['_PHORUM_']['db']->dsn['dbsyntax'],
|
|
|
68 |
'name' => $GLOBALS['_PHORUM_']['db']->dsn['database'],
|
|
|
69 |
'server' => $GLOBALS['_PHORUM_']['db']->dsn['hostspec'],
|
|
|
70 |
'user' => $GLOBALS['_PHORUM_']['db']->dsn['username'],
|
|
|
71 |
'password' => $GLOBALS['_PHORUM_']['db']->dsn['password'],
|
|
|
72 |
'table_prefix' => 'phorum',
|
|
|
73 |
'mysql_use_ft' => '1'
|
|
|
74 |
);
|
|
|
75 |
|
|
|
76 |
//=========================AUTHENTIFICATION=================================
|
|
|
77 |
/** Variable globale contenant l'objet d'authentification de l'application, un objet AUTH*/
|
|
|
78 |
$GLOBALS['_PHORUM_']['AUTH'] =& $GLOBALS['_GEN_commun']['pear_auth'];
|
|
|
79 |
|
|
|
80 |
//==================================== LES URLS ====================================
|
|
|
81 |
/** Variable globale contenant l'objet d'accès à l'URL de base de l'application, un objet Net_URL*/
|
|
|
82 |
$GLOBALS['_PHORUM_']['url'] =& $GLOBALS['_GEN_commun']['url'];
|
|
|
83 |
|
|
|
84 |
//===================================== LANGUES ====================================
|
|
|
85 |
/** Choix de la langue par défaut de l'application */
|
|
|
86 |
define ('PHO_LANGUE_DEFAUT', $GLOBALS['_GEN_commun']['i18n']) ;
|
|
|
87 |
}
|
|
|
88 |
|
|
|
89 |
/* +--Fin du code ----------------------------------------------------------------------------------------+
|
|
|
90 |
*
|
|
|
91 |
* $Log$
|
|
|
92 |
*
|
|
|
93 |
*
|
|
|
94 |
* +-- Fin du code ----------------------------------------------------------------------------------------+
|
|
|
95 |
*/
|
|
|
96 |
?>
|