--- docman.php 2000/08/03 19:35:44 1.3 +++ docman.php 2000/08/04 11:25:05 1.11 @@ -65,9 +65,7 @@ TODO: mixed file/directory output (add type to each entry, real support for links) - add more content-management (like cms.sourceforge.net): - check-out/check-in/reserve - comments to files + retrieve old versions of files (overwritten) */ ////////////////////////////////////////////////////////////////// @@ -157,19 +155,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,17 +275,17 @@ $fstr = htmlentities( $fstr ) ; ?> - - $logname=dirname("$fsDir/$fn")."/.log/".basename("$fsDir/$fn"); +
" ; + echo "last modified: " . $fmodified . "
" ; + echo "last accessed: " . $faccessed . "
" ; + echo " owner: " . fileowner($fsPath) . "
" ; + echo " group: " . filegroup($fsPath) . "
" ; + echo " permissions: " ; + echo printf( "%o", fileperms($fsPath) ) . "" ; + echo "
$line[0] | $line[1] | $line[2] | $line[3] |
$e[1] | $e[2] | $e[3] | $e[4] |