add ftp2 support

This commit is contained in:
wlx 2013-05-26 01:48:14 +00:00
parent 80dd8d2c76
commit 9938873d23
1 changed files with 7 additions and 1 deletions

View File

@ -548,6 +548,9 @@ class Admin_DataController extends Zend_Controller_Action
if ($host=='ftp1.westgis.ac.cn') if ($host=='ftp1.westgis.ac.cn')
{ {
file_get_contents("http://ftp1.westgis.ac.cn/proftp_upload.php?uuid=".$uuid."&filelist=1"); 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) if($ds)
@ -588,6 +591,9 @@ class Admin_DataController extends Zend_Controller_Action
if ($host=='ftp1.westgis.ac.cn') if ($host=='ftp1.westgis.ac.cn')
{ {
file_get_contents("http://ftp1.westgis.ac.cn/proftp_upload.php?uuid=".$uuid."&filelist=1"); 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) if($ds)