stoodder
04-03-2003, 11:45 AM
well here is what i have so far.. the IPs get encrypted into hex format BTW so yea lol hereis my code i know its not done yet:
<?php
$phpbb_root_path = './../';
require($phpbb_root_path . 'config.php');
mysql_connect($dbhost, $dbuser, $dbpasswd);
mysql_select_db($dbname);
$post = $_POST['ipaddresss'];
GLOBAL $post;
$findip = ENCODE_IP("$post");
if($mode=="search") {
$sql="SELECT * FROM phpbb_posts WHERE poster_ip='" . $findip . "'";
$query=mysql_query($sql);
while($fetch=mysql_fetch_row($query)) {
$usersql="SELECT * FROM phpbb_users WHERE user_id='" . $fetch[3] . "'";
$userquery=mysql_query($usersql);
while($userfetch=mysql_fecth_row($userquery)) {
echo"$userfetch[2]";
}
}
}
if($mode=="") {
echo"<form action=ipsearch.php?mode=search method=POST>
<input type=text name='ipaddresss'><br><input type=submit>
</form>";
}
?>
it says th encode_ip() functiuon is called to undefined
<?php
$phpbb_root_path = './../';
require($phpbb_root_path . 'config.php');
mysql_connect($dbhost, $dbuser, $dbpasswd);
mysql_select_db($dbname);
$post = $_POST['ipaddresss'];
GLOBAL $post;
$findip = ENCODE_IP("$post");
if($mode=="search") {
$sql="SELECT * FROM phpbb_posts WHERE poster_ip='" . $findip . "'";
$query=mysql_query($sql);
while($fetch=mysql_fetch_row($query)) {
$usersql="SELECT * FROM phpbb_users WHERE user_id='" . $fetch[3] . "'";
$userquery=mysql_query($usersql);
while($userfetch=mysql_fecth_row($userquery)) {
echo"$userfetch[2]";
}
}
}
if($mode=="") {
echo"<form action=ipsearch.php?mode=search method=POST>
<input type=text name='ipaddresss'><br><input type=submit>
</form>";
}
?>
it says th encode_ip() functiuon is called to undefined