/[docman]/docman.php
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /docman.php

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.10 by dpavlin, Fri Aug 4 11:23:07 2000 UTC revision 1.13 by dpavlin, Wed Sep 6 10:49:15 2000 UTC
# Line 66  TODO: Line 66  TODO:
66          mixed file/directory output (add type to each entry,          mixed file/directory output (add type to each entry,
67                  real support for links)                  real support for links)
68          retrieve old versions of files (overwritten)          retrieve old versions of files (overwritten)
69            show last lock date
70            
71  */  */
72    
73  //////////////////////////////////////////////////////////////////  //////////////////////////////////////////////////////////////////
# Line 843  function Navigate($fsRoot,$relDir) { Line 845  function Navigate($fsRoot,$relDir) {
845  <TR><TD></TD><TD COLSPAN=5><HR></TD></TR>  <TR><TD></TD><TD COLSPAN=5><HR></TD></TR>
846    
847  <TR><TD></TD><TD COLSPAN=5>  <TR><TD></TD><TD COLSPAN=5>
848  To just view file without editing, select it's filename (<b>don't edit files which are opened this way!</b>)<br>  <?
849  To <b>edit</b> file select <?= $gblIcon("checkout") ?> to check-out  if (file_exists(".info.inc")) {
850  and edit it locally. After editing is over, select filename or <?= $gblIcon("checkin") ?> to check-in (update copy of file on server).<br>          include(".info.inc");
851  <by>If you select icon left from filename, you will get detailed information  }
852  about file, as well as delete, rename and annotation options.  ?>
853  </TD></TR>  </TD></TR>
854    
855  <TR><TD></TD><TD COLSPAN=5><HR></TD></TR>  <TR><TD></TD><TD COLSPAN=5><HR></TD></TR>
# Line 1299  function safe_rename($from,$to) { Line 1301  function safe_rename($from,$to) {
1301                  safe_rename("$fsDir/.log/$FN","$fsDir/.log/$NEWNAME");                  safe_rename("$fsDir/.log/$FN","$fsDir/.log/$NEWNAME");
1302                  safe_rename("$fsDir/.note/$FN","$fsDir/.note/$NEWNAME");                  safe_rename("$fsDir/.note/$FN","$fsDir/.note/$NEWNAME");
1303                  safe_rename("$fsDir/.lock/$FN","$fsDir/.lock/$NEWNAME");                  safe_rename("$fsDir/.lock/$FN","$fsDir/.lock/$NEWNAME");
1304                    for($i=0;$i<=$GLOBALS[gblNumBackups];$i++) {
1305                            safe_rename("$fsDir/.bak/$i/$FN","$fsDir/.bak/$i/$NEWNAME");
1306                    }
1307    
1308                  break ;                  break ;
1309    
# Line 1353  function safe_rename($from,$to) { Line 1358  function safe_rename($from,$to) {
1358          case "Co" :          case "Co" :
1359                  // checkout                  // checkout
1360                  Lock("$gblFsRoot/$relDir/$F");                  Lock("$gblFsRoot/$relDir/$F");
1361                    header("Content-Disposition: attachment; filename=$F" );
1362                  Header("Location: ".urlpath("$relDir/$F"));                  Header("Location: ".urlpath("$relDir/$F"));
1363                  exit;                  exit;
1364          case "Ci" :          case "Ci" :
# Line 1368  function safe_rename($from,$to) { Line 1374  function safe_rename($from,$to) {
1374          case "V" :          case "V" :
1375                  // view                  // view
1376                  LogIt("$gblFsRoot/$relDir/$F","viewed");                  LogIt("$gblFsRoot/$relDir/$F","viewed");
1377                    header("Content-Disposition: attachment; filename=$F" );
1378                  Header("Location: ".urlpath("$relDir/$F"));                  Header("Location: ".urlpath("$relDir/$F"));
1379                  exit;                  exit;
1380          }          }

Legend:
Removed from v.1.10  
changed lines
  Added in v.1.13

  ViewVC Help
Powered by ViewVC 1.1.26