Ignore:
Timestamp:
Sep 13, 2017, 1:34:43 PM (2 years ago)
Author:
joamuran
Message:

fixed access through ip and added rss feed

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lliurex-www/trunk/fuentes/install-lliurex-www/usr/share/lliurex-www/srv/getResources.php

    r3815 r5815  
    5858
    5959function drawIcon($linkid, $link, $icon, $fonticon, $name, $description, $file,$type){
    60  
     60        //echo (gethostname()."<br>");
     61       
     62        if ($_SERVER['SERVER_NAME']==$_SERVER['SERVER_ADDR']){
     63                // if we are acessing remotely by IP, let's modify link to access fine
     64                $protocol=explode("//", $link)[0];
     65                $url=explode("//", $link)[1];
     66                $link=$protocol."//".$_SERVER['SERVER_ADDR']."/".$url;
     67                //echo($link);
     68        }
     69       
     70   // echo ("$link"."<br>");
    6171        // check if it is a easy site
    6272        $path=explode("/", $file);
Note: See TracChangeset for help on using the changeset viewer.