Changeset 723

Show
Ignore:
Timestamp:
09/08/05 00:22:11 (8 years ago)
Author:
benoitg
Message:

2005-09-08 Benoit Gr�goire <bock@…>

  • portal/index.php: Custom portal redirect now operational.
Location:
trunk/wifidog-auth
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/wifidog-auth/ChangeLog

    r722 r723  
     12005-09-08 Benoit Grégoire  <bock@step.polymtl.ca> 
     2        * portal/index.php:  Custom portal redirect now operational. 
     3         
    142005-09-08 Benoit Grégoire  <bock@step.polymtl.ca> 
    25        * MainUI:  Move call to garbage_collect() here. 
  • trunk/wifidog-auth/wifidog/portal/index.php

    r722 r723  
    4444 
    4545/*  If this node has a custom portal defined, and the network config allows it, redirect to the custom portal */  
    46 if(!empty($node->getCustomPortalRedirectUrl()) && $network->getCustomPortalRedirectAllowed()) 
    47 { 
    48         header("Location: {$node->getCustomPortalRedirectUrl()}"); 
     46$custom_portal_url = $node->getCustomPortalRedirectUrl(); 
     47if(!empty($custom_portal_url) && $network->getCustomPortalRedirectAllowed()) 
     48{ 
     49        header("Location: {$custom_portal_url}"); 
    4950} 
    5051