From 9938873d23e2420b5af66fb444b8facd40ec3d8c Mon Sep 17 00:00:00 2001 From: wlx Date: Sun, 26 May 2013 01:48:14 +0000 Subject: [PATCH] add ftp2 support --- application/admin/controllers/DataController.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/application/admin/controllers/DataController.php b/application/admin/controllers/DataController.php index d9081ccb..d7141c4d 100755 --- a/application/admin/controllers/DataController.php +++ b/application/admin/controllers/DataController.php @@ -548,7 +548,10 @@ class Admin_DataController extends Zend_Controller_Action if ($host=='ftp1.westgis.ac.cn') { file_get_contents("http://ftp1.westgis.ac.cn/proftp_upload.php?uuid=".$uuid."&filelist=1"); - } + } else if ($host=='ftp2.westgis.ac.cn') + { + file_get_contents("http://ftp2.westgis.ac.cn/proftp_upload.php?uuid=".$uuid."&filelist=1"); + } if($ds) { @@ -588,6 +591,9 @@ class Admin_DataController extends Zend_Controller_Action if ($host=='ftp1.westgis.ac.cn') { file_get_contents("http://ftp1.westgis.ac.cn/proftp_upload.php?uuid=".$uuid."&filelist=1"); + } else if ($host=='ftp2.westgis.ac.cn') + { + file_get_contents("http://ftp2.westgis.ac.cn/proftp_upload.php?uuid=".$uuid."&filelist=1"); } if($ds)