From 6f2b7b2343a1fd6293d62f1bc51b14c1f39eb144 Mon Sep 17 00:00:00 2001 From: wlx Date: Wed, 7 Nov 2012 03:58:59 +0000 Subject: [PATCH] add online ftp1 function --- application/default/controllers/DataController.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/application/default/controllers/DataController.php b/application/default/controllers/DataController.php index 3d7f7e20..19a6bed9 100755 --- a/application/default/controllers/DataController.php +++ b/application/default/controllers/DataController.php @@ -1206,8 +1206,12 @@ class DataController extends Zend_Controller_Action "param"=>"onlineappid=".$onlineappid, "maxdata"=>$this->view->config->download->max, "time"=>$this->view->ftptime, - "datacount"=>$datacount); - + "datacount"=>$datacount); + if ($proftp->createuser($uu)) + { + $this->view->userpass=$proftp->pwd; + $this->view->ftptime=$proftp->time; + } } if ($p['host']=='ftp.westgis.ac.cn') {