From d66c1bc05ee36ab2a7095687bd01aa3da4e68888 Mon Sep 17 00:00:00 2001 From: wangchunsheng Date: Mon, 4 Apr 2011 07:40:26 +0000 Subject: [PATCH] * these code should moved to the zentaoext repo. --- module/file/control.php | 4 ---- 1 file changed, 4 deletions(-) diff --git a/module/file/control.php b/module/file/control.php index 1143313827..4878d0d050 100644 --- a/module/file/control.php +++ b/module/file/control.php @@ -21,8 +21,6 @@ class file extends control */ public function buildForm($fileCount = 2, $percent = 0.9) { - $sumSize = $this->config->pms->dbSize + $this->config->pms->fileSize; - if($sumSize > $this->config->file->maxSize)die('超过最大容量,无法上传,付费可继续上传!'); if(!file_exists($this->file->savePath)) { printf($this->lang->file->errorNotExists, $this->file->savePath); @@ -46,8 +44,6 @@ class file extends control */ public function ajaxUpload() { - $sumSize = $this->config->pms->dbSize + $this->config->pms->fileSize; - if($sumSize > $this->config->file->maxSize)die('超过最大容量,无法上传,付费可继续上传!'); $file = $this->file->getUpload('imgFile'); $file = $file[0]; if($file)