Changeset 349
- Timestamp:
- 01/18/05 16:45:31 (8 years ago)
- Location:
- trunk/wifidog-auth/wifidog
- Files:
-
- 6 modified
-
include/language.php (modified) (1 diff)
-
locale/fr/LC_MESSAGES/messages.mo (modified) (previous)
-
locale/fr/LC_MESSAGES/messages.po (modified) (13 diffs)
-
signup.php (modified) (2 diffs)
-
templates/main.html (modified) (1 diff)
-
templates/user_management_menu.html (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wifidog-auth/wifidog/include/language.php
r320 r349 1 1 <?php 2 if (!empty($_REQUEST['lang'])) { 3 $session->set('SESS_LANGUAGE_VAR', $_REQUEST['lang']); 4 } 5 6 if ($session->get('SESS_LANGUAGE_VAR')) { 7 setlocale(LC_ALL, $session->get('SESS_LANGUAGE_VAR')); 8 } 9 2 10 if (GETTEXT_AVAILABLE) { 3 11 $current_locale = setlocale(LC_ALL, DEFAULT_LANG); -
trunk/wifidog-auth/wifidog/locale/fr/LC_MESSAGES/messages.po
r343 r349 9 9 "Project-Id-Version: PACKAGE VERSION\n" 10 10 "Report-Msgid-Bugs-To: \n" 11 "POT-Creation-Date: 2005-01-1 5 00:23-0500\n"11 "POT-Creation-Date: 2005-01-18 10:30-0500\n" 12 12 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" 13 13 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" … … 64 64 65 65 #: smarty.txt:6 smarty.txt:24 smarty.txt:37 smarty.txt:38 smarty.txt:39 66 #: smarty.txt:33 66 67 msgid "Re-send validation email" 67 68 msgstr "Renvoyez-moi le courriel de validation" … … 222 223 223 224 #: smarty.txt:31 smarty.txt:35 smarty.txt:34 smarty.txt:44 smarty.txt:45 224 #: smarty.txt:46 smarty.txt:53 smarty.txt:54 225 #: smarty.txt:46 smarty.txt:53 smarty.txt:54 smarty.txt:59 225 226 msgid "Online at this hotspot" 226 227 msgstr "En ligne à ce point d'accès sans-fil" 227 228 228 229 #: smarty.txt:32 smarty.txt:36 smarty.txt:35 smarty.txt:45 smarty.txt:46 229 #: smarty.txt:47 smarty.txt:54 smarty.txt:55 230 #: smarty.txt:47 smarty.txt:54 smarty.txt:55 smarty.txt:60 230 231 msgid "Go to the site I originally requested" 231 232 msgstr "Aller au site web que j'ai demandé" … … 240 241 241 242 #: smarty.txt:33 smarty.txt:32 smarty.txt:42 smarty.txt:34 smarty.txt:43 242 #: smarty.txt:44 smarty.txt:36 smarty.txt:51 smarty.txt:52 243 #: smarty.txt:44 smarty.txt:36 smarty.txt:51 smarty.txt:52 smarty.txt:41 244 #: smarty.txt:57 243 245 msgid "Username (or email)" 244 246 msgstr "Usager (ou courriel)" … … 246 248 #: smarty.txt:34 smarty.txt:33 smarty.txt:43 smarty.txt:35 smarty.txt:44 247 249 #: smarty.txt:45 smarty.txt:37 smarty.txt:47 smarty.txt:52 smarty.txt:53 250 #: smarty.txt:42 smarty.txt:58 248 251 msgid "Password" 249 252 msgstr "Mot de passe" … … 257 260 msgstr "Mot de passe incorrect (CAPS LOCK à actif?)" 258 261 259 #: ../portal/index.php:117 262 #: ../portal/index.php:117 ../portal/index.php:116 260 263 msgid "Error: " 261 264 msgstr "Erreur: " 262 265 263 #: ../hotspot_status.php:68 266 #: ../hotspot_status.php:68 ../hotspot_status.php:67 264 267 msgid "Newest" 265 268 msgstr "Plus récent" 266 269 267 #: ../hotspot_status.php:68 270 #: ../hotspot_status.php:68 ../hotspot_status.php:67 268 271 msgid "Hotspots" 269 272 msgstr "Noeuds sans-fil" 270 273 271 #: ../hotspot_status.php:80 274 #: ../hotspot_status.php:80 ../hotspot_status.php:79 272 275 msgid "WiFiDog list of the most recent HotSpots opened by " 273 276 msgstr "" 274 277 275 #: ../hotspot_status.php:94 278 #: ../hotspot_status.php:94 ../hotspot_status.php:93 276 279 msgid "Copyright " 277 280 msgstr "" 278 281 279 #: ../hotspot_status.php:235 282 #: ../hotspot_status.php:235 ../hotspot_status.php:234 280 283 msgid "Address:" 281 284 msgstr "Adresse:" 282 285 283 #: ../hotspot_status.php:239 286 #: ../hotspot_status.php:239 ../hotspot_status.php:238 284 287 msgid "Mass transit:" 285 288 msgstr "Transport en commun:" … … 319 322 msgstr "Noeud sans-fil" 320 323 321 #: smarty.txt:35 smarty.txt:36 smarty.txt:38 324 #: smarty.txt:35 smarty.txt:36 smarty.txt:38 smarty.txt:43 322 325 msgid "Login" 323 326 msgstr "Ouvrir une session" … … 355 358 msgstr "Ou encore" 356 359 357 #: smarty.txt:32 smarty.txt:43 smarty.txt:51 360 #: smarty.txt:32 smarty.txt:43 smarty.txt:51 smarty.txt:37 smarty.txt:48 361 #: smarty.txt:56 358 362 msgid "FREE WIRELESS INTERNET" 359 363 msgstr "INTERNET SANS-FIL GRATUIT" 360 364 361 #: smarty.txt:33 365 #: smarty.txt:33 smarty.txt:38 362 366 msgid "Welcome to" 363 367 msgstr "Bienvenue chez" 364 368 365 #: smarty.txt:34 369 #: smarty.txt:34 smarty.txt:39 366 370 msgid "Please log-in or" 367 371 msgstr "Ouvrez une session ou" 368 372 369 #: smarty.txt:35 373 #: smarty.txt:35 smarty.txt:40 370 374 msgid "Sign-up, it's free!" 371 375 msgstr "Inscrivez-vous, c'est gratuit!" 372 376 373 #: smarty.txt:39 377 #: smarty.txt:39 smarty.txt:44 374 378 msgid "I already have an account, but" 375 379 msgstr "J'ai déjà un usager, mais" 376 380 377 #: smarty.txt:40 381 #: smarty.txt:40 smarty.txt:45 378 382 msgid "I Forgot my username" 379 383 msgstr "J'ai oublié mon nom d'usager" 380 384 381 #: smarty.txt:41 385 #: smarty.txt:41 smarty.txt:46 382 386 msgid "I Forgot my password" 383 387 msgstr "J'ai oublié mon mot de passe" 384 388 385 #: smarty.txt:42 389 #: smarty.txt:42 smarty.txt:47 386 390 msgid "Re-send the validation email" 387 391 msgstr "Renvoyez-moi le courriel de validation" 388 392 389 #: smarty.txt:44 393 #: smarty.txt:44 smarty.txt:49 390 394 msgid "Register a free account with" 391 395 msgstr "" 392 396 393 #: smarty.txt:45 397 #: smarty.txt:45 smarty.txt:50 394 398 msgid "Username desired" 395 399 msgstr "Nom d'usager désiré" 396 400 397 #: smarty.txt:46 401 #: smarty.txt:46 smarty.txt:51 398 402 msgid "Your email address" 399 403 msgstr "Votre courriel" 400 404 401 #: smarty.txt:48 405 #: smarty.txt:48 smarty.txt:53 402 406 msgid "Password (again)" 403 407 msgstr "Mot de passe (encore)" 404 408 405 #: smarty.txt:49 409 #: smarty.txt:49 smarty.txt:54 406 410 msgid "Sign-up" 407 411 msgstr "Souscrire" 408 412 409 #: smarty.txt:50 413 #: smarty.txt:50 smarty.txt:55 410 414 msgid "" 411 415 "Your email address must be valid in order for your account to be activated" … … 414 418 "puisse être activé" 415 419 416 #: ../signup.php:43 420 #: ../signup.php:43 ../include/validation.php:9 417 421 msgid "Unable to locate " 418 422 msgstr "Impossible de trouver " 419 423 420 #: ../signup.php:43 424 #: ../signup.php:43 ../include/validation.php:9 421 425 msgid " in the database." 422 426 msgstr " dans la base de donnée." 423 427 424 #: ../signup.php:47 428 #: ../signup.php:47 ../include/validation.php:13 425 429 msgid "The user is not in validation period." 426 430 msgstr "L'usager n'est pas en période de validation." 427 431 428 #: ../signup.php:50 432 #: ../signup.php:50 ../include/validation.php:16 429 433 msgid "The validation token is empty." 430 434 msgstr "Le jeton de validation est vide." 431 435 432 #: ../signup.php:66 436 #: ../signup.php:66 ../include/validation.php:32 433 437 msgid "" 434 438 "An email with confirmation instructions was sent to your email address. " … … 438 442 msgstr "" 439 443 "Un courriel incluant les instructions pour confirmer votre compte à " 440 "été envoyé à votre adresse courriel. Votre compte à"441 " été accordé 15 minutes d'accès afin que vous "442 " puissiez allez lire vos courriels et valider votre compte. Veuillez"443 " maintenant aller à une adresse Internet distante afin d'obtenir une"444 " page de saisie de mot de passe."445 446 #: ../signup.php:80 444 "été envoyé à votre adresse courriel. Votre " 445 "compte à été accordé 15 minutes d'accès " 446 "afin que vous puissiez allez lire vos courriels et valider votre compte. " 447 "Veuillez maintenant aller à une adresse Internet distante afin " 448 "d'obtenir une page de saisie de mot de passe." 449 450 #: ../signup.php:80 ../signup.php:43 447 451 msgid "Username is required." 448 452 msgstr "Le nom d'utilisateur est requit." 449 453 450 #: ../signup.php:82 454 #: ../signup.php:82 ../signup.php:45 451 455 msgid "Username contains invalid characters." 452 456 msgstr "Le nom d'utilisateur contient des caractères invalides." 453 457 454 #: ../signup.php:84 458 #: ../signup.php:84 ../signup.php:47 455 459 msgid "A valid email address is required." 456 460 msgstr "Une adresse courriel est requise." 457 461 458 #: ../signup.php:86 462 #: ../signup.php:86 ../signup.php:49 459 463 msgid "The email address must be of the form user@domain.com." 460 msgstr "" 461 "L'adresse courriel doit être de la forme usager@domaine.com." 462 463 #: ../signup.php:88 464 msgstr "L'adresse courriel doit être de la forme usager@domaine.com." 465 466 #: ../signup.php:88 ../signup.php:51 464 467 msgid "A password of at least 6 characters is required." 465 468 msgstr "Un mot de passe d'au moins 6 caractères est requis." 466 469 467 #: ../signup.php:90 470 #: ../signup.php:90 ../signup.php:53 468 471 msgid "Password contains invalid characters." 469 472 msgstr "Le mot de passe contient des caractères invalides." 470 473 471 #: ../signup.php:92 474 #: ../signup.php:92 ../signup.php:55 472 475 msgid "You must type your password twice." 473 476 msgstr "Vous devez entrer votre mot de passe deux fois pour le confirmer." 474 477 475 #: ../signup.php:94 478 #: ../signup.php:94 ../signup.php:57 476 479 msgid "Passwords do not match." 477 480 msgstr "Les mots de passe ne sont pas identiques." 478 481 479 #: ../signup.php:96 482 #: ../signup.php:96 ../signup.php:59 480 483 msgid "Password is too short, it must be 6 characters minimum." 481 484 msgstr "Mot de passe trop court, il doit contenir 6 caractères minimum." 482 485 483 #: ../signup.php:105 486 #: ../signup.php:105 ../signup.php:68 484 487 msgid "" 485 488 "Sorry, a user account is already associated to this username. Pick another " … … 489 492 "à ce nom d'utilisateur. Choisissez en un autre." 490 493 491 #: ../signup.php:107 494 #: ../signup.php:107 ../signup.php:70 492 495 msgid "Sorry, this email address is already registered." 493 496 msgstr "" … … 495 498 "enregistrée." 496 499 497 #: ../signup.php:109 500 #: ../signup.php:109 ../signup.php:72 498 501 msgid "Email me my username" 499 502 msgstr "Envoyez moi mon nom d'usager" 500 503 501 #: ../signup.php:121 504 #: ../signup.php:121 ../signup.php:84 502 505 msgid "An internal error occured, please contact us." 503 506 msgstr "Une erreur interne est survenue, veuillez nous contacter." … … 543 546 #: ../validate.php:55 ../validate.php:56 544 547 msgid "Sorry, your validation token is not valid!" 545 msgstr "Désolé, votre jeton de validation n'est pas accepté!" 548 msgstr "" 549 "Désolé, votre jeton de validation n'est pas accepté!" 550 551 #: ../resend_validation.php:39 552 msgid "Please specify a username" 553 msgstr "" 554 555 #: ../resend_validation.php:44 556 msgid "Unable to find " 557 msgstr "" 558 559 #: ../resend_validation.php:44 560 msgid " in the database" 561 msgstr "" 562 563 #: smarty.txt:34 564 msgid "Your username" 565 msgstr "" 566 567 #: smarty.txt:35 568 msgid "Re-send" 569 msgstr "" 570 571 #: smarty.txt:36 572 msgid "" 573 "Please enter your username and the validation email will be resent to your " 574 "email address" 575 msgstr "" -
trunk/wifidog-auth/wifidog/signup.php
r332 r349 33 33 34 34 include BASEPATH.'include/language.php'; 35 36 function send_validation_email($email) { 37 global $db; 38 global $smarty; 39 40 $user_info = null; 41 $db->ExecSqlUniqueRes("SELECT * FROM users WHERE email='$email'", $user_info, false); 42 if ($user_info == null) { 43 $smarty->assign("error", _("Unable to locate ") . $_REQUEST["email"] . _(" in the database.")); 44 } else { 45 if ($user_info['account_status'] != ACCOUNT_STATUS_VALIDATION) { 46 /* Note: Do not display the username here, for privacy reasons */ 47 $smarty->assign("error", _("The user is not in validation period.")); 48 } else { 49 if (empty($user_info['validation_token'])) { 50 $smarty->assign("error", _("The validation token is empty.")); 51 } else { 52 $subject = VALIDATION_EMAIL_SUBJECT; 53 $url = "http://" . $_SERVER["HTTP_HOST"] . "/validate.php?username=" . $_REQUEST["username"] . "&token=" . $user_info["validation_token"]; 54 $body = "Hello! 55 56 Please follow the link below to validate your account. 57 58 $url 59 60 Thank you, 61 62 The Team"; 63 $from = "From: " . VALIDATION_EMAIL_FROM_ADDRESS; 64 65 mail($email, $subject, $body, $from); 66 $smarty->append("message", _("An email with confirmation instructions was sent to your email address. Your account has been granted 15 minutes of access to retrieve your email and validate your account. You may now open a browser window and go to any remote Internet address to obtain the login page.")); 67 $smarty->display("templates/validate.html"); 68 exit; 69 } 70 } 71 } 72 } 35 include BASEPATH.'include/mgmt_helpers.php'; 73 36 74 37 if (isset($_REQUEST["submit"])) { … … 117 80 $update_successful = $db->ExecSqlUpdate("INSERT INTO users (user_id,email,pass,account_status,validation_token,reg_date) VALUES ('{$_REQUEST["username"]}','{$_REQUEST["email"]}','$password_hash','{$status}','{$token}',NOW())"); 118 81 if ($update_successful) { 119 send_validation_email($_REQUEST["email"] , $smarty);82 send_validation_email($_REQUEST["email"]); 120 83 } else { 121 84 $smarty->assign("error", _("An internal error occured, please contact us.")); -
trunk/wifidog-auth/wifidog/templates/main.html
r316 r349 4 4 <li><a href='hotspot_status.php'>{"Deployed HotSpots status with coordinates"|_}</a></li> 5 5 <li><a href='node_list.php'>{"Full node technical status (includes non-deployed nodes)"|_}</a></li> 6 <li><a href='user_management/index.php'>{"Personal user management"|_}</a></li>7 6 <li><a href='{$smarty.const.BASE_SSL_PATH}admin/index.php'>{"Administration"|_}</a></li> 8 7 </ul> -
trunk/wifidog-auth/wifidog/templates/user_management_menu.html
r337 r349 7 7 <ul> 8 8 <li><a href='{$smarty.const.BASE_SSL_PATH}signup.php'>{"Create new account"|_}</a></li> 9 <li><a href='{$smarty.const.BASE_SSL_PATH} {$smarty.const.USER_MANAGEMENT_PAGE}?action=validation_email_form'>{"Re-send validation email"|_}</a></li>10 <li><a href='{$smarty.const.BASE_SSL_PATH} {$smarty.const.USER_MANAGEMENT_PAGE}?action=lost_username_form'>{"Lost username"|_}</a></li>11 <li><a href='{$smarty.const.BASE_SSL_PATH} {$smarty.const.USER_MANAGEMENT_PAGE}?action=lost_password_form'>{"Lost password"|_}</a></li>12 <li><a href='{$smarty.const.BASE_SSL_PATH} {$smarty.const.USER_MANAGEMENT_PAGE}?action=change_password_form'>{"Change password"|_}</a></li>9 <li><a href='{$smarty.const.BASE_SSL_PATH}resend_validation.php'>{"Re-send validation email"|_}</a></li> 10 <li><a href='{$smarty.const.BASE_SSL_PATH}lost_username.php'>{"Lost username"|_}</a></li> 11 <li><a href='{$smarty.const.BASE_SSL_PATH}lost_password.php'>{"Lost password"|_}</a></li> 12 <li><a href='{$smarty.const.BASE_SSL_PATH}change_password.php'>{"Change password"|_}</a></li> 13 13 </ul> 14 14
