From 09d4e21bdcc88d060d47d02218efb34d03622bce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pierre=20Mazi=C3=A8re?= Date: Sun, 3 Jul 2016 23:18:30 +0200 Subject: [PATCH] possibility to hide proxy address MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Pierre Mazière --- index.php | 2 ++ lib/HTMLUtils.php | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/index.php b/index.php index b26741c..b21cd4c 100644 --- a/index.php +++ b/index.php @@ -11,6 +11,8 @@ TODO : */ //define('PROXY_URL', 'tcp://192.168.0.0:28'); +// keep PROXY_NAME empty to display PROXY_URL instead +define('PROXY_NAME','Hidden Proxy Name'); date_default_timezone_set('UTC'); error_reporting(0); diff --git a/lib/HTMLUtils.php b/lib/HTMLUtils.php index 7547dfc..7cf1ec3 100644 --- a/lib/HTMLUtils.php +++ b/lib/HTMLUtils.php @@ -31,7 +31,7 @@ CARD; if(defined('PROXY_URL')){ $idArg = 'arg-' . urlencode($bridgeName) . '-' . urlencode('proxy') . '-' . urlencode('_p'); $card .= '' . PHP_EOL; - $card .= '
' . PHP_EOL; + $card .= '
' . PHP_EOL; } $card .= HTMLUtils::getHelperButtonsFormat($formats); @@ -109,7 +109,7 @@ CARD; if(defined('PROXY_URL')){ $idArg = 'arg-' . urlencode($bridgeName) . '-' . urlencode('proxy') . '-' . urlencode('_p'); $card .= '' . PHP_EOL; - $card .= '
' . PHP_EOL; + $card .= '
' . PHP_EOL; } $card .= HTMLUtils::getHelperButtonsFormat($formats);