//Autres auteurs : *@copyright Outils-Reseaux 2006-2010 *@version $Revision$ $Date$ // +------------------------------------------------------------------------------------------------------+ */ //===================================== CHEMINS ==================================== /** Chemin des sources de l'application phorum (mettre un / à la fin) */ define ('PHO_CHEMIN_SOURCES_APPLI', PAP_CHEMIN_RACINE.'client/phorum/bibliotheque/phorum/'); // set the Phorum install dir $PHORUM_DIR=PHO_CHEMIN_SOURCES_APPLI; // needed to really load the alternate db-config in common.php define("PHORUM_WRAPPER",1); //teste si l'on est dans l'application Papyrus if (!defined('PAP_VERSION')) { //pas dans Papyrus //================================ BASE DE DONNEES ================================= $PHORUM['DBCONFIG']=array( // Database connection. 'type' => 'mysql', 'name' => 'papyrus', 'server' => 'localhost', 'user' => 'root', 'password' => 'fs1980', 'table_prefix' => 'phorum', 'mysql_use_ft' => '1' ); } else { //dans Papyrus //================================ BASE DE DONNEES ================================= /** Variable globale contenant l'objet d'accès à la base de données de l'application, un objet DB*/ $GLOBALS['_PHORUM_']['db'] =& $GLOBALS['_GEN_commun']['pear_db']; // set the databse settings for this Phorum Install $PHORUM['DBCONFIG']=array( // Database connection. 'type' => $GLOBALS['_PHORUM_']['db']->dsn['dbsyntax'], 'name' => $GLOBALS['_PHORUM_']['db']->dsn['database'], 'server' => $GLOBALS['_PHORUM_']['db']->dsn['hostspec'], 'user' => $GLOBALS['_PHORUM_']['db']->dsn['username'], 'password' => $GLOBALS['_PHORUM_']['db']->dsn['password'], 'table_prefix' => 'phorum', 'mysql_use_ft' => '1' ); //=========================AUTHENTIFICATION================================= /** Variable globale contenant l'objet d'authentification de l'application, un objet AUTH*/ $GLOBALS['_PHORUM_']['AUTH'] =& $GLOBALS['_GEN_commun']['pear_auth']; //==================================== LES URLS ==================================== /** Variable globale contenant l'objet d'accès à l'URL de base de l'application, un objet Net_URL*/ $GLOBALS['_PHORUM_']['url'] =& $GLOBALS['_GEN_commun']['url']; //===================================== LANGUES ==================================== /** Choix de la langue par défaut de l'application */ define ('PHO_LANGUE_DEFAUT', $GLOBALS['_GEN_commun']['i18n']) ; } /* +--Fin du code ----------------------------------------------------------------------------------------+ * * $Log$ * * * +-- Fin du code ----------------------------------------------------------------------------------------+ */ ?>