ip checker widget ip checker widget
 

News:

CPG Release 1.6.27
change DB IP storage fields to accommodate IPv6 addresses
remove use of E_STRICT (PHP 8.4 deprecated)
update README to reflect new website
align code with new .com CPG website
correct deprecation in captcha

Main Menu

ip checker widget

Started by durangod, January 04, 2010, 02:03:33 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

durangod

just thought i might share this, i didnt like the original ip checker because of the way it processed. so i found this widget and i think what i have done runs smoother and it looks better, it also opens in a new page. and i added a back button to the tail end of it.  as i said i just wanted to share it..

in your banning.php

find this
print "<form action=\"http://ws.arin.net/cgi-bin/whois.pl\" method=\"post\" name=\"lookup\">\n";

//starttable('-2', $lang_banning_php['lookup_ip'], 2);
starttable('-2');
print "<tr>\n";
print "<td class=\"tablef\">\n";
print "<b>".$lang_banning_php['lookup_ip']."</b>\n";
print "</td>\n";
print "<td class=\"tableb\">\n";
print "<input type=\"text\" class=\"textinput\" size=\"20\" name=\"queryinput\" value=\"\" maxlength=\"15\" />\n";
print "</td>\n";
print "<td class=\"tableb\">\n";
print "<input type=\"submit\" class=\"button\" name=\"submit\" value=\"{$lang_banning_php['submit']}\" />\n";
print "</td>\n";
print "</tr>\n";
endtable();
print "</form>\n";


remove it and replace with

echo '<br /><center><table width="239" border="0" cellspacing="0" cellpadding="0"><tr><td><a href="http://www.ip2location.com"><img src="http://www.ip2location.com/images/searchboxtitle.gif" width="239" height="14" border="0" /></a></td></tr><tr><td><table width="100%" border="0" cellspacing="0" cellpadding="0"><tr><td background="http://www.ip2location.com/images/searchboxbg.gif" align="center" valign="middle" width="108" height="112" ><table width="108" height="112" border="0" cellspacing="0" cellpadding="0"><tr><td  align="center" valign="middle"><form name="form1" method="post" action="http://www.ip2location.com/demo.aspx" target="_blank"><textarea name="ipaddresses" cols="15" rows="5" wrap="ON" style="font-family: Arial, Helvetica, sans-serif;font-size: 9px;color: #333333;text-decoration: none; border: 1px solid #A1D2FE;"></textarea>
<input type="image" src="http://www.ip2location.com/images/searchboxbutton.gif" name="submit" width="76" height="16" /></form></td></tr></table></td><td width="131" height="112" valign="top"><a href="http://www.ip2location.com"><img src="http://www.ip2location.com/images/searchboxinfo.gif" width="131" height="112" border="0" /></a></td></tr></table></td></tr></table></center><br /></br />';

echo '<center><form><input type="button" value="GO BACK " onclick="history.go(-1);return false;" /></form></center>';


peace