From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matthias Fischer To: development@lists.ipfire.org Subject: [PATCH] proxy.cgi: Even more cosmetics (V5) Date: Fri, 13 Oct 2017 22:29:20 +0200 Message-ID: <20171013202920.30124-1-matthias.fischer@ipfire.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1866995177800865695==" List-Id: --===============1866995177800865695== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Another clickable link for 'proxy.cgi', this time for 'Cache Manager Interfac= e' - this one opens in a new window. And: This time - hopefully - with correct '_blank'-attribute (deleted the bac= kslashes) - based on current 'next'. Plus: Deleted some "blind" tabs - found by chance. Best, Matthias Signed-off-by: Matthias Fischer --- 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 dd83bba73..6aa14e15a 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 =3D $Lang::tr{'advproxy errmsg cache'}." ".$proxysettings{'C= ACHE_MEM'}." > ".$proxysettings{'CACHE_SIZE'}; goto ERROR; } -=09 + if (!(&General::validport($proxysettings{'PROXY_PORT'}))) { $errormessage =3D $Lang::tr{'advproxy errmsg invalid proxy port'}; @@ -695,7 +695,7 @@ ERROR: system ('/usr/bin/touch', "${General::swroot}/proxy/transparent_blue"); } =20 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'); }=09 + if ($proxysettings{'ACTION'} eq $Lang::tr{'proxy reconfigure'}) { system('= /usr/local/bin/squidctrl reconfigure >/dev/null 2>&1'); } } } =20 @@ -1118,7 +1118,7 @@ print <$Lang::tr{'advproxy cache management'} - $Lang::tr{'proxy cachemgr'}: + $Lan= g::tr{'proxy cachemgr'}: $Lang::tr{'advproxy admin mail'}: @@ -3206,7 +3206,7 @@ END =20 if ($proxysettings{'OFFLINE_MODE'} eq 'on') { print FILE "offline_mode on\= n\n"; } if ($proxysettings{'CACHE_DIGESTS'} eq 'on') { print FILE "digest_generati= on on\n\n"; } else { print FILE "digest_generation off\n\n"; } -=09 + if ((!($proxysettings{'MEM_POLICY'} eq 'LRU')) || (!($proxysettings{'CACHE_= POLICY'} eq 'LRU'))) { if (!($proxysettings{'MEM_POLICY'} eq 'LRU')) --=20 2.14.2 --===============1866995177800865695==--