修复在线下载的ftp地址

This commit is contained in:
wlx 2013-05-27 05:49:01 +00:00
parent 1c3cf94487
commit a9489cbe51
1 changed files with 3 additions and 2 deletions

View File

@ -1396,8 +1396,9 @@ class DataController extends Zend_Controller_Action
$this->view->userpass=$proftp->pwd; $this->view->userpass=$proftp->pwd;
$this->view->ftptime=$proftp->time; $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; //if ($updateftp || $updateftp1) $this->view->userpass=$password;