-->-->-->-->-->-->-->-->-->-->-->-->--> $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 " Retrovox Copy File (No file name specified)

No file name specified

You did not specify any file to be edited


  1. Try Again
"; exit; } //-- if no file specified if ($sNewFilePath == '/usr50/home/retrovox') { echo " Retrovox Copy File (No file name specified)

No target file name specified

You did not specify the target name of the file to be copied


  1. Try Again
"; exit; } //-- if no file specified if (is_dir($sFilePath)) { if (substr($sFilePath, -1) != "/") { $sFilePath = "$sFilePath/"; } echo " Retrovox Notepad, (The path is a directory)

The path is a directory

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.


  1. Re-enter the file name
    "; $dh = opendir($sFilePath); while (false !== ($sMemberFileName = readdir($dh))) { echo "
  1. $sFilePath$sMemberFileName
  2. \n"; } echo "
"; return; } //-- if file is a directory /* if (!is_writable($sFilePath)) { echo " Retrovox Notepad, (File is not writable)

The file is not writable

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.


  1. Re-enter the file name
"; return; } //-- if file not writeable */ if (!file_exists($sFilePath)) { echo " Retrovox Notepad, (File does not exist)

The file does not exist

The file-name [$sFilePathEncoded] which you just specified does not exist and therefore cannot be copied or renamed


  1. Re-enter the file name
"; exit; } else { copy($sFilePath, $sNewFilePath); } //--<--<--<--<--<--<--<--<--<--<--<--<--<--< ?> Retrovox copy file

The Retrovox move file

The file:
was copied to:

  1. Copy again
  2. Edit (If its a text file)
  3. Edit (If its a text file)