Exemplo n.º 1
0
 $login = trim($login);
 $pass_confirm = trim($_POST['pass_confirm']);
 if ($pass == "" || $login == "" || $pass_confirm == "") {
     // DO NOTHING (car on ne peut pas deviner si y a eu un post
 } else {
     if ($pass == $pass_confirm) {
         //VERIFICATION existance du login
         $log = new logmein();
         $login_existence = $log->check_login($login);
         if ($login_existence["useremail"] == $login) {
             title('<img src="/img/info.png" height="32" width="32" ><font color="#990000">Ce login existe déjà</font>');
         } else {
             $username = $login;
             $password = md5($pass);
             $log = new logmein();
             $log->create_login($username, $password);
         }
     } else {
         title('<img src="/img/info.png" height="32" width="32" > <font color="#990000">Vous avez rentré un mot de passe différent</font>');
     }
 }
 /////////////////////////
 //CREATE USER END
 ////////////////////////
 title("Utilisateurs");
 /////////////////////////
 //SHOW USER
 ////////////////////////
 $log = new logmein();
 $result = $log->show_users();
 echo "<table align=center><tr>";