Changeset 183

Show
Ignore:
Timestamp:
08/12/04 13:08:09 (9 years ago)
Author:
benoitg
Message:

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

  • wifidog/config.php: Add USER_MANAGEMENT_PAGE
  • wifidog/include/user_management_menu.php: Code meant to deal with non-standard ports broke the menu. Hopefully fixed.
  • Add alex's mising changelog entry...
Location:
trunk/wifidog-auth
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • trunk/wifidog-auth/ChangeLog

    r175 r183  
    11# $Header$ 
     22004-08-11 Benoit Gr�goire  <bock@step.polymtl.ca> 
     3        * wifidog/config.php: Add USER_MANAGEMENT_PAGE 
     4        * wifidog/include/user_management_menu.php:  Code meant to deal with non-standard ports broke the menu.  Hopefully fixed. 
     5        * Add alex's mising changelog entry... 
     6         
     72004-08-11 alexcv 
     8        * wifidog/ping/index.php: will now reply if the wifidog auth server is up. to be used by wifidog to do heartbeats. 
     9 
    2102004-08-07 Benoit Gr�goire  <bock@step.polymtl.ca> 
    311        * Add code to import a NoCat user database (passwd).  The username will be generated from the first part of the email if the name was en email. 
  • trunk/wifidog-auth/wifidog/config.php

    r163 r183  
    4444define('PAGE_HEADER_NAME', 'header.html'); 
    4545define('PAGE_FOOTER_NAME', 'footer.html'); 
     46define('USER_MANAGEMENT_PAGE', 'user_management/'); 
    4647define('HOTSPOT_LOGO_NAME', 'hotspot_logo.jpg'); 
    4748define('HOTSPOT_LOGO_BANNER_NAME', 'hotspot_logo_banner.jpg'); 
  • trunk/wifidog-auth/wifidog/include/user_management_menu.php

    r169 r183  
    3131  $retval .= "<p>&nbsp;User management</p>\n"; 
    3232  $retval .= "<ul>\n"; 
    33   if($_SERVER['SERVER_PORT']==80) {  
    34     $retval .= "<li><a href='http://$_SERVER[SERVER_NAME]$_SERVER[PHP_SELF]?action=validation_email_form'>"._('Send validation email again')."</a></li>\n"; 
    35     $retval .= "<li><a href='http://$_SERVER[SERVER_NAME]$_SERVER[PHP_SELF]?action=lost_username_form'>"._('Lost my username')."</a></li>\n"; 
    36     $retval .= "<li><a href='http://$_SERVER[SERVER_NAME]$_SERVER[PHP_SELF]?action=lost_password_form'>"._('Lost my password')."</a></li>\n"; 
    37     $retval .= "<li><a href='http://$_SERVER[SERVER_NAME]$_SERVER[PHP_SELF]?action=change_password_form'>"._('Change my password')."</a></li>\n";  
    38     $retval .= "<li><a href='http://$_SERVER[SERVER_NAME]$_SERVER[PHP_SELF]?action=register_new_account_form'>"._('Register a new user')."</a></li>\n";  
    39   } 
    40   else { 
    41     $retval .= "<li><a href='http://$_SERVER[SERVER_NAME]:$_SERVER[SERVER_PORT]$_SERVER[PHP_SELF]?action=validation_email_form'>"._('Send validation email again')."</a></li>\n"; 
    42     $retval .= "<li><a href='http://$_SERVER[SERVER_NAME]:$_SERVER[SERVER_PORT]$_SERVER[PHP_SELF]?action=lost_username_form'>"._('Lost my username')."</a></li>\n"; 
    43     $retval .= "<li><a href='http://$_SERVER[SERVER_NAME]:$_SERVER[SERVER_PORT]$_SERVER[PHP_SELF]?action=lost_password_form'>"._('Lost my password')."</a></li>\n"; 
    44     $retval .= "<li><a href='http://$_SERVER[SERVER_NAME]:$_SERVER[SERVER_PORT]$_SERVER[PHP_SELF]?action=change_password_form'>"._('Change my password')."</a></li>\n"; 
    45     $retval .= "<li><a href='http://$_SERVER[SERVER_NAME]:$_SERVER[SERVER_PORT]$_SERVER[PHP_SELF]?action=register_new_account_form'>"._('Register a new user')."</a></li>\n"; 
    46   } 
     33 
     34    $retval .= "<li><a href='".BASE_URL_PATH."".USER_MANAGEMENT_PAGE."?action=validation_email_form'>"._('Send validation email again')."</a></li>\n"; 
     35    $retval .= "<li><a href='".BASE_URL_PATH."".USER_MANAGEMENT_PAGE."?action=lost_username_form'>"._('Lost my username')."</a></li>\n"; 
     36    $retval .= "<li><a href='".BASE_URL_PATH."".USER_MANAGEMENT_PAGE."?action=lost_password_form'>"._('Lost my password')."</a></li>\n"; 
     37    $retval .= "<li><a href='".BASE_URL_PATH."".USER_MANAGEMENT_PAGE."?action=change_password_form'>"._('Change my password')."</a></li>\n";  
     38    $retval .= "<li><a href='".BASE_URL_PATH."".USER_MANAGEMENT_PAGE."?action=register_new_account_form'>"._('Register a new user')."</a></li>\n";  
     39  
    4740  $retval .= "</ul>\n"; 
    4841  //$retval .= "</div>\n";