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 +++++++++- config/squidGuard/squidguard_default.xml | 9 +++++++++ 2 files changed, 18 insertions(+), 1 deletion(-) (limited to 'config') 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']}
"; diff --git a/config/squidGuard/squidguard_default.xml b/config/squidGuard/squidguard_default.xml index 6fae67c6..ff05085a 100644 --- a/config/squidGuard/squidguard_default.xml +++ b/config/squidGuard/squidguard_default.xml @@ -62,6 +62,15 @@ checkbox + + Proxy Denied Error + deniedmessage + The first part of the error message displayed to clients when denied. Defaults to "Request denied by $g['product_name'] proxy" + textarea + 65 + 2 + + Redirect mode redirect_mode -- cgit v1.2.3