aboutsummaryrefslogtreecommitdiffstats
path: root/config/countryblock-dev/countryblock.php
diff options
context:
space:
mode:
authormarcelloc <marcellocoutinho@gmail.com>2011-10-26 00:53:31 -0200
committermarcelloc <marcellocoutinho@gmail.com>2011-10-26 00:53:31 -0200
commit1524e0b7ecbadb1a4f992b49d63d903a1dd8db8c (patch)
tree0d31d42ebb9e99a2d0c173be020391d450a17151 /config/countryblock-dev/countryblock.php
parent6e52cd6bb54defc2521ceb747b52b91b58f2b492 (diff)
downloadpfsense-packages-1524e0b7ecbadb1a4f992b49d63d903a1dd8db8c.tar.gz
pfsense-packages-1524e0b7ecbadb1a4f992b49d63d903a1dd8db8c.tar.bz2
pfsense-packages-1524e0b7ecbadb1a4f992b49d63d903a1dd8db8c.zip
countryblock-dev - more fixes
Diffstat (limited to 'config/countryblock-dev/countryblock.php')
-rw-r--r--config/countryblock-dev/countryblock.php7
1 files changed, 3 insertions, 4 deletions
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);
-
}
}