From fde3429c67bbab3c18444f79374776cf78e8e156 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Sun, 12 Feb 2006 21:38:49 +0000 Subject: ' -> " --- packages/squid_auth.inc | 30 ++++++++++++++---------------- 1 file changed, 14 insertions(+), 16 deletions(-) diff --git a/packages/squid_auth.inc b/packages/squid_auth.inc index fd0384f0..7c99a01b 100644 --- a/packages/squid_auth.inc +++ b/packages/squid_auth.inc @@ -53,17 +53,17 @@ function global_eval_auth_options() dynamic_ldap_auth(); break; case "domain_auth": - $filecontents = file('/usr/local/pkg/squid_auth.xml'); + $filecontents = file("/usr/local/pkg/squid_auth.xml"); dynamic_auth_content("pkg_edit"); dynamic_domain_auth(); break; case "radius_auth": - $filecontents = file('/usr/local/pkg/squid_auth.xml'); + $filecontents = file("/usr/local/pkg/squid_auth.xml"); dynamic_auth_content("pkg_edit"); dynamic_radius_auth(); break; default: - $filecontents = file('/usr/local/pkg/squid_auth.xml'); + $filecontents = file("/usr/local/pkg/squid_auth.xml"); dynamic_auth_content("pkg_edit"); dynamic_no_auth(); break; @@ -77,7 +77,6 @@ function global_eval_auth_options() function dynamic_no_auth() { global $config; conf_mount_rw(); - $fout = fopen("/usr/local/pkg/squid_extauth.xml", "w"); fwrite($fout, "\n"); fwrite($fout, "\n"); @@ -134,14 +133,13 @@ function dynamic_no_auth() { fwrite($fout, " \n"); fwrite($fout, "\n"); fwrite($fout, " \n"); - fwrite($fout, ' require_once("/usr/local/pkg/squid_ng.inc");\n'); + fwrite($fout, " require_once(\"/usr/local/pkg/squid_ng.inc\");"); fwrite($fout, "\n"); fwrite($fout, " global_write_squid_config();\n"); - fwrite($fout, ' mwexec("/usr/local/sbin/squid -k reconfigure");\n'); + fwrite($fout, " mwexec(\"/usr/local/sbin/squid -k reconfigure\");\n"); fwrite($fout, " \n"); fwrite($fout, "\n"); fwrite($fout, "\n"); - fclose($fout); /* mount filesystem read-only */ @@ -258,11 +256,11 @@ function dynamic_local_auth() { fwrite($fout, " \n"); fwrite($fout, "\n"); fwrite($fout, " \n"); - fwrite($fout, ' require_once("/usr/local/pkg/squid_ng.inc");\n'); + fwrite($fout, " require_once(\"/usr/local/pkg/squid_ng.inc\");\n"); fwrite($fout, "\n"); fwrite($fout, " mod_htpasswd();\n"); fwrite($fout, " global_write_squid_config();\n"); - fwrite($fout, ' mwexec("/usr/local/sbin/squid -k reconfigure");\n'); + fwrite($fout, " mwexec(\"/usr/local/sbin/squid -k reconfigure\");\n"); fwrite($fout, " \n"); fwrite($fout, "\n"); fwrite($fout, "\n"); @@ -335,7 +333,7 @@ function dynamic_ldap_auth() { fwrite($fout, " \n"); fwrite($fout, " Base DN\n"); fwrite($fout, " ldap_basedn\n"); - fwrite($fout, ' This is the base where the LDAP search starts. All subsequent organizational units (OUs)will be included. Example: "ou=users,o=company" will search for users in and under the specified company.\n'); + fwrite($fout, " This is the base where the LDAP search starts. All subsequent organizational units (OUs)will be included. Example: \"ou=users,o=company\" will search for users in and under the specified company.\n"); fwrite($fout, " input\n"); fwrite($fout, " 50\n"); fwrite($fout, " \n"); @@ -364,7 +362,7 @@ function dynamic_ldap_auth() { fwrite($fout, " \n"); fwrite($fout, " LDAP Port\n"); fwrite($fout, " ldap_port\n"); - fwrite($fout, ' This is the port that LDAP bind will attempt on. The default is "389".\n'); + fwrite($fout, " This is the port that LDAP bind will attempt on. The default is \"389\".\n"); fwrite($fout, " input\n"); fwrite($fout, " 5\n"); fwrite($fout, " \n"); @@ -372,7 +370,7 @@ function dynamic_ldap_auth() { fwrite($fout, " \n"); fwrite($fout, " Bind DN Username\n"); fwrite($fout, " bind_dn_username\n"); - fwrite($fout, ' If "anonymous bind" is not supported, please specify the bind username that can access the Base DN hierarchy.\n'); + fwrite($fout, " If \"anonymous bind\" is not supported, please specify the bind username that can access the Base DN hierarchy.\n"); fwrite($fout, " input\n"); fwrite($fout, " 30\n"); fwrite($fout, " \n"); @@ -387,12 +385,12 @@ function dynamic_ldap_auth() { fwrite($fout, " \n"); fwrite($fout, "\n"); fwrite($fout, " \n"); - fwrite($fout, ' require_once("/usr/local/pkg/squid_ng.inc");\n'); + fwrite($fout, " require_once(\"/usr/local/pkg/squid_ng.inc\");\n"); fwrite($fout, "\n"); fwrite($fout, " mod_htpasswd();\n"); fwrite($fout, "\n"); fwrite($fout, " global_write_squid_config();\n"); - fwrite($fout, ' mwexec("/usr/local/sbin/squid -k reconfigure");\n'); + fwrite($fout, " mwexec(\"/usr/local/sbin/squid -k reconfigure\");\n"); fwrite($fout, " \n"); fwrite($fout, "\n"); fwrite($fout, "\n"); @@ -408,7 +406,7 @@ function dynamic_auth_content($pkgvar) { switch ($pkgvar) { case "pkg": - if ($handle = opendir('/usr/local/pkg')) { + if ($handle = opendir("/usr/local/pkg")) { while (($file = readdir($handle)) != false) { if (stristr($file, "squid_") && stristr($file, ".xml")) { $filecontents = file("/usr/local/pkg/" . $file); @@ -426,7 +424,7 @@ function dynamic_auth_content($pkgvar) { break; case "pkg_edit": - if ($handle = opendir('/usr/local/pkg')) { + if ($handle = opendir("/usr/local/pkg")) { while (($file = readdir($handle)) != false) { if (stristr($file, "squid_") && stristr($file, ".xml")) { $filecontents = file("/usr/local/pkg/" . $file); -- cgit v1.2.3