--- docman.php 2000/08/03 19:35:44 1.3 +++ docman.php 2000/08/04 10:07:04 1.6 @@ -157,19 +157,19 @@
-= $text ?>
= date($GLOBALS[gblDateFmt]) ?> - = date($GLOBALS[gblTimeFmt]) ?> - = $GLOBALS[gblUserName] ?> - [logout] + [?relogin== $GLOBALS[gblPw] ?>">logout]file size: " . $fsize . " Bytes" ; + $fsize = filesize($fsPath) ; + $fmodified = date("$GLOBALS[gblDateFmt] $GLOBALS[gblTimeFmt]", filemtime($fsPath)) ; + $faccessed = date("$GLOBALS[gblDateFmt] $GLOBALS[gblTimeFmt]", fileatime($fsPath)) ; + echo "
" ; - echo "last modified: " . $fmodified . "
" ; - echo "last accessed: " . $faccessed . "
" ; - echo " owner: " . fileowner($fsPath) . "
" ; - echo " group: " . filegroup($fsPath) . "
" ; - echo " permissions: " ; - echo printf( "%o", fileperms($fsPath) ) . "" ; - echo "
file size: " . $fsize . " Bytes" ; } - if ( $editable && ($writable || !$exists) ) { + if ( $editable && ($writable || !$exists) && !$file_lock ) { $fh = fopen($fsPath,"a+") ; rewind($fh) ; $fstr = fread($fh,filesize($fsPath)) ; @@ -276,39 +277,50 @@ $fstr = htmlentities( $fstr ) ; ?> - " ; + echo htmlentities($tstr) . "
" ; + echo "last modified: " . $fmodified . "
" ; + echo "last accessed: " . $faccessed . "
" ; + echo " owner: " . fileowner($fsPath) . "
" ; + echo " group: " . filegroup($fsPath) . "
" ; + echo " permissions: " ; + echo printf( "%o", fileperms($fsPath) ) . "" ; + echo "