2010-01-22 08:58:39 +00:00
|
|
|
<?php
|
|
|
|
//Environnement : PRD REC DEV
|
2010-09-22 15:27:56 +00:00
|
|
|
define('ENVIRONNEMENT', (getenv('APPLICATION_ENV') ? getenv('APPLICATION_ENV') : 'PRD'));
|
2009-04-08 08:06:07 +00:00
|
|
|
|
2010-02-10 17:27:03 +00:00
|
|
|
//Charset envoyés au navigateur et encodage des fichiers
|
2010-09-22 15:27:56 +00:00
|
|
|
define ('CHARSET','utf-8');
|
2009-04-08 08:06:07 +00:00
|
|
|
|
2010-02-10 17:27:03 +00:00
|
|
|
//Email de reception des erreurs ou des messages de contrôle
|
2010-01-22 08:58:39 +00:00
|
|
|
define ('EMAIL_SUPPORTDEV','supportdev@scores-decisions.com');
|
2009-04-08 08:06:07 +00:00
|
|
|
|
2010-02-10 17:27:03 +00:00
|
|
|
//Définition SMTP Serveur et méthode
|
2010-03-01 11:29:38 +00:00
|
|
|
define ('MAIL_METHOD', 'sendmail');
|
2009-12-23 10:41:33 +00:00
|
|
|
|
2010-02-10 17:27:03 +00:00
|
|
|
//Message affiché lors d'une erreur soap
|
2010-01-22 08:58:39 +00:00
|
|
|
define ('ERROR_SOAP',
|
2010-02-10 17:27:03 +00:00
|
|
|
'Une erreur est survenue lors de votre requête...<br/>'.
|
|
|
|
'Un message à été envoyé à l\'administrateur de l\'extranet.<br/>'.
|
|
|
|
'Nous vous remercions de bien vouloir renouveler votre demande ultérieurement');
|
2009-04-08 08:06:07 +00:00
|
|
|
|
2010-02-10 17:27:03 +00:00
|
|
|
//Défintion architecture système pour le choix du binaire WKHTMLTOPDF
|
2010-01-22 08:58:39 +00:00
|
|
|
define ('WKHTMLTOPDF_ARCH','amd64');
|
2009-04-08 08:06:07 +00:00
|
|
|
|
2010-02-10 17:27:03 +00:00
|
|
|
//Log des requêtes MySQL ?
|
2010-01-22 08:58:39 +00:00
|
|
|
define ('LOG_MYSQL','ALL'); // NONE ou ALL
|
2009-04-08 08:06:07 +00:00
|
|
|
|
2010-02-10 17:27:03 +00:00
|
|
|
//Log des performances des pages PHP (mémoire et temps d'exécution)
|
2010-01-22 08:58:39 +00:00
|
|
|
define ('LOG_BENCH','NONE'); // NONE, WEB, FILE, BOTH
|
2009-04-24 12:27:08 +00:00
|
|
|
|
2010-02-10 17:27:03 +00:00
|
|
|
//Paramètres de connexion à la base de données
|
2010-01-22 08:58:39 +00:00
|
|
|
define ('MYSQL_HOST','localhost');
|
|
|
|
define ('MYSQL_DB','sdv1');
|
2011-03-10 14:44:11 +00:00
|
|
|
define ('MYSQL_USER','extranet');
|
|
|
|
define ('MYSQL_PASS','dMJNQwHER2A8jZFY');
|
2009-04-08 08:06:07 +00:00
|
|
|
|
2010-02-10 17:27:03 +00:00
|
|
|
//Définition des urls d'accès à l'extranet
|
2010-01-22 08:58:39 +00:00
|
|
|
define ('EXTRANET_URL','http://'.$_SERVER['SERVER_NAME'].'/');
|
|
|
|
define ('SITEINST_URL1','http://'.$_SERVER['SERVER_NAME'].'/localauth/');
|
|
|
|
define ('SITEINST_URL2','http://'.$_SERVER['SERVER_NAME'].'/localauth/');
|
2009-02-18 08:40:22 +00:00
|
|
|
|
2010-09-22 15:27:56 +00:00
|
|
|
//Définition chemin physique de l'extranet
|
2010-01-22 08:58:39 +00:00
|
|
|
define ('PATH_SITE',realpath(dirname(__FILE__) . '/../'));
|
|
|
|
define ('PATH_WWW',PATH_SITE.'/www/');
|
2009-04-08 08:06:07 +00:00
|
|
|
|
2010-09-22 15:27:56 +00:00
|
|
|
//Paramètres de stockage des fichiers
|
|
|
|
define ('PATH_DATA',PATH_SITE.'/data');
|
|
|
|
define ('PATH_LOGS',PATH_DATA.'/log/');
|
|
|
|
define ('PATH_PDF',PATH_DATA.'/pdf/');
|
|
|
|
define ('PATH_LOGOS',PATH_DATA.'/logos/');
|
|
|
|
|
2010-01-22 08:58:39 +00:00
|
|
|
//URL application ipari
|
2011-05-05 10:02:32 +00:00
|
|
|
define ('IPARI_URL','http://ipari.sd.lan');
|
2009-04-08 08:06:07 +00:00
|
|
|
|
2011-09-29 15:08:28 +00:00
|
|
|
define('LOCATION', 'CELESTE'); // CELESTE, SD-25137
|
2010-09-22 15:27:56 +00:00
|
|
|
if (in_array(ENVIRONNEMENT, array('REC', 'DEV'))) {
|
2011-09-29 15:08:28 +00:00
|
|
|
//Webservice : accès CELESTE
|
2010-09-22 15:27:56 +00:00
|
|
|
define ('WEBSERVICE_URL','http://78.31.45.206/ws2/');
|
|
|
|
define ('WEBSERVICE_URI','http://78.31.45.206/');
|
|
|
|
} else {
|
2011-09-29 15:08:28 +00:00
|
|
|
//Webservice : accès SD-25137
|
|
|
|
if (LOCATION == 'SD-25137') {
|
|
|
|
define ('WEBSERVICE_URL','http://88.190.14.56:8088/ws/');
|
|
|
|
define ('WEBSERVICE_URI','http://88.190.14.56:8088/');
|
|
|
|
}
|
|
|
|
//Webservice : accès CELESTE
|
|
|
|
elseif (LOCATION == 'CELESTE') {
|
|
|
|
define ('WEBSERVICE_URL','http://78.31.45.206:8088/ws/');
|
|
|
|
define ('WEBSERVICE_URI','http://78.31.45.206:8088/');
|
|
|
|
}
|
2010-09-22 15:27:56 +00:00
|
|
|
}
|
2010-01-22 08:58:39 +00:00
|
|
|
|
|
|
|
//Webservice INFOGREFFE
|
|
|
|
define ('INFOGREFFE_WS_URL','https://webservices.infogreffe.fr/WSContextInfogreffe/INFOGREFFE');
|
|
|
|
define ('INFOGREFFE_WS_URI','https://webservices.infogreffe.fr/');
|
|
|
|
define ('INFOGREFFE_WS_USER','85000109');
|
|
|
|
define ('INFOGREFFE_WS_PASS','166');
|
|
|
|
|
2010-02-10 17:27:03 +00:00
|
|
|
//Paramètres accès aux actes par ftp
|
2010-01-22 08:58:39 +00:00
|
|
|
define ('FTPACTES_HOST','ftp2.scores-decisions.com');
|
|
|
|
define ('FTPACTES_USER','inpi');
|
|
|
|
define ('FTPACTES_PASS','coface');
|
|
|
|
|
|
|
|
define('INFOGREFFE_WS_REF','ref');
|
2011-03-30 14:04:17 +00:00
|
|
|
|
|
|
|
// Varaibale de definition de retour fonction BOOL.
|
|
|
|
define ('EXIT_SUCCESS', 0);
|
|
|
|
define ('EXIT_FAILURE', 1);
|
|
|
|
|
|
|
|
//Varibale de Gaint
|
|
|
|
define ('__PAGE_DIRECTORY_GIANT_', 'giant');
|
|
|
|
|
2010-01-22 08:58:39 +00:00
|
|
|
?>
|