Jump to content
MakeWebGames

account broken


nheimberg
 Share

Recommended Posts

Re: account broken

at a guess

function userdata($ir,$lv,$fm,$dosessh=1)
{
global $c,$userid;
$lastip = $ir['lastip'];
$q = mysql_query("SELECT COUNT(*) as num FROM `ipban` WHERE `ip`='$lastip'",$c);
$rows = mysql_fetch_assoc($q);
if($rows['num'] >= 1){
$a = mysql_fetch_assoc(mysql_query("SELECT `reason` FROM `ipban` WHERE `ip` = '$lastip'"));
die("<body bgcolor='#333333'><center>You are banned from the site for the reason {$a['reason']}</center></body>");
} else {
 $i = (getenv('HTTP_X_FORWARDED_FOR') != false) ? getenv('HTTP_X_FORWARDED_FOR') : getenv('REMOTE_ADDR');
 $host = gethostbyaddr($i);

mysql_query("UPDATE `users` SET `lastip`='$i', laston = unix_timestamp() WHERE `userid`='$userid'",$c);

}
if(!$ir['email'])
{
die ("<body>Your account may be broken.
Link to comment
Share on other sites

  • 6 months later...

Re: account broken

 

Warning: gethostbyaddr() [function.gethostbyaddr]: Address is not a valid IPv4 or IPv6 address in /home/polar8/public_html/header.php on line 173

That has nothing to do with an email address.

It calls the host trough the ip address:

$HOST = gethostbyaddr($_SERVER['REMOTE_ADDR');

The email may be part of the error sometimes.

The script could not locate the email address correctly and/or the Host could not be retrieved.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...