7004cc32 |
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 | ?> |