]> git.p6c8.net - devedit.git/commitdiff
- Don't display the file upload link in directory listing if Dev-Editor has no
authorpcanterino <>
Fri, 26 Nov 2004 17:35:58 +0000 (17:35 +0000)
committerpcanterino <>
Fri, 26 Nov 2004 17:35:58 +0000 (17:35 +0000)
  write access to this directory.
- Wrong variable "{DIRECTORY}" in error message "dir_no_create" - it should be
  "{DIR}".

errors.dat
templates/dirlist.htm

index 995e5f8ce97ee0991ad44f697a4c4cd4ae90f50b..25351c4993d9b3854369ee3085c1a3c7eebd908f 100644 (file)
@@ -7,7 +7,7 @@ copy_failed    = Could not copy '{FILE}' to '{NEW_FILE}'.
 create_ar      = You aren't allowed to create files and directories above the virtual root directory.
 delete_failed  = Could not delete file '{FILE}'.
 dircopy        = This editor is not able to copy directories.
-dir_no_create  = You have not enough permissions to create a file in the directory '{DIRECTORY}'.
+dir_no_create  = You have not enough permissions to create a file in the directory '{DIR}'.
 dir_not_exist  = The directory where you want to create this file or directory doesn't exist.
 dir_read_fail  = Reading of directory '{DIR}' failed.
 dir_replace    = You are not allowed to replace a directory.
index 4ce6c19b4b9c34bf5c2ce99c3b604c184090e71c..2db1617f13b0772f434c3d8787b76fd02d85681f 100644 (file)
 <td>{DIR} <input type="text" name="newfile"> <input type="submit" value="Create!"></td>
 </form>
 </tr>
-
+{IF dir_writeable}
 <tr>
 <td colspan="2"><a href="{SCRIPT}?command=upload&amp;file={DIR}">Upload a file</a></td>
 </tr>
-</table>
+{ENDIF}</table>
 
 <hr>
 

patrick-canterino.de