From 7bef817c095ef732a2e279c6399e63aeb75f56fe Mon Sep 17 00:00:00 2001 From: jim-p Date: Tue, 7 Jun 2011 16:53:13 -0400 Subject: Add a box to allow the user to override the default squidguard "Request denied by pfSense proxy". Also don't use pfSense there, but the product name instead. --- config/squidGuard/sgerror.php | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'config/squidGuard/sgerror.php') diff --git a/config/squidGuard/sgerror.php b/config/squidGuard/sgerror.php index 8084c5c3..e1e49385 100644 --- a/config/squidGuard/sgerror.php +++ b/config/squidGuard/sgerror.php @@ -1,4 +1,6 @@ '; $str[] = ''; - $str[] = '

Request denied by pfSense proxy: ' . $err_code[$er_code_id] . '

'; + if ($config['installedpackages']['squidguarddefault']['config'][0]['deniedmessage']) { + $str[] = "

{$config['installedpackages']['squidguarddefault']['config'][0]['deniedmessage']}: {$err_code[$er_code_id]}

"; + } else { + $str[] = "

Request denied by {$g['product_name']} proxy: {$err_code[$er_code_id]}

"; + } if ($err_msg) $str[] = " Reason: $err_msg"; $str[] = '
'; if ($cl['a']) $str[] = " Client address: {$cl['a']}
"; -- cgit v1.2.3