-->-->-->-->-->-->-->-->-->-->-->-->--> $bNewFile = false; $sFilePath = ''; $sFileContents = ''; $aaTextLines = ''; $sFilePath = $_GET['file']; $sFilePath = "/usr50/home/retrovox".$sFilePath; $sFilePathEncoded = htmlspecialchars($sFilePath); $sWebFilePathEncoded = htmlspecialchars(str_replace("public_html", "", $sFilePath)); $iEditorColumns = $_GET['cols']; $iEditorRows = $_GET['rows']; if ($iEditorColumns == '') { $iEditorColumns = 80; } if ($iEditorRows = '') { $iEditorRows = 80; } if ($sFilePath == '/usr50/home/retrovox') { echo " Retrovox Notepad, (No file name specified)

No file name specified

You did not specify any file to be edited


Try Again "; //-- is this possible return; } //-- if no file specified if (is_dir($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
  2. View the contents of the directory (folder) [If it is accessible from the web]
"; return; } //-- if file is a directory if (file_exists($sFilePath)) { echo " Retrovox Notepad, (The file already exists)

The path is a directory

The file-name [$sFilePathEncoded] already exists.


  1. Re-enter the file name
  2. Edit the existing file
"; return; } //-- if file exists if (!is_writable($sFilePath)) { echo " Retrovox Notepad, (File is not writable)

The file path is not writable

The file-path [$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. This could also indicate that you have entered a directory path incorrectly.


  1. Re-enter the file name
"; return; } //-- if file is not writeable $bNewFile = true; //--<--<--<--<--<--<--<--<--<--<--<--<--<--< ?> Retrovox Notepad

The Retrovox Notepad


Editing file: