From a9489cbe5119fbbe9b0538243e11917c5c550ff4 Mon Sep 17 00:00:00 2001 From: wlx Date: Mon, 27 May 2013 05:49:01 +0000 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=9C=A8=E7=BA=BF=E4=B8=8B?= =?UTF-8?q?=E8=BD=BD=E7=9A=84ftp=E5=9C=B0=E5=9D=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/default/controllers/DataController.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/application/default/controllers/DataController.php b/application/default/controllers/DataController.php index 97c132c1..0d0a72f7 100755 --- a/application/default/controllers/DataController.php +++ b/application/default/controllers/DataController.php @@ -1396,8 +1396,9 @@ class DataController extends Zend_Controller_Action $this->view->userpass=$proftp->pwd; $this->view->ftptime=$proftp->time; } - } - $ftpurl='ftp://'.$this->view->username.'@'.$data['host'].$data['path']; + } + $ftpurl='ftp://'.$this->view->username.'@'.$data['host']; + if ($data['host']=='ftp.westgis.ac.cn') $ftpurl.=$data['path']; //设置输出 //if ($updateftp || $updateftp1) $this->view->userpass=$password;