From e11a218226af3dc5a861924bf3be09e377767025 Mon Sep 17 00:00:00 2001 From: pcanterino <> Date: Fri, 24 Dec 2010 13:19:40 +0000 Subject: [PATCH 1/1] - Some color changes - Removed unused code in Tool.pm --- modules/Tool.pm | 2 -- templates/dirlist_dir.htm | 4 ++-- templates/dirlist_file.htm | 6 +++--- 3 files changed, 5 insertions(+), 7 deletions(-) diff --git a/modules/Tool.pm b/modules/Tool.pm index ccb78af..e810c8b 100644 --- a/modules/Tool.pm +++ b/modules/Tool.pm @@ -287,8 +287,6 @@ sub in_array($$) return 1 if($string eq $element); } - #foreach - return; } diff --git a/templates/dirlist_dir.htm b/templates/dirlist_dir.htm index 0908849..0fbd9e3 100644 --- a/templates/dirlist_dir.htm +++ b/templates/dirlist_dir.htm @@ -1,7 +1,7 @@ - + [SUBDIR] {DATE}{IF gmt} (GMT){ENDIF} -{IF !forbidden}{IF readable}{DIR_NAME}/{ELSE}{DIR_NAME}/{ENDIF}{ELSE}{DIR_NAME}/{ENDIF} +{IF !forbidden}{IF readable}{DIR_NAME}/{ELSE}{DIR_NAME}/{ENDIF}{ELSE}{DIR_NAME}/{ENDIF} ({IF !forbidden}{IF readable}Copy | {ENDIF}{IF dir_writeable}Rename | Delete |{ENDIF}{IF users} Chmod/Chgrp |{ENDIF} {ENDIF}View in Browser) diff --git a/templates/dirlist_file.htm b/templates/dirlist_file.htm index 5b9b734..4f6192a 100644 --- a/templates/dirlist_file.htm +++ b/templates/dirlist_file.htm @@ -1,7 +1,7 @@ - + {SIZE} {DATE}{IF gmt} (GMT){ENDIF} -{IF forbidden}{FILE_NAME}{ELSE}{FILE_NAME}{ENDIF} -({IF !forbidden}{IF viewable}View{ELSE}View{ENDIF} | {IF editable}Edit{ELSE}Edit{ENDIF}{IF !link}{IF readable}| Download | Copy{ENDIF}{ENDIF}{IF dir_writeable} | Rename | Delete{ENDIF} |{IF !link}{IF users} Chmod/Chgrp |{ENDIF}{ENDIF} {ENDIF}View in Browser) +{IF forbidden}{FILE_NAME}{ELSE}{FILE_NAME}{ENDIF} +({IF !forbidden}{IF viewable}View{ELSE}View{ENDIF} | {IF editable}Edit{ELSE}Edit{ENDIF}{IF !link}{IF readable}| Download | Copy{ENDIF}{ENDIF}{IF dir_writeable} | Rename | Delete{ENDIF} |{IF !link}{IF users} Chmod/Chgrp |{ENDIF}{ENDIF} {ENDIF}View in Browser) -- 2.34.1