From 8c5b659410a252f726eeafcda366015193db0943 Mon Sep 17 00:00:00 2001 From: Tom Schaefer Date: Wed, 29 Sep 2010 04:45:25 -0400 Subject: Version 1.5 added if selection, nano functions, and sp fix --- config/countryblock/countryblock.tmp | 27 +++++++++++++++++++++------ 1 file changed, 21 insertions(+), 6 deletions(-) mode change 100644 => 100755 config/countryblock/countryblock.tmp (limited to 'config/countryblock/countryblock.tmp') diff --git a/config/countryblock/countryblock.tmp b/config/countryblock/countryblock.tmp old mode 100644 new mode 100755 index dc0fbbbc..f95c2e7c --- a/config/countryblock/countryblock.tmp +++ b/config/countryblock/countryblock.tmp @@ -68,7 +68,7 @@ if (count($_POST)>0) { } - write_config(); + //write_config(); //services_dnsmasq_configure(); sleep(1); $savemsg_cb = "Country Block settings have been saved/updated. "; @@ -98,7 +98,7 @@ else { ?> "); } } +conf_mount_ro(); ?> @@ -260,7 +261,7 @@ background-color: #F3F3F3; Enable Country Block

-
+ " method="post">

- Check the country that you would like to block completely. Currently + Warning! No Interfaces Selected Click if"; + } + + ?> +

+

Check the country that you would like to block completely. Currently of 246 selected. Manual

+

Manual

Block outbound? Bangladesh"; ob_start(); -$results = exec("cat countries.txt | grep BD"); +$results = exec("cat countries.txt | grep BB"); ob_end_clean(); - if ($results == 'BD') + if ($results == 'BB') echo "

  • Barbados
  • "; else echo "
  • Barbados
  • "; @@ -820,6 +833,7 @@ ob_end_clean(); else echo "
  • Congo - Brazzaville
  • "; + ob_start(); $results = exec("cat countries.txt | grep CD"); ob_end_clean(); @@ -2558,6 +2572,7 @@ ob_end_clean(); echo "
  • Zimbabwe
  • "; ?> + -- cgit v1.2.3