Changeset 1136

Show
Ignore:
Timestamp:
11/23/06 10:22:38 (6 years ago)
Author:
benoitg
Message:

Fix broken portal when called from gateway

Location:
trunk/wifidog-auth
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/wifidog-auth/CHANGELOG

    r1135 r1136  
    112006-11-22 Benoit Grégoire  <bock@step.polymtl.ca> 
    22        * Fix broken auth 
     3        * Fix broken portal when called from gateway 
     4         
    352006-11-22 Benoit Grégoire  <bock@step.polymtl.ca> 
    46        * Major schema update (this one is going to make your database grind for a while, sorry 
  • trunk/wifidog-auth/wifidog/portal/index.php

    r1133 r1136  
    8686    try { 
    8787        $node = Node :: getObject($_REQUEST['node_id']); 
     88        $network = $node->getNetwork(); 
     89    } catch (Exception $e) { 
     90        $ui = MainUI::getObject(); 
     91        $ui->displayError($e->getMessage()); 
     92        exit; 
     93    } 
     94} 
     95else if (!empty ($_REQUEST['gw_id'])) {//This section MUST remain, the gw_id calling convention is hard_coded into the gateway 
     96    try { 
     97        $node = Node :: getObjectByGatewayId($_REQUEST['gw_id']); 
    8898        $network = $node->getNetwork(); 
    8999    } catch (Exception $e) {