fckphp_config=$fckphp_config; $this->type=$type; $this->raw_cwd=$cwd; $this->actual_cwd=str_replace("//","/",($fckphp_config['UserFilesPath']."/$type/".$this->raw_cwd)); $this->real_cwd=str_replace("//","/",($this->fckphp_config['basedir']."/".$this->actual_cwd)); } function run() { header ("content-type: text/xml"); echo "\n"; ?> real_cwd)) { while (($filename=readdir($dh))!==false) { if (($filename!=".")&&($filename!="..")) { if (is_dir($this->real_cwd."/$filename")) { //check if$fckphp_configured not to show this folder $hide=false; for($i=0;$ifckphp_config['ResourceAreas'][$this->type]['HideFolders']);$i++) $hide=(ereg($this->fckphp_config['ResourceAreas'][$this->type]['HideFolders'][$i],$filename)?true:$hide); if (!$hide) echo "\n"; } } } closedir($dh); } ?>