- if (file_users_get($user)) return false; // Ya existe
- if (($f = fopen("data/admins.txt", 'a')) === false) return false; // error
- fputcsv($f, array($user, $pass, $email));
- fclose($f);
- return true;
+ return fappendcsv('data/users.csv', array($user, $pass, $email));