*/
function file_admins_check()
{
- return count(@file('data/admins.txt', 'r')) > 1;
+ return count(@file('data/admins.txt')) > 1;
}
/**
*/
function file_admins_es_admin($user)
{
- if (!($admins = @file('data/admins.txt', 'r'))) return false;
+ if (!($admins = file('data/admins.txt'))) return false;
foreach ($admins as $admin) if (trim($admin) == $user) return true;
return false;
}
*/
function file_admins_get()
{
- if (!($admins = @file('data/admins.txt', 'r'))) return false;
+ if (!($admins = file('data/admins.txt'))) return false;
if (array_walk($admins, '_file_admins_walk_trim')) return false;
return $admins;
}