diff options
author | marcelloc <marcellocoutinho@gmail.com> | 2011-10-26 00:53:31 -0200 |
---|---|---|
committer | marcelloc <marcellocoutinho@gmail.com> | 2011-10-26 00:53:31 -0200 |
commit | 1524e0b7ecbadb1a4f992b49d63d903a1dd8db8c (patch) | |
tree | 0d31d42ebb9e99a2d0c173be020391d450a17151 /config/countryblock-dev | |
parent | 6e52cd6bb54defc2521ceb747b52b91b58f2b492 (diff) | |
download | pfsense-packages-1524e0b7ecbadb1a4f992b49d63d903a1dd8db8c.tar.gz pfsense-packages-1524e0b7ecbadb1a4f992b49d63d903a1dd8db8c.tar.bz2 pfsense-packages-1524e0b7ecbadb1a4f992b49d63d903a1dd8db8c.zip |
countryblock-dev - more fixes
Diffstat (limited to 'config/countryblock-dev')
-rwxr-xr-x | config/countryblock-dev/countryblock.inc | 11 | ||||
-rw-r--r-- | config/countryblock-dev/countryblock.php | 7 | ||||
-rwxr-xr-x | config/countryblock-dev/countryblock.xml | 4 |
3 files changed, 11 insertions, 11 deletions
diff --git a/config/countryblock-dev/countryblock.inc b/config/countryblock-dev/countryblock.inc index 68105ec1..7f526895 100755 --- a/config/countryblock-dev/countryblock.inc +++ b/config/countryblock-dev/countryblock.inc @@ -306,10 +306,13 @@ function countryblock_do_xmlrpc_sync($sync_to_ip, $password) { /* xml will hold the sections to sync */ $xml = array(); $xml['countryblock'] = $config['installedpackages']['countryblock']; - $xml['countryblockacl'] = $config['installedpackages']['countryblockacl']; - $xml['countryblockrecipients'] = $config['installedpackages']['countryblockrecipients']; - $xml['countryblockantispam'] = $config['installedpackages']['countryblockantispam']; - + $xml['countryblockafrica'] = $config['installedpackages']['countryblockafrica']; + $xml['countryblockantartica'] = $config['installedpackages']['countryblockantartica']; + $xml['countryblockasia'] = $config['installedpackages']['countryblockasia']; + $xml['countryblockeurope'] = $config['installedpackages']['countryblockeurope']; + $xml['countryblocknorthamerica'] = $config['installedpackages']['countryblocknorthamerica']; + $xml['countryblockoceania'] = $config['installedpackages']['countryblockoceania']; + $xml['countryblocksouthamerica'] = $config['installedpackages']['countryblocksouthamerica']; /* assemble xmlrpc payload */ $params = array( XML_RPC_encode($password), diff --git a/config/countryblock-dev/countryblock.php b/config/countryblock-dev/countryblock.php index 6df5f2bd..96822e12 100644 --- a/config/countryblock-dev/countryblock.php +++ b/config/countryblock-dev/countryblock.php @@ -50,6 +50,7 @@ foreach ($files as $cont => $file){ } } $cont_name= preg_replace("/ /","",$cont); +$cont_name_lower= strtolower($cont_name); #file_put_contents($cdir.'/'.$cont_name.'.txt',$ips,LOCK_EX); $xml= <<<EOF <?xml version="1.0" encoding="utf-8" ?> @@ -95,8 +96,8 @@ $xml= <<<EOF <description>Describe your package here</description> <requirements>Describe your package requirements here</requirements> <faq>Currently there are no FAQ items provided.</faq> - <name>countryblock_{$cont_name}</name> - <version>1.0</version> + <name>countryblock{$cont_name_lower}</name> + <version>1.0.1</version> <title>Firewall: Countryblock</title> <include_file>/usr/local/pkg/countryblock.inc</include_file> <menu> @@ -187,8 +188,6 @@ $xml= <<<EOF EOF; file_put_contents('/usr/local/pkg/countryblock_'.$cont_name.'.xml',$xml,LOCK_EX); - #var_dump($ips); - } } diff --git a/config/countryblock-dev/countryblock.xml b/config/countryblock-dev/countryblock.xml index 4bf3bda4..b98cf296 100755 --- a/config/countryblock-dev/countryblock.xml +++ b/config/countryblock-dev/countryblock.xml @@ -47,7 +47,7 @@ <title>Firewall: Countryblock</title> <include_file>/usr/local/pkg/countryblock.inc</include_file> <menu> - <name>Countryblock</name> + <name>Country Block</name> <tooltiptext>Configure Countryblock</tooltiptext> <section>Firewall</section> <url>pkg_edit.php?xml=countryblock.xml&id=0</url> @@ -171,7 +171,6 @@ If you want to create custom inbound rules for blocked countries based on Countryblock firewall alias, leave this list empty.]]></description> <type>interfaces_selection</type> <required/> - <default_value>wan</default_value> <multiple/> </field> <field> @@ -181,7 +180,6 @@ If you want to create custom outbound rules for blocked countries based on Countryblock firewall alias, leave this list empty.]]></description> <type>interfaces_selection</type> <required/> - <default_value>lan</default_value> <multiple/> </field> <field> |