Configuration

This commit is contained in:
Michael RICOIS 2013-10-29 13:47:37 +00:00
parent 0b38f0d7ce
commit 9751f545c5
9 changed files with 41 additions and 2 deletions

View File

@ -0,0 +1,3 @@
<?php
require_once realpath(dirname(__FILE__)).'/mysql.php';
require_once realpath(dirname(__FILE__)).'/stockage.php';

View File

@ -0,0 +1,9 @@
<?php
// Base de données de S&D
define('MYSQL_HOST', '195.154.170.169');
define('MYSQL_PORT', '53336');
define('MYSQL_USER', 'wsuser');
define('MYSQL_PASS', 'wspass2012');
define('MYSQL_DEFAULT_DB', 'jo');
define('MYSQL_SQL_LOG', 'NONE');

View File

@ -0,0 +1,8 @@
<?php
/** Dossiers locaux pour les documents a telecharger (PDF kbis, marques, etc...) **/
define('DOC_WEB_LOCAL', '/home/vhosts/data/enrichissement/');
define('DOC_WEB_URL', '/data/');
/** LOGGING **/
define('LOG_PATH', '/home/vhosts/data/enrichissement/log');

View File

@ -0,0 +1,9 @@
<?php
// Base de données de S&D
define('MYSQL_HOST', '195.154.170.169');
define('MYSQL_PORT', '53336');
define('MYSQL_USER', 'wsuser');
define('MYSQL_PASS', 'wspass2012');
define('MYSQL_DEFAULT_DB', 'jo');
define('MYSQL_SQL_LOG', 'NONE');

View File

@ -0,0 +1,8 @@
<?php
/** Dossiers locaux pour les documents a telecharger (PDF kbis, marques, etc...) **/
define('DOC_WEB_LOCAL', realpath('C:/Users/mricois/www/dataenrichissement/').'/');
define('DOC_WEB_URL', '/data/');
/** LOGGING **/
define('LOG_PATH', realpath('C:/Users/mricois/www/dataenrichissement/log/'));

View File

@ -21,6 +21,8 @@ $appconfigDir = APPLICATION_PATH.'/configs';
$hostname = exec('echo $(hostname)');
copy($configDir.'/'.$hostname.'/application.ini', $appconfigDir.'/application.ini');
copy($configDir.'/'.$hostname.'/mysql.php', $appconfigDir.'/mysql.php');
copy($configDir.'/'.$hostname.'/stockage.php', $appconfigDir.'/stockage.php');
/** Zend_Application */
require_once 'Zend/Application.php';

View File

@ -277,7 +277,7 @@ if (ini_get('apc.enable_cli')) {
$config = new Zend_Config($application->getOptions());
Zend_Registry::set('config', $config);
try {
$db = Zend_Db::factory($config->profil->db->local);
$db = Zend_Db::factory($config->resources->db);
$dbJo = Zend_Db::factory($config->profil->db->jo);
} catch ( Exception $e ) {
exit ( $e->getMessage() );
@ -315,7 +315,7 @@ if ($opts->id) {
}
//Chargement des classes metier
require_once realpath(dirname(__FILE__)).'/../config/config.php';
require_once APPLICATION_PATH.'/configs/config.php';
require_once 'framework/fwk.php';
require_once 'Metier/insee/classMInsee.php';