-->-->-->-->-->-->-->-->-->-->-->-->--> $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 "
You did not specify any file to be edited
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] already exists.
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.