aboutsummaryrefslogtreecommitdiffstats
path: root/config/countryblock/countryblock.tmp
diff options
context:
space:
mode:
authorTom Schaefer <tom@tomschaefer.org>2010-07-25 15:08:58 -0400
committerTom Schaefer <tom@tomschaefer.org>2010-07-25 15:08:58 -0400
commit7bcc2b400314dff7235bb635a9968d04d2e7df76 (patch)
tree2463b0a786f363dcbefcb5c68e4291e173c0e823 /config/countryblock/countryblock.tmp
parent468555d49e2a96bf3f0747e67412a35c7f226570 (diff)
downloadpfsense-packages-7bcc2b400314dff7235bb635a9968d04d2e7df76.tar.gz
pfsense-packages-7bcc2b400314dff7235bb635a9968d04d2e7df76.tar.bz2
pfsense-packages-7bcc2b400314dff7235bb635a9968d04d2e7df76.zip
Updated countryblock to 1.3
Diffstat (limited to 'config/countryblock/countryblock.tmp')
-rw-r--r--config/countryblock/countryblock.tmp46
1 files changed, 31 insertions, 15 deletions
diff --git a/config/countryblock/countryblock.tmp b/config/countryblock/countryblock.tmp
index 6c080c06..dff73e11 100644
--- a/config/countryblock/countryblock.tmp
+++ b/config/countryblock/countryblock.tmp
@@ -74,8 +74,16 @@ if (count($_POST)>0) {
conf_mount_ro();
}
?>
-
+<head>
<?php include("fbegin.inc"); ?>
+<style type="text/css">
+<!--
+.white {
+ text-align: center;
+}
+-->
+</style>
+
<p class="pgtitle">Firewall: Country Block</p>
<form method=POST action="">
@@ -135,7 +143,7 @@ mwexec("touch countries.txt");
}
}
?>
-<head>
+
<script type="text/javascript" src="jquery.min.js"></script>
@@ -179,6 +187,8 @@ ddaccordion.init({
<style type="text/css">
+a img {border:none; }
+
.arrowlistmenu{
width: 180px; /*width of accordion menu*/
}
@@ -251,12 +261,19 @@ background-color: #F3F3F3;
<form action="<?php echo htmlentities($_SERVER['PHP_SELF']); ?>" method="post">
<p>
- Check the country that you would like to block completely.<br/>
-
-
-
- </p>
-
+ Check the country that you would like to block completely. Currently
+ <?php
+ $countfile = "countries.txt";
+ if (file_exists($countfile)) {
+ $countlines = count(file($countfile));
+ echo "$countlines";
+ } else {
+ echo "0 ";
+ }
+
+ ?>
+
+ of 245 selected. <a href="whitelist.php" target="_parent"><img src="../../themes/nervecenter/images/icons/icon_plus.gif" ALT="Manual" ALIGN=RIGHT></a></p>
<p>
Block outbound?
<?php
@@ -270,8 +287,7 @@ background-color: #F3F3F3;
<input type="checkbox" name="checkall" onclick="checkUncheckAll(this);"/>select/unselect
</p>
-
- <br/>
+<br/>
<table style="width: 50%">
@@ -588,7 +604,7 @@ ob_end_clean();
echo "<li><input name='formCountry[]' type='checkbox' value='BT' checked/>Bhutan</li>";
else
echo "<li><input name='formCountry[]' type='checkbox' value='BT' />Bhutan</li>";
-
+/*
ob_start();
$results = exec("cat countries.txt | grep XA");
ob_end_clean();
@@ -596,7 +612,7 @@ ob_end_clean();
echo "<li><input name='formCountry[]' type='checkbox' value='XA' checked/>Bogons</li>";
else
echo "<li><input name='formCountry[]' type='checkbox' value='XA' />Bogons</li>";
-
+*/
ob_start();
$results = exec("cat countries.txt | grep BO");
ob_end_clean();
@@ -2534,8 +2550,8 @@ ob_end_clean();
<br/><span style="color:red">Warning!</span> - Apply after every firewall change or state reset. Use at your own risk.
<br/><br/>
<input type="submit" name="formSubmit" value="Commit Countries" />
- </form>
- <br/>
+</form>
+<br/>
<?php
echo "Current Status = ";
@@ -2571,4 +2587,4 @@ ob_end_clean();
<?php include("fend.inc"); ?>
</body>
-</html> \ No newline at end of file
+</html>