-->-->-->-->-->-->-->-->-->-->-->-->--> $sFilePath = ''; $sFilePath = $_GET['old-name']; $sFilePathEncoded = htmlspecialchars($sFilePath); $sNewFilePath = $_GET['new-name']; $sNewFilePathEncoded = htmlspecialchars($sNewFilePath); if (substr($sFilePath, 0, 1) != "/") { $sFilePath = "/$sFilePath"; } if (!strstr($sFilePath, "/usr50/home/retrovox")) { $sFilePath = "/usr50/home/retrovox".$sFilePath; } $sWebFilePathEncoded = htmlspecialchars( str_replace("/usr50/home/retrovox/public_html", "", $sFilePath)); if (substr($sNewFilePath, 0, 1) != "/") { $sNewFilePath = "/$sNewFilePath"; } if (!strstr($sNewFilePath, "/usr50/home/retrovox")) { $sNewFilePath = "/usr50/home/retrovox".$sNewFilePath; } $sWebNewFilePathEncoded = htmlspecialchars( str_replace("/usr50/home/retrovox/public_html", "", $sNewFilePath)); $bStripSlashes = $_GET['stripslash']; if ($sFilePath == '/usr50/home/retrovox') { echo "
You did not specify any file to be edited
You did not specify the target name of the file to be copied
The file-name [$sFilePathEncoded] which you just specified is a directory (folder). The Retrovox Notepad system is for editing text files located on the server.
The file-name [$sFilePathEncoded] which you just specified has its permissions set so that is cannot be edited (updated or modified in any way). You can overcome this problem by typing
chmod a+w $sFilePath
when you are logged into the retrovox server.
The file-name [$sFilePathEncoded] which you just specified does not exist and therefore cannot be copied or renamed
The file: =$sFilePathEncoded?>
was copied to: =$sNewFilePathEncoded?>