. * */ require_once('../inc/lib_base.php'); $sourceDir=$_GET['sourcedir']; $targetDir=$_GET['targetdir']; $source=$_GET['source']; $target=$_GET['target']; if(isset($_SESSION['username']) and $_SESSION['username'] and strpos($sourceDir,'..')===false and strpos($source,'..')===false and strpos($targetDir,'..')===false and strpos($target,'..')===false){ $target=$CONFIG_DATADIRECTORY.'/'.$targetDir.'/'.$target.'/'.$source; $source=$CONFIG_DATADIRECTORY.'/'.$sourceDir.'/'.$source; rename($source,$target); } ?>