禁止小文件代理功能

This commit is contained in:
wlx 2012-04-11 09:25:01 +00:00
parent a9de3ae4a7
commit 6249d1b4ca
1 changed files with 2 additions and 2 deletions

View File

@ -1043,7 +1043,7 @@ class DataController extends Zend_Controller_Action
//判断FTP URL是否附带了用户名和密码
if ($p['host']=='ftp.westgis.ac.cn')
$url='ftp://'.$this->view->config->ftp->user.':'.$this->view->config->ftp->password.'@ftp.westgis.ac.cn'.$p['path'];
if (!$bigfile &&is_file($url) && file_exists($url))
/*if (!$bigfile &&is_file($url) && file_exists($url))
{
$this->_helper->layout->disableLayout();
$this->_helper->viewRenderer->setNoRender();
@ -1059,7 +1059,7 @@ class DataController extends Zend_Controller_Action
->setHeader('Cache-Control','must-revalidate, post-check=0, pre-check=0')
->setHeader('Pragma','public')
->setBody($content);
} else {
} else */{
//是一个FTP返回用户名称和密码说明
if ($p['host']=='ftp.westgis.ac.cn')
{