Display addon address to use (server side)

This commit is contained in:
Gregory Soutade 2013-10-19 08:45:04 +02:00
parent 67d21ff3ef
commit 875b48899c
2 changed files with 14 additions and 0 deletions

View File

@ -111,6 +111,14 @@ else
} }
?> ?>
</form> </form>
<?php
global $user;
if ($_SERVER['HTTPS'] == "")
echo "<div id=\"addon_address\">Current addon address is : http://" . $_SERVER['SERVER_NAME'] . "/" . $user . "</div>\n";
else
echo "<div id=\"addon_address\">Current addon address is : https://" . $_SERVER['SERVER_NAME'] . "/" . $user . "</div>\n";
?>
<div id="passwords"> <div id="passwords">
<?php <?php
global $user; global $user;

View File

@ -51,6 +51,12 @@ body {
margin : 15px; margin : 15px;
} }
#addon_address {
padding:10px;
text-align:center;
font-size:xx-large;
}
.hash { .hash {
width : 700px; width : 700px;
} }