thumbPath : $this->imgPath).$imgname; } function FileIO($parameter='', $ENV){ $this->path = $ENV['PATH']; $this->imgPath = $this->path.$ENV['IMG']; $this->thumbPath = $this->path.$ENV['THUMB']; } function init(){ return true; } function imageExists($imgname){ return file_exists($this->_getImagePhysicalPath($imgname)); } function deleteImage($imgname){ if(is_array($imgname)){ foreach($imgname as $i){ if(!@unlink($this->_getImagePhysicalPath($i))) return false; } return true; } else{ return @unlink($this->_getImagePhysicalPath($imgname)); } } function uploadImage($imgname='', $imgpath='', $imgsize=0){ return false; } function getImageFilesize($imgname){ return @filesize($this->_getImagePhysicalPath($imgname)); } function getImageURL($imgname){ return $this->getImageLocalURL($imgname); } } ?>