aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorColin Smith <colin@pfsense.org>2005-03-19 23:36:23 +0000
committerColin Smith <colin@pfsense.org>2005-03-19 23:36:23 +0000
commit5a519ada2dd25105b25e60d49b8f169dc35dc242 (patch)
treef69c6863ce48ce8568cee3addd71fdd4b7a69873
parentbc688c6576ea67529de4bb7cabb91a2e258d7fc6 (diff)
downloadpfsense-packages-5a519ada2dd25105b25e60d49b8f169dc35dc242.tar.gz
pfsense-packages-5a519ada2dd25105b25e60d49b8f169dc35dc242.tar.bz2
pfsense-packages-5a519ada2dd25105b25e60d49b8f169dc35dc242.zip
Modify squid package to use new global functions directive.
-rw-r--r--packages/squid.xml6
1 files changed, 4 insertions, 2 deletions
diff --git a/packages/squid.xml b/packages/squid.xml
index 313bfef7..28271c13 100644
--- a/packages/squid.xml
+++ b/packages/squid.xml
@@ -19,7 +19,7 @@
<type>input</type>
</field>
</fields>
- <custom_add_php_command>
+ <custom_php_global_functions>
function write_squid_static_config() {
global $config;
$lancfg = $config['interfaces']['lan'];
@@ -40,7 +40,7 @@
fwrite($fout, "acl CONNECT method CONNECT\n");
fwrite($fout, "http_access allow localnet\n");
fwrite($fout, "http_access allow localhost\n");
- fwrite($fout, "http_access deny !Safe_ports\n");
+ fwrite($fout, "http_access deny !Safe_ports\n");
fwrite($fout, "http_access deny CONNECT\n");
fwrite($fout, "http_access deny all\n");
fwrite($fout, "visible_hostname pfSense\n");
@@ -52,6 +52,8 @@
fwrite($fout, "cache_effective_group squid\n");
fclose($fout);
}
+ </custom_php_global_functions>
+ <custom_add_php_command>
function sync_package_squid() {
conf_mount_rw();
config_lock();