1. Detect for each IP the network it belongs and change background of that IP according to the network (Green, Red, Blue, Orange) 2. For each IP detect the country it belongs to and display country flag near IP
Signed-off-by: Horace Michael horace.michael@gmx.com --- html/cgi-bin/guardian.cgi | 15 --------------- 1 file changed, 15 deletions(-)
diff --git a/html/cgi-bin/guardian.cgi b/html/cgi-bin/guardian.cgi index 659325b093d2..b05d4f7f7bad 100755 --- a/html/cgi-bin/guardian.cgi +++ b/html/cgi-bin/guardian.cgi @@ -925,7 +925,6 @@ print <<END; <input type='hidden' name='ID' value='$key' /> </form> </td> - <td align='center' $col> <form method='post' action='$ENV{'SCRIPT_NAME'}'> <input type='hidden' name='ACTION' value='$Lang::tr{'edit'}' /> @@ -933,7 +932,6 @@ print <<END; <input type='hidden' name='ID' value='$key' /> </form> </td> - <td align='center' $col> <form method='post' name='$key' action='$ENV{'SCRIPT_NAME'}'> <input type='image' name='$Lang::tr{'remove'}' src='/images/delete.gif' title='$Lang::tr{'remove'}' alt='$Lang::tr{'remove'}'> @@ -987,7 +985,6 @@ print <<END; <tr> <td width='30%'>$Lang::tr{'ip address'}: </td> <td width='50%'><input type='text' name='IGNORE_ENTRY_ADDRESS' value='$entry_address' size='24' /></td> - <td width='30%'>$Lang::tr{'remark'}: </td> <td wicth='50%'><input type='text' name=IGNORE_ENTRY_REMARK value='$entry_remark' size='24' /></td> <td align='center' width='20%'><input type='submit' name='ACTION' value='$buttontext' /></td> @@ -1046,22 +1043,10 @@ foreach my $blocked_host (@blocked_hosts) { } print "<tr>"; print "<td width='30%' class='base' align='left' bgcolor=$col1><a href='/cgi-bin/ipinfo.cgi?ip=$blocked_host' target=_blank> <span style='color:#FFFFFF;'>$blocked_host</span></a></td>"; - if ( $fcode ne "" ){ print "<td width='10%' align='center' $col><a href='/cgi-bin/country.cgi#$fcode'><img src='/images/flags/$fcode.png' border='0' align='absmiddle' alt='$ccode' title='$ccode' /></a></td>";} else { print "<td align='center' $col>$fcode</td>";} - - - # <td width='15%' class='base' align='center'$col><a href='https://www.virustotal.com/en/ip-address/$blocked_host/information' target=_blank><img src='/images/virustotal.ico' border='0' /></a></td> - # <td width='15%' class='base' align='center' $col><a href='http://whois.domaintools.com/$blocked_host' target=_blank><img src='/images/domaintools.ico' border='0' /></a></td> - # <td width='10%' class='base' align='center' $col><a href='http://multirbl.valli.org/lookup/$blocked_host.html' target=_blank><img src='/images/rbl.jpg' border='0' /></a></td> - # <td width='10%' align='center' $col> - # <form method='post' action='http://www.ipvoid.com/scan/$blocked_host/' target=_blank> - # <input type='image' name=IPVoid src='/images/ipvoid.ico'> - # <input type='hidden' name='ACTION'> - # </form> - # </td> print <<END; <td width='70%' align='right' $col> <form method='post' name='frmb$id' action='$ENV{'SCRIPT_NAME'}'>