From: Sebastien GISLAIN <sebastien.gislain@free.fr>
To: development@lists.ipfire.org
Subject: [PATCH 2/2] fwhosts.cgi: add flag of modified rules of firewall
Date: Wed, 29 Nov 2023 09:09:16 +0100 [thread overview]
Message-ID: <20231129080916.34865-1-sebastien.gislain@free.fr> (raw)
In-Reply-To: <sebastien.gislain@free.fr>
[-- Attachment #1: Type: text/plain, Size: 1326 bytes --]
Add link to firewall.cgi when firewall rules ares modified and should be applied.
---
html/cgi-bin/fwhosts.cgi | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/html/cgi-bin/fwhosts.cgi b/html/cgi-bin/fwhosts.cgi
index d6be6c40e..d4d58bb94 100644
--- a/html/cgi-bin/fwhosts.cgi
+++ b/html/cgi-bin/fwhosts.cgi
@@ -1322,6 +1322,17 @@ sub showmenu {
print<<END;
<br><br><table border='0' width='100%'>
<tr><td><form method='post'><input type='submit' name='ACTION' value='$Lang::tr{'fwhost newnet'}' ><input type='submit' name='ACTION' value='$Lang::tr{'fwhost newhost'}' ><input type='submit' name='ACTION' value='$Lang::tr{'fwhost newgrp'}' ><input type='submit' name='ACTION' value='$Lang::tr{'fwhost newlocationgrp'}' ></form></td>
+END
+
+ my $FIREWALL_RELOAD_INDICATOR = "${General::swroot}/firewall/reread";
+
+ if (-e "$FIREWALL_RELOAD_INDICATOR") {
+ print <<END;
+ <td style='font-weight: bold; color: green;'><a href=\'firewall.cgi\'>$Lang::tr{'fwdfw reread'}</a></td>
+END
+ }
+
+ print<<END;
<td align='right'><form method='post'><input type='submit' name='ACTION' value='$Lang::tr{'fwhost newservice'}' ><input type='submit' name='ACTION' value='$Lang::tr{'fwhost newservicegrp'}' ></form></td></tr>
<tr><td colspan='6'></td></tr></table>
END
--
2.39.2
reply other threads:[~2023-11-29 8:09 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=20231129080916.34865-1-sebastien.gislain@free.fr \
--to=sebastien.gislain@free.fr \
--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