aboutsummaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2006-01-07 19:57:11 +0000
committerScott Ullrich <sullrich@pfsense.org>2006-01-07 19:57:11 +0000
commitcf3859f5e40fb16d76f4bb4dd02a5c3a1c4b006f (patch)
treea0bf267100bfb6792f99c6dff16a7923e53f0e67 /packages
parent30462b4789fdcc8729019c1418d0e148a8a24112 (diff)
downloadpfsense-packages-cf3859f5e40fb16d76f4bb4dd02a5c3a1c4b006f.tar.gz
pfsense-packages-cf3859f5e40fb16d76f4bb4dd02a5c3a1c4b006f.tar.bz2
pfsense-packages-cf3859f5e40fb16d76f4bb4dd02a5c3a1c4b006f.zip
Close fwrite()
Diffstat (limited to 'packages')
-rw-r--r--packages/squid_ng.xml30
1 files changed, 15 insertions, 15 deletions
diff --git a/packages/squid_ng.xml b/packages/squid_ng.xml
index 2a883a60..764ab840 100644
--- a/packages/squid_ng.xml
+++ b/packages/squid_ng.xml
@@ -221,21 +221,21 @@
<!-- The below writes the configuration as defined by the GUI options -->
<custom_php_global_functions>
function write_static_squid_config() {
- global $config;
- $lancfg = $config['interfaces']['lan'];
- $lanif = $lancfg['if'];
- $lanip = $lancfg['ipaddr'];
- $lansa = gen_subnet($lancfg['ipaddr'], $lancfg['subnet']);
- $lansn = $lancfg['subnet'];
-
- $fout = fopen("/usr/local/etc/squid/squid.conf","w");
- fwrite($fout, "#\n");
- fwrite($fout, "# This file was automatically generated by the pfSense package manager.\n");
- fwrite($fout, "# This default policy enables transparent proxy with no local disk logging.\n");
- fwrite($fout, "#\n");
+ global $config;
+ $lancfg = $config['interfaces']['lan'];
+ $lanif = $lancfg['if'];
+ $lanip = $lancfg['ipaddr'];
+ $lansa = gen_subnet($lancfg['ipaddr'], $lancfg['subnet']);
+ $lansn = $lancfg['subnet'];
+
+ $fout = fopen("/usr/local/etc/squid/squid.conf","w");
+ fwrite($fout, "#\n");
+ fwrite($fout, "# This file was automatically generated by the pfSense package manager.\n");
+ fwrite($fout, "# This default policy enables transparent proxy with no local disk logging.\n");
+ fwrite($fout, "#\n");
fwrite($fout, "shutdown_lifetime 5 seconds\n");
- fwrite($fout, "icp_port 0\n");
- fwrite($fout, "\n");
+ fwrite($fout, "icp_port 0\n");
+ fwrite($fout, "\n");
fwrite($fout, "acl QUERY urlpath_regex cgi-bin \?\n");
fwrite($fout, "no_cache deny QUERY\n");
@@ -407,7 +407,7 @@
mwexec("chmod g+rw /dev/pf");
$devfs_file = fopen("/etc/devfs.conf", "a");
- fwrite($devfs_file, "\n# Allow squid to query the packet filter bymaking is group-accessable.
+ fwrite($devfs_file, "\n# Allow squid to query the packet filter bymaking is group-accessable. ");
fwrite($devfs_file, "own pf root:squid");
fwrite($devfs_file, "perm pf 0640");
fclose($devfs_file);