Changeset 9e8b630 in portal_2019 for php/url.php
- Timestamp:
- Oct 28, 2019, 1:36:17 PM (5 years ago)
- Branches:
- master, dev, portal
- Children:
- 8f2445f
- Parents:
- b8bdf51
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
php/url.php
rb8bdf51 r9e8b630 2 2 3 3 /** 4 * Retorna la url absoluta del host4 * Retorna la url relativa del host dependiendo de si es el index o no 5 5 * @author Ing. Angelo Osorio (danielking.321@gmail.com) 6 6 * @licence CENDITEL 7 7 */ 8 8 function 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 "."; 12 11 } else { 13 $protocol = 'http';12 echo ".."; 14 13 } 15 16 echo $protocol . "://" . $_SERVER['SERVER_NAME'];17 14 } 18 15
Note: See TracChangeset
for help on using the changeset viewer.