fckphp_config=$fckphp_config; $this->type=$type; $this->raw_cwd=$cwd; $this->actual_cwd=str_replace("//","/",($this->fckphp_config['UserFilesPath']."/$type/".$this->raw_cwd)); $this->real_cwd=str_replace("//","/",($this->fckphp_config['basedir']."/".$this->actual_cwd)); $this->filename=str_replace(array("..","/"),"",$_GET['FileName']); } function run() { $result1=false; $result2=true; $thumb=$this->real_cwd.'/.thumb_'.$this->filename; $result1=unlink($this->real_cwd.'/'.$this->filename); if (file_exists($thumb)) $result2=unlink($thumb); header ("content-type: text/xml"); echo "\n"; ?> " />