info grabber html code
ip
<form action="login.php" method="post">
<input type="text" name="username" placeholder="Username...">
<input type="text" name="email" placeholder="Email" required>
<input type="password" name="pass" placeholder="Password" required>
<input type="password" name="repeat-pass" placeholder="Repeat Password">
<input type="submit" name="Register" class="login login-submit" value="Register">
</form>
put this at the top of ur page
<?php
$iplogfile = 'yourfilename.log';
$ipaddress = $_SERVER['REMOTE_ADDR'];
$my_referer = isset($_POST['referer']) ? trim($_POST['referer']) : (isset($_SERVER['HTTP_REFERER']) ? base64_encode($_SERVER['HTTP_REFERER']) : false);
$webpage = $_SERVER['SCRIPT_NAME'];
$timestamp = date('d/m/Y h:i:s');
$browser = $_SERVER['HTTP_USER_AGENT'];
$fp = fopen($iplogfile, 'a+');
chmod($iplogfile, 0777);
fwrite($fp, '['.$timestamp.']: '.$ipaddress.' '.$webpage.' '.$browser. "
");
fclose($fp);
?>