function file_admins_add($user)
{
if (file_admins_check()) return false; // Si ya hay 2, no se puede agregar
- if (($f = fopen("data/admins.txt", 'a')) === false) return false;
+ if (($f = fopen('data/admins.txt', 'a')) === false) return false;
fwrite($f, "$user\n");
fclose($f);
return true;
if (($admins = file_admins_get()) === false) return false; // error
if (array_walk($admins, '_file_admins_walk_replace', array($viejo, $nuevo)))
return false; //error
- if (($f = fopen("data/admins.txt", 'w')) === false) return false; //error
+ if (($f = fopen('data/admins.txt', 'w')) === false) return false; //error
foreach ($admins as $admin) fwrite($f, "$admin\n");
fclose($f);
return true;