source: portal_2019/php/url.php @ 9e8b630

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

cambiadas las urls a relativas

  • Property mode set to 100644
File size: 333 bytes
Line 
1<?php
2
3/**
4 * Retorna la url relativa del host dependiendo de si es el index o no
5 * @author Ing. Angelo Osorio (danielking.321@gmail.com)
6 * @licence CENDITEL
7 */
8function returnURL() {
9    if ($_SERVER['REQUEST_URI'] == "/index.php" || $_SERVER['REQUEST_URI'] == "/") {
10        echo ".";
11    } else {
12        echo "..";
13    }
14}
15
16?>
Note: See TracBrowser for help on using the repository browser.