Delete files
This commit is contained in:
parent
9751f545c5
commit
7b0d69e7dc
@ -1,42 +0,0 @@
|
||||
[production]
|
||||
phpSettings.date.timezone = "Europe/Paris"
|
||||
phpSettings.display_startup_errors = 0
|
||||
phpSettings.display_errors = 0
|
||||
bootstrap.path = APPLICATION_PATH "/Bootstrap.php"
|
||||
bootstrap.class = "Bootstrap"
|
||||
appnamespace = "Application"
|
||||
resources.frontController.controllerDirectory = APPLICATION_PATH "/controllers"
|
||||
resources.frontController.params.displayExceptions = 0
|
||||
autoloaderNamespaces[] = "Application_"
|
||||
resources.layout.layout = "main"
|
||||
resources.layout.layoutPath = APPLICATION_PATH "/views"
|
||||
resources.view.basePath = APPLICATION_PATH "/views"
|
||||
|
||||
; Scores configuration
|
||||
profil.server.name = sdsrvdev01
|
||||
profil.webservice.location = local
|
||||
profil.mail.method = smtp
|
||||
profil.mail.smtp_host = smtp.free.fr
|
||||
profil.mail.email.support = support@scores-decisions.com
|
||||
profil.mail.email.supportdev = supportdev@scores-decisions.com
|
||||
profil.path.data = "/home/vhosts/data/enrichissement"
|
||||
profil.db.adapter=mysqli
|
||||
profil.db.params.host=127.0.0.1
|
||||
profil.db.params.username=enrichissement
|
||||
profil.db.params.password=aY5EWvtMmXrqKwK8
|
||||
profil.db.params.dbname=enrichissement
|
||||
profil.db.params.driver_options.MYSQLI_INIT_COMMAND = "SET NAMES utf8"
|
||||
|
||||
[staging : production]
|
||||
resources.frontController.params.displayExceptions = 0
|
||||
phpSettings.soap.wsdl_cache_enabled = 0
|
||||
|
||||
[development : production]
|
||||
phpSettings.display_startup_errors = 1
|
||||
phpSettings.display_errors = 1
|
||||
phpSettings.soap.wsdl_cache_enabled = 0
|
||||
resources.frontController.params.displayExceptions = 1
|
||||
|
||||
[testing : production]
|
||||
phpSettings.display_startup_errors = 1
|
||||
phpSettings.display_errors = 1
|
@ -1,9 +0,0 @@
|
||||
<?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');
|
@ -1,8 +0,0 @@
|
||||
<?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');
|
||||
|
@ -1,3 +0,0 @@
|
||||
<?php
|
||||
require_once realpath(dirname(__FILE__)).'/mysql.php';
|
||||
require_once realpath(dirname(__FILE__)).'/stockage.php';
|
@ -1,81 +0,0 @@
|
||||
#!/usr/bin/php
|
||||
<?php
|
||||
|
||||
// Paramètres
|
||||
if ( $argc < 1 || in_array($argv[1], array('--help', '-help', '-h', '-?')) ) {
|
||||
?>
|
||||
Installation
|
||||
Avec les options --help, -help, -h, et -?, vous obtiendrez cette aide.
|
||||
|
||||
Utilisation : <?php echo $argv[0]; ?> [action]
|
||||
|
||||
action :
|
||||
--install : Configuration
|
||||
|
||||
<?php
|
||||
exit;
|
||||
}
|
||||
|
||||
$action = $argv[1];
|
||||
$hostname = exec('echo $(hostname)');
|
||||
$wwwroot = realpath(dirname(__FILE__).'/../../');
|
||||
|
||||
switch ($action)
|
||||
{
|
||||
case '--install':
|
||||
writeConfig();
|
||||
changePermission();
|
||||
break;
|
||||
}
|
||||
|
||||
/**
|
||||
* Vérfie si l'utilisateur est ROOT
|
||||
*/
|
||||
function isRoot()
|
||||
{
|
||||
$uid = exec('echo $(id -u)');
|
||||
if ((int) $uid == 0){
|
||||
return true;
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
function changePermission()
|
||||
{
|
||||
passthru('chown -R www-data: '.realpath(dirname(__FILE__).'/../'));
|
||||
passthru('chmod -R +x '.realpath(dirname(__FILE__).'/../batch/').'/*.php');
|
||||
}
|
||||
|
||||
function changePrimarySymlink()
|
||||
{
|
||||
global $wwwroot;
|
||||
passthru('rm '.$wwwroot.'/webservice');
|
||||
passthru('ln -s '.realpath(dirname(__FILE__).'/../').' '.$wwwroot.'/webservice');
|
||||
}
|
||||
|
||||
function writeConfig()
|
||||
{
|
||||
global $hostname;
|
||||
|
||||
//Copie de la configuration
|
||||
$configDir = realpath(dirname(__FILE__)).'';
|
||||
$appconfigDir = '../application/configs';
|
||||
$hostname = exec('echo $(hostname)');
|
||||
|
||||
passthru('cp -fv '.
|
||||
$configDir.'/'.$hostname.'/application.ini' . ' ' .
|
||||
$appconfigDir.'/application.ini');
|
||||
|
||||
$arrayConfig = array(
|
||||
'mysql.php',
|
||||
'stockage.php',
|
||||
);
|
||||
foreach($arrayConfig as $config) {
|
||||
passthru('cp -v '.
|
||||
realpath(dirname(__FILE__)).'/'.$hostname.'/'.$config.' ' .
|
||||
realpath(dirname(__FILE__)).'/'.$config);
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -1,42 +0,0 @@
|
||||
[production]
|
||||
phpSettings.date.timezone = "Europe/Paris"
|
||||
phpSettings.display_startup_errors = 0
|
||||
phpSettings.display_errors = 0
|
||||
bootstrap.path = APPLICATION_PATH "/Bootstrap.php"
|
||||
bootstrap.class = "Bootstrap"
|
||||
appnamespace = "Application"
|
||||
resources.frontController.controllerDirectory = APPLICATION_PATH "/controllers"
|
||||
resources.frontController.params.displayExceptions = 0
|
||||
autoloaderNamespaces[] = "Application_"
|
||||
resources.layout.layout = "main"
|
||||
resources.layout.layoutPath = APPLICATION_PATH "/views"
|
||||
resources.view.basePath = APPLICATION_PATH "/views"
|
||||
|
||||
; Scores configuration
|
||||
profil.server.name = local
|
||||
profil.webservice.location = local
|
||||
profil.mail.method = smtp
|
||||
profil.mail.smtp_host = smtp.free.fr
|
||||
profil.mail.email.support = support@scores-decisions.com
|
||||
profil.mail.email.supportdev = supportdev@scores-decisions.com
|
||||
profil.path.data = "C:\Users\mricois\www\dataenrichissement"
|
||||
profil.db.adapter=mysqli
|
||||
profil.db.params.host=127.0.0.1
|
||||
profil.db.params.username=root
|
||||
profil.db.params.password=password
|
||||
profil.db.params.dbname=enrichissement
|
||||
profil.db.params.driver_options.MYSQLI_INIT_COMMAND = "SET NAMES utf8"
|
||||
|
||||
[staging : production]
|
||||
resources.frontController.params.displayExceptions = 0
|
||||
phpSettings.soap.wsdl_cache_enabled = 0
|
||||
|
||||
[development : production]
|
||||
phpSettings.display_startup_errors = 1
|
||||
phpSettings.display_errors = 1
|
||||
phpSettings.soap.wsdl_cache_enabled = 0
|
||||
resources.frontController.params.displayExceptions = 1
|
||||
|
||||
[testing : production]
|
||||
phpSettings.display_startup_errors = 1
|
||||
phpSettings.display_errors = 1
|
@ -1,9 +0,0 @@
|
||||
<?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');
|
@ -1,8 +0,0 @@
|
||||
<?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/'));
|
||||
|
Loading…
Reference in New Issue
Block a user