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->foldername=str_replace(array("..","/"),"",$_GET['FolderName']); } function run() { if ($this->delDir($this->real_cwd.'/'.$this->foldername)) { $err_no=0; } else { $err_no=402; } header ("content-type: text/xml"); echo "\n"; ?> " /> delDir($dir.'/'.$entry); } else { $thumb=$dir.'/.thumb_'.$entry; if (file_exists($thumb)) if (!unlink($thumb)) return false; if (!unlink($dir.'/'.$entry)) return false; } } } closedir($dh); return rmdir($dir); } else { return false; } } } ?>