status) { if($user->username_taken) $errors[] = lang("ACCOUNT_USERNAME_IN_USE",array($username)); if($user->displayname_taken) $errors[] = lang("ACCOUNT_DISPLAYNAME_IN_USE",array($displayname)); if($user->email_taken) $errors[] = lang("ACCOUNT_EMAIL_IN_USE",array($email)); } else { //Attempt to add the user to the database, carry out finishing tasks like emailing the user (if required) if(!$user->userCakeAddUser()) { if($user->mail_failure) $errors[] = lang("MAIL_ERROR"); if($user->sql_failure) $errors[] = lang("SQL_ERROR"); } } } if(count($errors) == 0) { $successes[] = $user->success; } echo resultBlock($errors,$successes); } } } if ($show_form) { /* I can't get fucking file uploads to fucking work with fucking nginx echo "

Please provide a CSV file of usernames and email addresses.

Click here for an example file.

Upload
"; */ echo "

Action to take on adding users:

Keep existing users and add these users

Purge existing users and add these users

Enter or copy/paste user information below (resize the text area if necessary):

"; } ?>