Contact or email you should choose. Advice over use of a single code

This commit is contained in:
Lgnap
2013-04-23 12:04:45 +02:00
parent ad239ff694
commit 63fd1c96d6

View File

@@ -109,7 +109,7 @@ case 'validate':
if ( $passwd and $passwd != $passwdv ) if ( $passwd and $passwd != $passwdv )
$er .= 'Password and password verification do not match.<br>'; $er .= 'Password and password verification do not match.<br>';
if ( $email && ! is_email($contact) ) if ( $contact && ! is_email($contact) )
$er .= 'E-mail address ('. htvar($contact) . ') may be invalid.<br>'; $er .= 'E-mail address ('. htvar($contact) . ') may be invalid.<br>';
if (strpos($store_dir,$_SERVER['DOCUMENT_ROOT']) === 0) if (strpos($store_dir,$_SERVER['DOCUMENT_ROOT']) === 0)
@@ -739,7 +739,7 @@ E-mail: <a href=mailto:someone@somewhere.com>someone@somewhere.com</a>&nbsp;&nbs
<td> <td>
<strong>Password</strong> <font color=red>*</font><br> <strong>Password</strong> <font color=red>*</font><br>
This password will be used to protect your root certificate private This password will be used to protect your root certificate private
key. <strong><font color=red>Do not lose or forget this password.</font></strong> key.<br/>Can't contain single quote ! <strong><font color=red>Do not lose or forget this password.</font></strong>
</td> </td>
<td><input type=password name=passwd value="<?=htvar($passwd)?>" size=30>&nbsp;&nbsp; Again <input type=password name=passwdv value="<?=htvar($passwdv)?>" size=30></td> <td><input type=password name=passwd value="<?=htvar($passwd)?>" size=30>&nbsp;&nbsp; Again <input type=password name=passwdv value="<?=htvar($passwdv)?>" size=30></td>
</tr> </tr>