hi,
there is a field in the database "lastip", but the number in there is coded.
I have made a little script, to find out which ip is behind that number.
search.php
form4.php
form5.php
I know there was already a thread like this but without the code. I hope its useful for you .
there is a field in the database "lastip", but the number in there is coded.
I have made a little script, to find out which ip is behind that number.
search.php
Code:
<form action="form4.php" method="get">
<center>
<input type="text" size="17" name="playername">
<br>
<input type="submit" value="Write the coded number above.">
<br><br>
</form>
<form action="form5.php" method="get">
<input type="text" size="17" name="playername2">
<br>
<input type="submit" value="Write any IP adress above.">
</center>
</form>
form4.php
Code:
<?php
$ip2 = $_GET["playername"];
$ip = long2ip($ip2);
$exp = explode(".", $ip);
echo $exp[3].".".$exp[2].".".$exp[1].".".$exp[0];
?>
form5.php
Code:
<?php
$ip = $_GET["playername2"];
$exp = explode(".", $ip);
$exp2 = array_reverse($exp);
$exp3 = implode(".", $exp2);
$ip2 = ip2long($exp3);
echo $ip2 ;
?>
I know there was already a thread like this but without the code. I hope its useful for you .