devportal
Last change
on this file since bbe2084 was
bbe2084,
checked in by Angelo Osorio <danielking.321@…>, 5 years ago
|
Portal funcional
|
-
Property mode set to
100644
|
File size:
402 bytes
|
Line | |
---|
1 | <?php |
---|
2 | |
---|
3 | /** |
---|
4 | * Retorna la url absoluta del host |
---|
5 | * @author Ing. Angelo Osorio (danielking.321@gmail.com) |
---|
6 | * @licence CENDITEL |
---|
7 | */ |
---|
8 | function returnURL() { |
---|
9 | |
---|
10 | if (isset($_SERVER['HTTPS'])){ |
---|
11 | $protocol = ($_SERVER['HTTPS'] && $_SERVER['HTTPS'] != "off") ? "https" : "http"; |
---|
12 | } else { |
---|
13 | $protocol = 'http'; |
---|
14 | } |
---|
15 | |
---|
16 | echo $protocol . "://" . $_SERVER['SERVER_NAME'] . "/murachi/web"; |
---|
17 | } |
---|
18 | |
---|
19 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.