Changeset 9e8b630 in portal_2019


Ignore:
Timestamp:
Oct 28, 2019, 1:36:17 PM (5 years ago)
Author:
Angelo Osorio <danielking.321@…>
Branches:
master, dev, portal
Children:
8f2445f
Parents:
b8bdf51
Message:

cambiadas las urls a relativas

File:
1 edited

Legend:

Unmodified
Added
Removed
  • php/url.php

    rb8bdf51 r9e8b630  
    22
    33/**
    4  * Retorna la url absoluta del host
     4 * Retorna la url relativa del host dependiendo de si es el index o no
    55 * @author Ing. Angelo Osorio (danielking.321@gmail.com)
    66 * @licence CENDITEL
    77 */
    88function returnURL() {
    9 
    10     if (isset($_SERVER['HTTPS'])){
    11         $protocol = ($_SERVER['HTTPS'] && $_SERVER['HTTPS'] != "off") ? "https" : "http";
     9    if ($_SERVER['REQUEST_URI'] == "/index.php" || $_SERVER['REQUEST_URI'] == "/") {
     10        echo ".";
    1211    } else {
    13         $protocol = 'http';
     12        echo "..";
    1413    }
    15 
    16     echo $protocol . "://" . $_SERVER['SERVER_NAME'];
    1714}
    1815
Note: See TracChangeset for help on using the changeset viewer.