From: Horace Michael <horace.michael@gmx.com>
To: development@lists.ipfire.org
Subject: [[PATCH]] Guardian.cgi enhancements
Date: Thu, 03 Nov 2016 01:16:05 +0200 [thread overview]
Message-ID: <1478128565-27419-1-git-send-email-horace.michael@gmx.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 3133 bytes --]
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(a)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'}'>
--
2.7.4
reply other threads:[~2016-11-02 23:16 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1478128565-27419-1-git-send-email-horace.michael@gmx.com \
--to=horace.michael@gmx.com \
--cc=development@lists.ipfire.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox