/[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.23 by dpavlin, Sun Jul 28 19:52:11 2002 UTC revision 1.24 by dpavlin, Mon Jul 29 09:36:22 2002 UTC
# Line 1424  function unroll_perm($u,$t,$perm,$one_le Line 1424  function unroll_perm($u,$t,$perm,$one_le
1424  }// end of helper function  }// end of helper function
1425    
1426  function check_trustee($user,$path) {  function check_trustee($user,$path) {
1427          global $trustees;          global $trustees,$HAVE_TRUSTEE;
1428          $perm['allow'] = 0;          $perm['allow'] = 0;
1429          $perm['deny'] = 0;          $perm['deny'] = 0;
1430    
1431          if (! isset($trustees)) Error("Trustees not found","Can't find in-memory trustee structure \$trustees. Probably bug in code. Contact <tt>dpavlin@rot13.org</tt>",1);          // do we use trustees?
1432            if (! $HAVE_TRUSTEE) return $perm;
1433    
1434            if (! isset($trustees)) Error("Trustees not found","Can't find in-memory trustee structure <tt>\$trustees</tt>. Probably bug in code. Contact <tt>dpavlin@rot13.org</tt>",1);
1435    
1436  global $debug;  global $debug;
1437  $debug .= "<br>check_trustee $path ... ";  $debug .= "<br>check_trustee $path ... ";
# Line 1584  function Warn($text) { Line 1587  function Warn($text) {
1587          // location of master docman configuration file          // location of master docman configuration file
1588          $docman_conf = "/etc/docman.conf";          $docman_conf = "/etc/docman.conf";
1589          if (! file_exists($docman_conf)) {          if (! file_exists($docman_conf)) {
1590                  $error = "Can't find master configuration file $docman_conf. See docman2/doc/upgrade.html#docman_conf for more informations";                  $error = "Can't find master configuration file <tt>$docman_conf</tt>. See <tt>docman2/doc/upgrade.html#docman_conf</tt> for more informations";
1591                                    
1592                  error_log("docman: $error");                  error_log("docman: $error");
1593                  Error("docman not installed completly",$error);                  Error("docman not installed completly",$error);

Legend:
Removed from v.1.23  
changed lines
  Added in v.1.24

  ViewVC Help
Powered by ViewVC 1.1.26