From c4b12981e207e169c1bc0369e1c3ca7fda48964d Mon Sep 17 00:00:00 2001 From: Matthias Fischer Date: Fri, 13 Oct 2017 22:29:20 +0200 Subject: [PATCH] proxy.cgi: Even more cosmetics Another clickable link for 'proxy.cgi', this time for 'Cache Manager Interface' - this one opens in a new window. And: This time - hopefully - with correct '_blank'-attribute (deleted the backslashes) - based on current 'next'. Plus: Deleted some "blind" tabs - found by chance. Signed-off-by: Matthias Fischer Signed-off-by: Michael Tremer --- html/cgi-bin/proxy.cgi | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/html/cgi-bin/proxy.cgi b/html/cgi-bin/proxy.cgi index dd83bba73b..6aa14e15a7 100644 --- a/html/cgi-bin/proxy.cgi +++ b/html/cgi-bin/proxy.cgi @@ -359,7 +359,7 @@ if (($proxysettings{'ACTION'} eq $Lang::tr{'save'}) || ($proxysettings{'ACTION'} $errormessage = $Lang::tr{'advproxy errmsg cache'}." ".$proxysettings{'CACHE_MEM'}." > ".$proxysettings{'CACHE_SIZE'}; goto ERROR; } - + if (!(&General::validport($proxysettings{'PROXY_PORT'}))) { $errormessage = $Lang::tr{'advproxy errmsg invalid proxy port'}; @@ -695,7 +695,7 @@ ERROR: system ('/usr/bin/touch', "${General::swroot}/proxy/transparent_blue"); } if ($proxysettings{'ACTION'} eq $Lang::tr{'advproxy save and restart'}) { system('/usr/local/bin/squidctrl restart >/dev/null 2>&1'); } - if ($proxysettings{'ACTION'} eq $Lang::tr{'proxy reconfigure'}) { system('/usr/local/bin/squidctrl reconfigure >/dev/null 2>&1'); } + if ($proxysettings{'ACTION'} eq $Lang::tr{'proxy reconfigure'}) { system('/usr/local/bin/squidctrl reconfigure >/dev/null 2>&1'); } } } @@ -1118,7 +1118,7 @@ print <$Lang::tr{'advproxy cache management'} - $Lang::tr{'proxy cachemgr'}: + $Lang::tr{'proxy cachemgr'}: $Lang::tr{'advproxy admin mail'}: @@ -3206,7 +3206,7 @@ END if ($proxysettings{'OFFLINE_MODE'} eq 'on') { print FILE "offline_mode on\n\n"; } if ($proxysettings{'CACHE_DIGESTS'} eq 'on') { print FILE "digest_generation on\n\n"; } else { print FILE "digest_generation off\n\n"; } - + if ((!($proxysettings{'MEM_POLICY'} eq 'LRU')) || (!($proxysettings{'CACHE_POLICY'} eq 'LRU'))) { if (!($proxysettings{'MEM_POLICY'} eq 'LRU')) -- 2.39.2