projects
/
squirrelmail.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
blame
|
history
|
raw
|
HEAD
Preparing administrator for alternate autentication methods.
[squirrelmail.git]
/
plugins
/
administrator
/
auth.php
1
<
?php
2
3
function
adm_check_user
() {
4
5
GLOBAL
$username
;
6
7
$auth
=
FALSE
;
8
if
(
$adm_id
=
fileowner
(
'../config/config.php'
) ) {
9
$adm
=
posix_getpwuid
(
$adm_id
);
10
if
(
$username
==
$adm
[
'name'
] ) {
11
$auth
=
TRUE
;
12
}
13
}
14
15
return
(
$auth
);
16
17
}
18
19
?
>