Changeset 30645 in spip-zone


Ignore:
Timestamp:
Aug 6, 2009, 7:55:52 AM (10 years ago)
Author:
bennetteson@…
Message:

On favorise le port que le domaine !

File:
1 edited

Legend:

Unmodified
Added
Removed
  • _plugins_/multidomaines/base/multidomaines_options.php

    r30644 r30645  
    1414        $return[] = $GLOBALS['meta']['multidomaines_squelettes'].'/'.implode('.',$hostArray).'.'.$extention.'.'.$_SERVER["SERVER_PORT"];
    1515        $return[] = $GLOBALS['meta']['multidomaines_squelettes'].'/'.implode('.',$hostArray).'.'.$_SERVER["SERVER_PORT"];
     16        array_shift($hostArray);
     17}while (count($hostArray)>0);
     18
     19$hostArray = explode('.',$_SERVER['HTTP_HOST']);
     20
     21if (count($hostArray)==1) return $return = $hostArray;
     22$extention = array_pop($hostArray);
     23       
     24do
     25{
    1626        $return[] = $GLOBALS['meta']['multidomaines_squelettes'].'/'.implode('.',$hostArray).'.'.$extention;
    1727        $return[] = $GLOBALS['meta']['multidomaines_squelettes'].'/'.implode('.',$hostArray);
Note: See TracChangeset for help on using the changeset viewer.