1 |
<? |
2 |
|
3 |
/* |
4 |
Document manager handling for union of different htuser auth |
5 |
methods. |
6 |
|
7 |
Use $htusers_union[] in docman.conf to specify which methods |
8 |
to use and in which order. |
9 |
|
10 |
*/ |
11 |
|
12 |
global $gblLogin,$gblPasswd,$secHash; |
13 |
|
14 |
$try_more=1; |
15 |
|
16 |
while($this = array_shift($htusers_union)) { |
17 |
if (file_exists("$gblIncDir/$this.php")) { |
18 |
include("$gblIncDir/$this.php"); |
19 |
$tmp=md5($gblLogin.$gblPasswd); |
20 |
if ($tmp == $secHash) { |
21 |
//error_log("user: $PHP_AUTH_USER pw: $PHP_AUTH_PW authed using $this",0); |
22 |
break; |
23 |
} |
24 |
} |
25 |
} |
26 |
|
27 |
?> |