From a67437a3d167a5ddcb9d1ce38d9e8cc985b21571 Mon Sep 17 00:00:00 2001 From: Michael RICOIS Date: Thu, 3 Oct 2013 07:25:29 +0000 Subject: [PATCH] Correction chemin et permission --- fileRecv.php | 6 +++--- scripts/build/Ftp/application.ini | 4 +++- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/fileRecv.php b/fileRecv.php index f936c55..0eed82a 100644 --- a/fileRecv.php +++ b/fileRecv.php @@ -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'); diff --git a/scripts/build/Ftp/application.ini b/scripts/build/Ftp/application.ini index f204de5..6676bf9 100644 --- a/scripts/build/Ftp/application.ini +++ b/scripts/build/Ftp/application.ini @@ -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