core_second/functions/functions.input.php
/* Ensure that $login is not empty, valid and not used in database by another user */
Ensure that $login is not empty, valid and not used in database by another user
Ensure that $login is not empty valid and not used in database by another user
function check_login($login, $config, $dbsocket)
{
  if(filled($login))
  {
    if(valid_login($login, $config))
    {
      if(!user_exists('login', $login, $dbsocket))
      {
        return true;
      }
      else
      {
        return "<span class=\"error_msg\"> Le login existe déjà ! </span><br/>";
      }
    }
    else
    {
      return "<span class=\"error_msg\"> Le login est incorrect ! </span><br/>";
    }
  }
  else
  {
    return "<span class=\"error_msg\"> Le login doit être rempli ! </span><br/>";
  }
}
function check_login ( $ login , $ config , $ dbsocket ) { if ( filled ( $ login ) ) { if ( valid_login ( $ login , $ config ) ) { if ( ! user_exists ( 'login' , $ login , $ dbsocket ) ) { return true ; } else { return " <span class= \" error_msg \" > Le login existe déjà ! </span><br/>"; } } else { return " <span class= \" error_msg \" > Le login est incorrect ! </span><br/> " ; } } else { return " <span class= \" error_msg \" > Le login doit être rempli ! </span><br/>" ; } }
Ensure that $login is not empty, valid and not used in database by another user
Ensure that $login is not empty valid and not used in database by another user