09-28-2000, 07:56 PM
// ############################### start retrieve ip ###############################
if ($action=="retrieveip") {
$checkip=$DB_site->query_first("SELECT ipaddress FROM post WHERE postid=$postid");
$userid=verifyusername($username,$password);
$getthread=$DB_site->query_first("SELECT threadid FROM post WHERE postid=$postid");
$threadid=$getthread[threadid];
$getthread=$DB_site->query_first("SELECT forumid FROM thread WHERE threadid=$threadid");
$forumid=$getthread[forumid];
$ipaddress=$checkip[ipaddress];
$permissions=getpermissions($bbuserid,$bbusergroup id,$forumid);
if ($permissions[canview]!=1 or $permissions[canadminedit]!=1) {
eval("echo standarderror(\$bbtitle,\"".gettemplate("error_nopermission")."\");");
exit;
}
eval("echo standarderror(\$bbtitle,\"".gettemplate("displayip")."\");");
}
i want to display the IP inside the topic , so the Admin can see IP without click ( Logged ) .
if ($action=="retrieveip") {
$checkip=$DB_site->query_first("SELECT ipaddress FROM post WHERE postid=$postid");
$userid=verifyusername($username,$password);
$getthread=$DB_site->query_first("SELECT threadid FROM post WHERE postid=$postid");
$threadid=$getthread[threadid];
$getthread=$DB_site->query_first("SELECT forumid FROM thread WHERE threadid=$threadid");
$forumid=$getthread[forumid];
$ipaddress=$checkip[ipaddress];
$permissions=getpermissions($bbuserid,$bbusergroup id,$forumid);
if ($permissions[canview]!=1 or $permissions[canadminedit]!=1) {
eval("echo standarderror(\$bbtitle,\"".gettemplate("error_nopermission")."\");");
exit;
}
eval("echo standarderror(\$bbtitle,\"".gettemplate("displayip")."\");");
}
i want to display the IP inside the topic , so the Admin can see IP without click ( Logged ) .