source:
portal_2019/php/url.php
@
74acf6f
Last change on this file since 74acf6f was 6460441, checked in by Angelo Osorio <danielking.321@…>, 5 years ago | |
---|---|
|
|
File size: 488 bytes |
Rev | Line | |
---|---|---|
[bbe2084] | 1 | <?php |
2 | ||
3 | /** | |
[9e8b630] | 4 | * Retorna la url relativa del host dependiendo de si es el index o no |
[bbe2084] | 5 | * @author Ing. Angelo Osorio (danielking.321@gmail.com) |
6 | * @licence CENDITEL | |
7 | */ | |
8 | function returnURL() { | |
[0320f1b] | 9 | // Desarrollo |
[6460441] | 10 | // if ($_SERVER['REQUEST_URI'] == "/murachi/portal/index.php" || $_SERVER['REQUEST_URI'] == "/murachi/portal/") { |
[0320f1b] | 11 | // Producción |
[6460441] | 12 | if ($_SERVER['REQUEST_URI'] == "/index.php" || $_SERVER['REQUEST_URI'] == "/") { |
[9e8b630] | 13 | echo "."; |
[bbe2084] | 14 | } else { |
[9e8b630] | 15 | echo ".."; |
[bbe2084] | 16 | } |
17 | } | |
18 | ||
19 | ?> |
Note: See TracBrowser
for help on using the repository browser.