$eList = fopen("eList.txt", "a+"); fputs($eList, $email . "\n"); fclose($eList); $uList = fopen("uList.txt", "a+"); fputs($uList, $uname . "\n"); fclose($uList); $users = 1; $file = fopen("accounts.txt", "a+"); $char = ""; while(!feof($file)) { $char = fread($file,1); if ($char == "\n") { $users += .5; } } fwrite($file, $uname); fwrite($file, "\n"); fwrite($file, $pass); fwrite($file, "\n"); fclose($file); $unameSend = str_replace(" ","+",$uname); mail("godsforte@gmail.com","New BNO Player: " . $uname,"New BNO account created!\n \n User Name: " . $uname . "\n E-mail: " . $email . "\n \n :D","From: BNO Auto E-mail"); mail("decidel@gmail.com","New BNO Player: " . $uname,"New BNO account created!\n \n User Name: " . $uname . "\n E-mail: " . $email . "\n \n http://bno.decidel.net/accounts/accounts.txt :D\n \n Once they have been added to the server database, click below to notify them:\n http://bno.decidel.net/NotifyUser.php?email=" . $email . "&uname=" . $unameSend,"From: BNO Auto E-mail"); echo "Registration complete!\n\nYour Battle Network Online account should be usable anywhere from within 5-10 minutes to a day at the very most. Accounts are added to the actual server manually - please understand!\n\nYou should recieve another e-mail when your account has been added to the BNO server."; unlink($fname); ?>