Changeset 160

Show
Ignore:
Timestamp:
08/03/04 11:52:16 (9 years ago)
Author:
benoitg
Message:

2004-08-03 Benoit Gr�goire <bock@…>

  • Fix BASE_URL_PATH to properly detect non-standard server ports (hopefully).
Location:
trunk/wifidog-auth
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/wifidog-auth/ChangeLog

    r159 r160  
    11# $Header$ 
     22004-08-03 Benoit Gr�goire  <bock@step.polymtl.ca> 
     3        * Fix BASE_URL_PATH to properly detect non-standard server ports (hopefully). 
    242004-08-02 Benoit Gr�goire  <bock@step.polymtl.ca> 
    35        * wifidog-auth lives! New since the dark ages 
  • trunk/wifidog-auth/wifidog/config.php

    r152 r160  
    1818define("LOST_USERNAME_EMAIL_SUBJECT", HOTSPOT_NETWORK_NAME.' lost username request'); 
    1919 
     20if($_SERVER['SERVER_PORT']==80) 
     21  { 
     22    $server_port=''; 
     23  }  
     24else 
     25  { 
     26   $server_port=$_SERVER['SERVER_PORT']; 
     27  } 
    2028define("BASE_URL_PATH",  'http://' . $_SERVER['SERVER_NAME'] . '/wifidog/'); 
    2129define('RSS_SUPPORT', true); //If true, MAGPIERSS must be installed in MAGPIE_REL_PATH