add ftp1 online download info

This commit is contained in:
wlx 2012-07-12 04:10:08 +00:00
parent 189ca93957
commit 099f394d40
1 changed files with 13 additions and 1 deletions

View File

@ -1164,6 +1164,18 @@ class DataController extends Zend_Controller_Action
{ {
//添加FTP1帐号信息以及时间控制信息只更新一次 //添加FTP1帐号信息以及时间控制信息只更新一次
$updateftp1=true; $updateftp1=true;
$proftp=new Proftp();
//proftp离线用户名和g6的用户名稍有不同
$this->view->username='westdc_'.Zend_Auth::getInstance()->getIdentity()->id;
$uu=(object)array("id"=>$userid,
"username"=>$this->view->username,
"password"=>$this->view->userpass,
"host"=>'ftp1.westgis.ac.cn',
"param"=>"onlineappid=".
"maxdata"=>$this->view->config->download->max,
"time"=>$this->view->ftptime,
"datacount"=>$datacount);
} }
if ($p['host']=='ftp.westgis.ac.cn') if ($p['host']=='ftp.westgis.ac.cn')
{ {