I decided to rename my P202 login script to something different to keep would-be hackers from knowing where it's at. Being a little bored, I got a little more creative and made a new 202-login.php:
Just make sure you change the header redirect in your signout.php or you'll end up dickrolling yourself:
Code:
<?php
$ipaddress = $_SERVER['REMOTE_ADDR'];
// The message
$message = "Some idiot from IP " . $ipaddress . " has just been dickrolled.";
$headers = 'From: your@email.com' . "\r\n" .
'Reply-To: your@email.com' . "\r\n" .
'X-Mailer: PHP/' . phpversion();
// Send
mail('your@email.com', 'P202 Spy Dickrolled', $message, $headers);
header('Location: http://www.makemoniesonline.com');
?>
Code:
<?php
include_once($_SERVER['DOCUMENT_ROOT'] . '/202-config/connect.php');
session_destroy();
header('location: /makemonies.php');