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"; - -?>