summaryrefslogtreecommitdiff
path: root/lib/account/new.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/account/new.php')
-rw-r--r--lib/account/new.php24
1 files changed, 12 insertions, 12 deletions
diff --git a/lib/account/new.php b/lib/account/new.php
index 2366fbb..63ec85e 100644
--- a/lib/account/new.php
+++ b/lib/account/new.php
@@ -1,6 +1,6 @@
<?php
-$title = "Register";
+$title = "Création d'un compte";
$login = "";
$email = "";
@@ -10,29 +10,29 @@ if (isset($_POST['login']) && isset($_POST['pw1']) && isset($_POST['pw2'])) {
$pw1 = esc($_POST["pw1"]);
$pw2 = esc($_POST["pw2"]);
if ($login == "") {
- $error = "You must enter a username.";
+ $error = "Vous devez entrer un nom d'utilisateur.";
} else if (!preg_match('#^[\w.-]+@[\w.-]+\.[a-zA-Z]{2,6}$#', $email)) {
- $error = "You must enter a valid email address.";
+ $error = "Vous devez entrer une adresse e-mail correcte.";
} else if ($pw1 != $pw2) {
- $error = "You must enter twice the same password.";
+ $error = "Vous devez entrer deux fois le même mot de passe.";
} else if ($pw1 == "") {
- $error = "You must enter a password";
+ $error = "Vous devez entrer un mot de passe.";
} else {
sql("INSERT INTO account(login, password, email, reg_date) ".
"VALUES('" . escs($login) . "', PASSWORD('$pw1'), '" . escs($email) . "', NOW())");
- $message = "Your account has been created. Please log in now.";
+ $message = "Votre compte a été créé, merci de vous identifier.";
$url = $homepage;
require("tpl/account/login.php");
}
}
-$form_message = "Please fill in the following form to create an account :";
+$form_message = "Merci de remplire le formulaire suivant afin de créer un compte :";
$fields = array(
- array("label" => "Username : ", "name" => "login", "value" => $login),
- array("label" => "Password : ", "name" => "pw1", "type" => "password"),
- array("label" => "Confirm password : ", "name" => "pw2", "type" => "password"),
- array("label" => "Email address : ", "name" => "email", "value" => $email)
+ array("label" => "Nom d'utilisateur : ", "name" => "login", "value" => $login),
+ array("label" => "Mot de passe : ", "name" => "pw1", "type" => "password"),
+ array("label" => "Confirmation : ", "name" => "pw2", "type" => "password"),
+ array("label" => "Adresse e-mail : ", "name" => "email", "value" => $email)
);
-$validate = "Create an account";
+$validate = "Envoyer";
require("tpl/general/form.php");