Autor Tópico: digitar duas vezes por e-mail durante o registo  (Lida 3345 vezes)

0 Membros e 1 Visitante estão a ver este tópico.

Offline candidosa2

  • Suporte Tecnico
  • Fundador
  • *
  • Mensagens: 5072
  • Rank: 1658
  • Sexo: Masculino
  • Suporte
    • Hosting Moçambique
digitar duas vezes por e-mail durante o registo
« em: 30 de Janeiro de 2009, 07:18 »
Themes/default/Register.template.php
Pesquisr
Código: [Seleccione]
   // Are they allowed to hide their email?
   if ($context['allow_hide_email'])
      echo '
                     <input type="checkbox" name="hideEmail" class="check" id="hideEmail" /> <label for="hideEmail">', $txt[721], '</label>';

   echo '
                  </td>
               </tr><tr>
Adicionar
Código: [Seleccione]
                  <td width="40%">
                     <b>Verify ', $txt[69], ':</b>
                     <div class="smalltext">This is just to make sure you didn\'t mis-type your email address...</div>
                  </td>
                  <td>
                     <input type="text" name="email2" size="30" />
                  </td>
               </tr><tr>

Sources/Register.php

Pesquisar
Código: [Seleccione]
   if (empty($_POST['email']) || preg_match('~^[0-9A-Za-z=_+\-/][0-9A-Za-z=_\'+\-/\.]+@[\w\-]+(\.[\w\-]+)*(\.[\w]{2,6})$~', $_POST['email']) == 0)
      fatal_error(sprintf($txt[500], $_POST['user']), false);

Adicionar
Código: [Seleccione]
   if (empty($_POST['email2']) || $_POST['email2'] != $_POST['email'])
      fatal_lang_error('Email addresses aren\'t the same.', false);