source: portal_2019/php/url.php @ 6568648

devportal
Last change on this file since 6568648 was 6460441, checked in by Angelo Osorio <danielking.321@…>, 5 years ago

urls issue

  • Property mode set to 100644
File size: 488 bytes
RevLine 
[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 */
8function 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.