/[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.29 by dpavlin, Mon Jul 29 12:34:18 2002 UTC revision 1.30 by dpavlin, Mon Jul 29 12:53:50 2002 UTC
# Line 1008  function WriteNote($target,$msg) { Line 1008  function WriteNote($target,$msg) {
1008          $file=basename($target);          $file=basename($target);
1009    
1010          $note=fopen("$dir/.note/$file","w");          $note=fopen("$dir/.note/$file","w");
1011            if (! $note) {
1012                    Error("Error writing note","Can't open note file <tt>$dir/.note/$file</tt> for writing",1);
1013            }
1014          fputs($note,"$msg\n");          fputs($note,"$msg\n");
1015          fclose($note);          fclose($note);
1016    
# Line 1925  HTTP_POST_VAR("FN"); Line 1928  HTTP_POST_VAR("FN");
1928                  safe_rename($fsDir,$FN,$NEWNAME);                  safe_rename($fsDir,$FN,$NEWNAME);
1929                  break ;                  break ;
1930    
1931          case "NOTE" :            case "NOTE" :
1932                  $NOTE=stripSlashes($HTTP_POST_VARS["NOTE"]);                  if (! HTTP_POST_VAR("NOTE"))
1933                  WriteNote("$fsDir/$FN","$NOTE");                          Error("Can't add note to object","Can't find var <tt>\$NOTE</tt>",1);
1934                    if (! check_perm("$relDir/$FN", trperm_w))
1935                            Error("Access denied","User <tt>$gblLogin</tt> tried to add note to <tt>$relDir/$FN</tt> without valid trustee.",1);
1936    
1937                    WriteNote("$fsDir/$FN",$NOTE);
1938                  break ;                  break ;
1939    
1940          case "UNLOCK" :            case "UNLOCK" :  
# Line 1945  HTTP_POST_VAR("FN"); Line 1952  HTTP_POST_VAR("FN");
1952                  header("Location: ".$tstr) ;                    header("Location: ".$tstr) ;  
1953                  exit ;                  exit ;
1954          }          }
1955            
1956          // check for mode.. navigate, code display, upload, or detail?          // check for mode.. navigate, code display, upload, or detail?
1957          // $A=U : upload to path given in $D          // $A=U : upload to path given in $D
1958          // $A=E : display detail of file $D/$F and edit          // $A=E : display detail of file $D/$F and edit

Legend:
Removed from v.1.29  
changed lines
  Added in v.1.30

  ViewVC Help
Powered by ViewVC 1.1.26