Changeset 169

Show
Ignore:
Timestamp:
08/04/04 11:02:47 (9 years ago)
Author:
plec_
Message:

Fix non-standard server ports

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/wifidog-auth/wifidog/include/user_management_menu.php

    r152 r169  
    3131  $retval .= "<p>&nbsp;User management</p>\n"; 
    3232  $retval .= "<ul>\n"; 
    33   $retval .= "<li><a href='http://$_SERVER[SERVER_NAME]$_SERVER[PHP_SELF]?action=validation_email_form'>"._('Send validation email again')."</a></li>\n"; 
    34   $retval .= "<li><a href='http://$_SERVER[SERVER_NAME]$_SERVER[PHP_SELF]?action=lost_username_form'>"._('Lost my username')."</a></li>\n"; 
    35   $retval .= "<li><a href='http://$_SERVER[SERVER_NAME]$_SERVER[PHP_SELF]?action=lost_password_form'>"._('Lost my password')."</a></li>\n"; 
    36   $retval .= "<li><a href='http://$_SERVER[SERVER_NAME]$_SERVER[PHP_SELF]?action=change_password_form'>"._('Change my password')."</a></li>\n";  
    37   $retval .= "<li><a href='http://$_SERVER[SERVER_NAME]$_SERVER[PHP_SELF]?action=register_new_account_form'>"._('Register a new user')."</a></li>\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  } 
    3847  $retval .= "</ul>\n"; 
    3948  //$retval .= "</div>\n";