END
+
+ if (-f "${General::swroot}/fwhosts/reread"){
+ print "
$Lang::tr{'fwhost reread'}
";
+ }
+ print"
";
+
&Header::closebox();
}
@@ -1400,7 +1411,7 @@ sub viewtablegrp
my $count=1;
my $grpname;
my $remark;
- my $number=1;
+ my $number;
if (!keys %customgrp)
{
print "
$Lang::tr{'fwhost empty'}";
@@ -1446,6 +1457,7 @@ sub viewtablegrp
print"";
$helper=$customgrp{$key}[0];
+ $number++;
}
print"";
@@ -1875,10 +1887,20 @@ sub getipforgroup
}
}
sub rules
+{
+ if (!-f "${General::swroot}/fwhosts/reread"){
+ system("touch ${General::swroot}/fwhosts/reread");
+ }
+}
+sub reread_rules
{
system ("/usr/local/bin/forwardfwctrl");
- system("rm ${General::swroot}/forward/reread");
+ if ( -f "${General::swroot}/fwhosts/reread"){
+ system("rm ${General::swroot}/fwhosts/reread");
+ }
+
}
+
sub decrease
{
my $grp=$_[0];