From 30dc0f9b0c1e34aa696d6fa233b631543a52f454 Mon Sep 17 00:00:00 2001 From: Gregory Soutade Date: Sat, 19 Oct 2013 09:04:02 +0200 Subject: [PATCH] Don't display addon address if there is no users --- server/index.php | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/server/index.php b/server/index.php index 4817efc..3149362 100755 --- a/server/index.php +++ b/server/index.php @@ -108,17 +108,13 @@ else echo "\n"; echo ' Master key '; echo "" . "\n"; -} + + if ($_SERVER['HTTPS'] == "") + echo "
Current addon address is : http://" . $_SERVER['SERVER_NAME'] . "/" . $user . "
\n"; + else + echo "
Current addon address is : https://" . $_SERVER['SERVER_NAME'] . "/" . $user . "
\n";} ?> -Current addon address is : http://" . $_SERVER['SERVER_NAME'] . "/" . $user . "\n"; -else - echo "
Current addon address is : https://" . $_SERVER['SERVER_NAME'] . "/" . $user . "
\n"; - -?>