Correction chemin et permission

This commit is contained in:
Michael RICOIS 2013-10-03 07:25:29 +00:00
parent 000aad0357
commit a67437a3d1
2 changed files with 6 additions and 4 deletions

View File

@ -79,7 +79,7 @@ if ( $result->count() > 0 ) {
DIRECTORY_SEPARATOR . 'recv' .
DIRECTORY_SEPARATOR . $item->fileOut;
switch ($item->typeDepot) {
switch ($item->depotType) {
case 'FTP':
$dest = $c->profil->path->ftp .
DIRECTORY_SEPARATOR . $item->client .
@ -97,7 +97,7 @@ if ( $result->count() > 0 ) {
if ( copy($source, $dest) ) {
chown($dest, $user);
chown($dest, $item->client);
$fluxM->update(array(
'depotDate' => date('YmdHis'),
@ -106,7 +106,7 @@ if ( $result->count() > 0 ) {
$subject = "[Flux] - Envoi d'un fichier " . $item->client;
$txt = "Envoi d'un fichier après traitement\n";
$txt.= "Client : ".$item->client."\n";
$txt.= "Mode de transmission : ".$item->typeDepot."\n";
$txt.= "Mode de transmission : ".$item->depotType."\n";
$txt.= "Fichier : ".$item->fileOut."\n";
$mail = new Zend_Mail('UTF-8');

View File

@ -15,7 +15,9 @@ autoloaderNamespaces[] = "Metier_"
; Scores configuration
profil.path.data = "/home/data"
profil.path.storage = "/home/data"
profil.path.storage = "/home/data/clients"
profil.path.ftp = "/home/data/ftp"
profil.path.sftp = "/home/data/sftp"
; Database configuration
profil.db.metier.adapter=mysqli