--- docman.php 2002/07/29 13:53:56 1.31 +++ docman.php 2002/07/29 14:17:05 1.32 @@ -244,8 +244,10 @@ include("$html/DetailPage-undelete.html"); include("$html/DetailPage-rename.html"); - } elseif (check_perm($relDir.$fn,$gblPermNote)) { - include("$html/DetailPage-note.html"); + } + + if (check_perm($relDir.$fn,$gblPermNote)) { + include("$html/DetailPage-note.html"); } print ""; @@ -533,6 +535,7 @@ global $gblEditable, $gblIcon, $gblModDays, $webRoot, $gblHide, $gblIgnoreUnknownFileType, $gblRepositoryDir, $gblLogin, $gblUserName, $gblDateFmt, $gblTimeFmt, + $gblPermNote, $fsRealmDir, $realm, $realm_sep, $html, $realm_config, $HTTP_GET_VARS, $HTTP_SERVER_VARS; @@ -607,8 +610,7 @@ $text .= "
Examine list of files changed in last day or all changes."; StartHTML("(Navigate)",$text) ; - echo "" ; + print "
" ; // updir (parent) bar if (chopsl($fsDir) != chopsl($fsRoot)) { @@ -626,7 +628,8 @@ return $out; } - if (! HTTP_GET_VAR("dsort")) $dsort = "name"; // default directory sort + $dsort = HTTP_GET_VAR("dsort"); + if (! isset($dsort)) $dsort = "name"; // default directory sort $dsort_arr = array( "name" => array ("rname", "note"), @@ -635,7 +638,8 @@ "rnote" => array ("name", "note") ); - if (! HTTP_GET_VAR("fsort")) $fsort = "name"; // default directory sort + $fsort = HTTP_GET_VAR("fsort"); + if (! isset($fsort)) $fsort = "name"; // default directory sort $fsort_arr = array( "name" => array ("rname", "note", "date", "size"), @@ -697,6 +701,12 @@ } $dir_url=$self."?D=".urlencode(chopsl($relDir)."/".$dir); + if (check_perm($relDir.$dir,$gblPermNote)) { + $note_html="".$gblIcon("note")."".$dirNote[$key]; + } else { + $note_html=$dirNote[$key]; + } + include("$html/Navigate-dirEntry.html"); } // iterate over dirs @@ -777,7 +787,11 @@ $file_url_html .= substr($file,5,strlen($file)-5) . "deleted"; } - $note_html="".$gblIcon("note")."".ReadNote($path); + if (check_perm($relDir.$file,$gblPermNote)) { + $note_html="".$gblIcon("note")."".$fileNote[$key]; + } else { + $note_html=$fileNote[$key]; + } $ext = strtolower(strrchr($file,".")) ; @@ -818,61 +832,31 @@ } // iterate over files } else { // end if no files -?> - - - - - - - - - + include("$html/Navigate-hr.html"); + + if (file_exists("$fsRealmDir/$realm".$realm_sep."info.inc")) { + print ""; + include("$html/Navigate-hr.html"); + } elseif (file_exists("$gblRepositoryDir/.info.inc")) { + print ""; + include("$html/Navigate-hr.html"); + } -"; -} elseif (file_exists("$gblRepositoryDir/.info.inc")) { - print ""; -} - - -?> - - - - -
- No files in this directory -
- - OK TO DELETE THIS EMPTY FOLDER? - - -

"; + include("$fsRealmDir/$realm".$realm_sep."info.inc"); + print "
"; + include("$gblRepositoryDir/.info.inc"); + print "
"; - include("$fsRealmDir/$realm".$realm_sep."info.inc"); - print "

"; - include("$gblRepositoryDir/.info.inc"); - print "

CREATE NEW - DIRECTORY -OR- - FILE :    - NAME - - - - - OR UPLOAD A FILE -
+ print ""; -