/[docman2]/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.42 by dpavlin, Wed Oct 1 15:40:30 2003 UTC revision 1.43 by dpavlin, Thu Oct 30 18:09:06 2003 UTC
# Line 299  function DetailPage($fsRoot,$relDir,$fn) Line 299  function DetailPage($fsRoot,$relDir,$fn)
299                  print "<hr><br><b>CHANGES TO THIS $whatis</b><br><table border=0 width=100%>\n";                  print "<hr><br><b>CHANGES TO THIS $whatis</b><br><table border=0 width=100%>\n";
300                  $bakcount = 0;  // start from 0, skip fist backup (it's current)                  $bakcount = 0;  // start from 0, skip fist backup (it's current)
301                  while ($e = array_shift($logarr)) {                  while ($e = array_shift($logarr)) {
302                          if (strstr($e[4],"upload")) {                          if (stristr($e[4],"upload") || stristr($e[4],"check-in")) {
303    print "-- $e[4] -- $bakdir/$bakcount/$name --<br>\n";
304                                  if (file_exists("$bakdir/$bakcount/$name")) {                                  if (file_exists("$bakdir/$bakcount/$name")) {
305                                          $e[4]="<a href=\"$self?A=V&D=".urlencode($relDir).urlencode(".bak/$bakcount/")."&F=".$name."\">$e[4]</a>";                                            $e[4]="<a href=\"$self?A=V&D=".urlencode($relDir).urlencode(".bak/$bakcount/")."&F=".$name."\">$e[4]</a>";  
306                                  }                                  }
# Line 850  function Navigate($fsRoot,$relDir) { Line 851  function Navigate($fsRoot,$relDir) {
851                  } else {                  } else {
852                          if (check_perm($relDir.$file,trperm_w)) {                          if (check_perm($relDir.$file,trperm_w)) {
853                                  $b.="<A HREF=\"$self?A=Co&D=".urlencode($relDir)."&F=".urlencode($file);                                  $b.="<A HREF=\"$self?A=Co&D=".urlencode($relDir)."&F=".urlencode($file);
854                                  $b.="\" TITLE=\"Checkout file for edit\">" ;                                  $b.="\" TITLE=\"Checkout file for edit\" onClick=\"window.setTimeout('window.location.reload()',3000)\">" ;
855                                  $b.=$gblIcon("checkout")."</A>";                                  $b.=$gblIcon("checkout")."</A>";
856                          }                          }
857    
# Line 1599  function isBlank($file,$what = "filename Line 1600  function isBlank($file,$what = "filename
1600          $gblDirPerms  = 0750 ;          // default for new dirs          $gblDirPerms  = 0750 ;          // default for new dirs
1601    
1602          if (isset($HTTP_GET_VARS["STYLE"]) && $HTTP_GET_VARS["STYLE"] == "get") {          if (isset($HTTP_GET_VARS["STYLE"]) && $HTTP_GET_VARS["STYLE"] == "get") {
1603                    if (! headers_sent()) {
1604                            Header("Content-type: text/css");
1605                    }
1606                  include("$html/docman.css");                  include("$html/docman.css");
1607                  exit;                  exit;
1608          }          }

Legend:
Removed from v.1.42  
changed lines
  Added in v.1.43

  ViewVC Help
Powered by ViewVC 1.1.26