Changeset 254
- Timestamp:
- 10/28/04 21:17:27 (9 years ago)
- Location:
- trunk/wifidog-auth
- Files:
-
- 7 modified
-
ChangeLog (modified) (1 diff)
-
sql/wifidog-postgres-schema.sql (modified) (2 diffs)
-
wifidog/admin/import_user_database.php (modified) (1 diff)
-
wifidog/admin/templates/user_stats.html (modified) (1 diff)
-
wifidog/local_content/README (modified) (1 diff)
-
wifidog/login/index.php (modified) (1 diff)
-
wifidog/user_management/index.php (modified) (9 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wifidog-auth/ChangeLog
r236 r254 1 1 # $Header$ 2 2004-10-28 Benoit Gr�goire <bock@step.polymtl.ca> 3 * sql/wifidog-postgres-schema.sql: Add constraints to avoid empty string in email or user_id. 4 * Some statistics fixes 2 5 3 6 2004-09-29 Alexandre Carmel-Veilleux <acv@acv.ca> -
trunk/wifidog-auth/sql/wifidog-postgres-schema.sql
r232 r254 68 68 last_heartbeat_ip character varying(16), 69 69 last_heartbeat_timestamp timestamp without time zone DEFAULT now(), 70 creation_date date DEFAULT now() 70 creation_date date DEFAULT now(), 71 home_page_url text 71 72 ); 72 73 … … 83 84 account_status integer, 84 85 validation_token character varying(64) DEFAULT ''::character varying NOT NULL, 85 reg_date timestamp without time zone DEFAULT now() NOT NULL 86 reg_date timestamp without time zone DEFAULT now() NOT NULL, 87 CONSTRAINT check_email_not_empty CHECK (((email)::text <> ''::text)), 88 CONSTRAINT check_user_not_empty CHECK (((user_id)::text <> ''::text)) 86 89 ); 87 90 -
trunk/wifidog-auth/wifidog/admin/import_user_database.php
r227 r254 108 108 } 109 109 110 echo "<p class=info>Generating temporary user from: $original_username; Checking internal duplicates </p>\n";110 echo "<p class=info>Generating temporary user from: $original_username; Checking internal duplicates (duplicate usernames in the imported file)</p>\n"; 111 111 $username_modified_because_of=null; 112 112 $username=$original_username; -
trunk/wifidog-auth/wifidog/admin/templates/user_stats.html
r194 r254 57 57 {foreach from=$connections item=connection} 58 58 <tr> 59 <td>{$connection.timestamp_in |date_format:"%Y/%m/%d %H:%M:%S"}</td>60 <td>{$connection.timestamp_out |date_format:"%Y/%m/%d %H:%M:%S"}</td>59 <td>{$connection.timestamp_in}</td> 60 <td>{$connection.timestamp_out}</td> 61 61 <td>{$connection.token_status_description}</td> 62 62 <td>{$connection.user_mac}</td> 63 63 <td>{$connection.user_ip}</td> 64 <td>{$connection. hotspot_id}</td>65 <td>{$connection. hotspot_ip}</td>64 <td>{$connection.node_id}</td> 65 <td>{$connection.node_ip}</td> 66 66 <td align="right">{$connection.incoming}</td> 67 67 <td align="right">{$connection.outgoing}</td> -
trunk/wifidog-auth/wifidog/local_content/README
r174 r254 11 11 A few notes about Smarty templates: 12 12 13 You can see the variables available to the template by adding { $debug} at the top of the html file.13 You can see the variables available to the template by adding {debug} at the top of the html file. -
trunk/wifidog-auth/wifidog/login/index.php
r226 r254 42 42 } 43 43 44 if ( isset($_REQUEST['user']) && isset($_REQUEST['pass']))44 if (!empty($_REQUEST['user']) && !empty($_REQUEST['pass'])) 45 45 { 46 46 $security = new Security(); -
trunk/wifidog-auth/wifidog/user_management/index.php
r227 r254 69 69 $email = ''; 70 70 } 71 echo "<h 1>"._('Register a free account with')." ".HOTSPOT_NETWORK_NAME."</h1>\n";71 echo "<h3>"._('Register a free account with')." ".HOTSPOT_NETWORK_NAME."</h3>\n"; 72 72 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"; 79 79 echo "</form>\n"; 80 80 } … … 90 90 $username = ''; 91 91 } 92 echo "<h 1>"._('Re-send validation email')."</h1>\n";92 echo "<h3>"._('Re-send validation email')."</h3>\n"; 93 93 echo "<form method='post'>\n"; 94 94 echo "Your username: <input type='text' name='username' value='$username'><br>\n"; … … 180 180 $new_pass_again = ''; 181 181 } 182 echo "<h 1>"._('Change password')."</h1>\n";182 echo "<h3>"._('Change password')."</h3>\n"; 183 183 echo "<form method='post'>\n"; 184 184 echo "Your username: <input type='text' name='username' value='$username'><br>\n"; … … 201 201 $email = ''; 202 202 } 203 echo "<h 1>"._('Lost username')."</h1>\n";203 echo "<h3>"._('Lost username')."</h3>\n"; 204 204 echo "<form method='post'>\n"; 205 205 echo "<p>"._('Please enter your email address:')." <input type='text' name='email' value='$email'></p>\n"; … … 258 258 } 259 259 260 echo "<h 1>"._('Lost password')."</h1>\n";260 echo "<h3>"._('Lost password')."</h3>\n"; 261 261 echo "<form method='post'>\n"; 262 262 echo "<p>"._('Please enter either your username or your email:')."</p>\n"; … … 322 322 Password: $new_passord 323 323 324 To protect your account, it is recommended that you change your password immediately. 325 326 Thank you, 324 Have a nice day, 327 325 328 326 The Team"; … … 330 328 331 329 mail($email, $subject, $body, $from); 332 echo "<p>"._(' Yourpassword has been mailed to you.')."</p>\n";330 echo "<p>"._('A new password has been mailed to you.')."</p>\n"; 333 331 } 334 332 } … … 337 335 338 336 $style = new Style(); 339 echo $style->GetHeader(HOTSPOT_NETWORK_NAME.' New account registration');337 echo $style->GetHeader(HOTSPOT_NETWORK_NAME.' user management'); 340 338 $showform=true; 339 echo "<div id='head'><h1>".HOTSPOT_NETWORK_NAME." user management</h1></div>\n"; 341 340 echo "<div id='navLeft'>\n"; 342 341 echo get_user_management_menu(); … … 346 345 if(empty($_REQUEST['action'])) 347 346 { 348 347 echo _("<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>"); 349 355 } 350 356 else
