Ca:Forum's administration changes

From X-Moto
Revision as of 02:09, 9 October 2006 by Trullo (talk | contribs)
Jump to: navigation, search

English

Prohibit posar una direccio web (URL) durant la creació d'un compte

Per evitar als odiosos usuaris robots, mai mes sera possible incloura una direccio web a l'hora de crear un compte. L'arxiu modificat es /includes/usercp_register.php :

 #-----[ FIND ]---------------------------------------------------------
 
   else if ( $mode == 'register' )
   {
      if ( empty($username) || empty($new_password) || empty($password_confirm) || empty($email) )
      {
         $error = TRUE;
         $error_msg .= ( ( isset($error_msg) ) ? '<br />' : '' ) . $lang['Fields_empty'];

 
 #-----[ THEN,ADD ]---------------------------------------------------

 if ( ! empty($website) )
 {
 $error = TRUE;
 $error_msg .= ( ( isset($error_msg) ) ? '<br />' : '' ) . "Afin d'éviter l'inscription de spammers, veuillez ne pas mettre d'adresse web lors de votre inscription. Vous pourrez remplir ce champ plus tard. In order to limit nasty robot users, please don't put web url during the inscription. You will be able to update it after.";
 }
 } 

Valentin, admin on forum.xmoto.free.fr, 8 October 2006, 16:04