a40852dc862dec28595b500f6f52be9c07fc42d2
4 * This function tell other modules what users have access
11 function adm_check_user() {
13 GLOBAL $username, $PHP_SELF;
15 if ( substr( $PHP_SELF, -11 ) <> 'options.php' ) {
17 } else if ( file_exists( '../plugins/administrator/admins' ) ) {
18 $auths = file( '../plugins/administrator/admins' );
19 $auth = in_array( "$username\n", $auths );
20 } else if ( $adm_id = fileowner('../config/config.php') ) {
21 $adm = posix_getpwuid( $adm_id );
22 $auth = ( $username == $adm['name'] );