Show
Ignore:
Timestamp:
10/28/04 21:17:27 (9 years ago)
Author:
benoitg
Message:

2004-10-28 Benoit Gr�goire <bock@…>

  • sql/wifidog-postgres-schema.sql: Add constraints to avoid empty string in email or user_id.
  • Some statistics fixes
Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/wifidog-auth/wifidog/user_management/index.php

    r227 r254  
    6969      $email = ''; 
    7070    } 
    71   echo "<h1>"._('Register a free account with')." ".HOTSPOT_NETWORK_NAME."</h1>\n"; 
     71  echo "<h3>"._('Register a free account with')." ".HOTSPOT_NETWORK_NAME."</h3>\n"; 
    7272  echo "<form method='post'>\n"; 
    73   echo "Your desired username: <input type='text' name='username' value='$username'><br>\n"; 
    74   echo "Your email address: <input type='text' name='email' value='$email'><br>\n"; 
    75   echo "Your password: <input type='password' name='pass' value='$pass'><br>\n"; 
    76   echo "Your password(again): <input type='password' name='pass_again' value='$pass_again'><br>\n"; 
    77   echo "<input type='hidden' name='action' value='create_new_account'><br>\n"; 
    78   echo "<input type='submit'>\n"; 
     73  echo "<p>Your desired username: <input type='text' name='username' value='$username'></p>\n"; 
     74  echo "<p>Your email address: <input type='text' name='email' value='$email'> The email MUST be valid.  You will have to click on the link you will receive by email before your account is validated.</p>\n"; 
     75  echo "<p>Your password: <input type='password' name='pass' value='$pass'></p>\n"; 
     76  echo "<p>Your password(again): <input type='password' name='pass_again' value='$pass_again'></p>\n"; 
     77  echo "<p><input type='hidden' name='action' value='create_new_account'>\n"; 
     78  echo "<input type='submit'></p>\n"; 
    7979  echo "</form>\n"; 
    8080} 
     
    9090      $username = ''; 
    9191    } 
    92   echo "<h1>"._('Re-send validation email')."</h1>\n"; 
     92  echo "<h3>"._('Re-send validation email')."</h3>\n"; 
    9393  echo "<form method='post'>\n"; 
    9494  echo "Your username: <input type='text' name='username' value='$username'><br>\n"; 
     
    180180      $new_pass_again = ''; 
    181181    } 
    182   echo "<h1>"._('Change password')."</h1>\n"; 
     182  echo "<h3>"._('Change password')."</h3>\n"; 
    183183  echo "<form method='post'>\n"; 
    184184  echo "Your username: <input type='text' name='username' value='$username'><br>\n"; 
     
    201201      $email = ''; 
    202202    } 
    203   echo "<h1>"._('Lost username')."</h1>\n"; 
     203  echo "<h3>"._('Lost username')."</h3>\n"; 
    204204  echo "<form method='post'>\n"; 
    205205  echo "<p>"._('Please enter your email address:')." <input type='text' name='email' value='$email'></p>\n"; 
     
    258258    } 
    259259 
    260   echo "<h1>"._('Lost password')."</h1>\n"; 
     260  echo "<h3>"._('Lost password')."</h3>\n"; 
    261261  echo "<form method='post'>\n"; 
    262262  echo "<p>"._('Please enter either your username or your email:')."</p>\n"; 
     
    322322 Password: $new_passord 
    323323 
    324  To protect your account, it is recommended that you change your password immediately. 
    325  
    326  Thank you, 
     324 Have a nice day, 
    327325 
    328326 The Team"; 
     
    330328 
    331329      mail($email, $subject, $body, $from); 
    332             echo "<p>"._('Your password has been mailed to you.')."</p>\n"; 
     330            echo "<p>"._('A new password has been mailed to you.')."</p>\n"; 
    333331    } 
    334332} 
     
    337335 
    338336$style = new Style(); 
    339 echo $style->GetHeader(HOTSPOT_NETWORK_NAME.' New account registration'); 
     337echo $style->GetHeader(HOTSPOT_NETWORK_NAME.' user management'); 
    340338$showform=true; 
     339echo "<div id='head'><h1>".HOTSPOT_NETWORK_NAME." user management</h1></div>\n"; 
    341340echo "<div id='navLeft'>\n"; 
    342341echo get_user_management_menu(); 
     
    346345if(empty($_REQUEST['action'])) 
    347346  { 
    348  
     347echo _("<h3>Inscription</h3> 
     348<p>Pour vous connecter aux points d'acc�s ".HOTSPOT_NETWORK_NAME.", vous devez utiliser un nom d'utilisateur et un mot de passe.</p> 
     349<p>Les comptes sont totalement gratuits pour tous ceux qui en font la demande.</p> 
     350<p>Pour faire la demande d'un compte gratuit, veuillez choisir 'Create new account' dans le menu de gauche.</p> 
     351<h3>Sign up</h3> 
     352<p>".HOTSPOT_NETWORK_NAME." hotspots require you have a login and a password to utilize them.</p> 
     353<p>Accounts are given absolutely free to anyone who requests them.</p> 
     354<p>To request a free account, please choose 'Create new account' in the left menu.</p>"); 
    349355  } 
    350356else