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)); $this->foldername=str_replace(array("..","/"),"",$_GET['FolderName']); $this->newname=str_replace(array("..","/"),"",$this->checkName($_GET['NewName'])); } function checkName($name) { $newName=""; for ($i=0;$ifckphp_config['DirNameAllowedChars'])) $newName.=$name[$i]; } return $newName; } function run() { $result1=false; if ($this->newname!='') { $result1=rename($this->real_cwd.'/'.$this->foldername,$this->real_cwd.'/'.$this->newname); } header ("content-type: text/xml"); echo "\n"; ?> " />