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 ... "; |
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); |