Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: ip checker widget  (Read 2598 times)

0 Members and 1 Guest are viewing this topic.

durangod

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 42
ip checker widget
« on: January 04, 2010, 02:03:33 am »

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
Code: [Select]
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

Code: [Select]
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
Logged
Pages: [1]   Go Up
 

Page created in 0.015 seconds with 19 queries.