| [ Index ] |
|
Code source de b2evolution 2.1.0-beta |
1 <?php 2 /** 3 * This is the registration form 4 * 5 * This file is part of the evoCore framework - {@link http://evocore.net/} 6 * See also {@link http://sourceforge.net/projects/evocms/}. 7 * 8 * @copyright (c)2003-2007 by Francois PLANQUE - {@link http://fplanque.net/} 9 * 10 * {@internal License choice 11 * - If you have received this file as part of a package, please find the license.txt file in 12 * the same folder or the closest folder above for complete license terms. 13 * - If you have received this file individually (e-g: from http://evocms.cvs.sourceforge.net/) 14 * then you must choose one of the following licenses before using the file: 15 * - GNU General Public License 2 (GPL) - http://www.opensource.org/licenses/gpl-license.php 16 * - Mozilla Public License 1.1 (MPL) - http://www.opensource.org/licenses/mozilla1.1.php 17 * }} 18 * 19 * {@internal Open Source relicensing agreement: 20 * Daniel HAHLER grants Francois PLANQUE the right to license 21 * Daniel HAHLER's contributions to this file and the b2evolution project 22 * under any OSI approved OSS license (http://www.opensource.org/licenses/). 23 * }} 24 * 25 * @package htsrv 26 * 27 * {@internal Below is a list of authors who have contributed to design/coding of this file: }} 28 * @author blueyed: Daniel HAHLER 29 * @author fplanque: Francois PLANQUE. 30 */ 31 if( !defined('EVO_MAIN_INIT') ) die( 'Please, do not access this page directly.' ); 32 33 34 /** 35 * Include page header: 36 */ 37 $page_title = T_('Register form'); 38 $page_icon = 'icon_register.gif'; 39 require dirname(__FILE__).'/_html_header.inc.php'; 40 41 42 $Form = & new Form( $htsrv_url_sensitive.'register.php', '', 'post', 'fieldset' ); 43 44 $Form->begin_form( 'fform' ); 45 46 $Form->hidden( 'action', 'register'); 47 $Form->hidden( 'redirect_to', url_rel_to_same_host($redirect_to, $htsrv_url_sensitive) ); 48 49 echo $Form->fieldstart; 50 51 $Form->text_input( 'login', $login, 16, T_('Login'), '', array( 'maxlength'=>20, 'class'=>'input_text', 'required'=>true ) ); 52 53 // TODO: dh> display param errors with pass1 and pass2.. 54 ?> 55 56 <fieldset> 57 <div class="label"><label for="pass1"><?php echo T_('Password') ?><br /><?php echo T_('(twice)').'<br />' ?></label></div> 58 <div class="input"> 59 <input type="password" name="pass1" id="pass1" size="16" maxlength="50" value="" class="input_text field_required" /> 60 <input type="password" name="pass2" id="pass2" size="16" maxlength="50" value="" class="input_text field_required" /> 61 <span class="notes"><?php printf( T_('Minimum %d characters, please.'), $Settings->get('user_minpwdlen') ) ?></span> 62 </div> 63 </fieldset> 64 65 <?php 66 $Form->text_input( 'email', $email, 16, T_('Email'), '', array( 'maxlength'=>255, 'class'=>'input_text', 'required'=>true ) ); 67 68 $Form->select( 'locale', $locale, 'locale_options_return', T_('Locale'), T_('Preferred language') ); 69 70 $Plugins->trigger_event( 'DisplayRegisterFormFieldset', array( 'Form' => & $Form ) ); 71 ?> 72 73 <fieldset> 74 <div class="input"> 75 <input type="submit" name="submit" value="<?php echo T_('Register!') ?>" class="search" /> 76 </div> 77 </fieldset> 78 </fieldset> 79 <?php 80 $Form->end_form(); // display hidden fields etc 81 ?> 82 83 <div style="text-align:right"> 84 <a href="<?php echo $htsrv_url_sensitive.'login.php?redirect_to='.rawurlencode(url_rel_to_same_host($redirect_to, $htsrv_url_sensitive)) ?>"><?php echo T_('Log into existing account...') ?></a> 85 </div> 86 87 <?php 88 require dirname(__FILE__).'/_html_footer.inc.php'; 89 90 /* 91 * $Log: _reg_form.main.php,v $ 92 * Revision 1.1 2007/06/25 11:02:40 fplanque 93 * MODULES (refactored MVC) 94 * 95 * Revision 1.13 2007/04/26 00:11:10 fplanque 96 * (c) 2007 97 * 98 * Revision 1.12 2007/02/12 00:20:41 blueyed 99 * Pass redirect_to param to "Login..." link 100 * 101 * Revision 1.11 2006/12/09 01:55:36 fplanque 102 * feel free to fill in some missing notes 103 * hint: "login" does not need a note! :P 104 * 105 * Revision 1.10 2006/11/24 18:27:26 blueyed 106 * Fixed link to b2evo CVS browsing interface in file docblocks 107 * 108 * Revision 1.9 2006/10/15 21:30:46 blueyed 109 * Use url_rel_to_same_host() for redirect_to params. 110 * 111 * Revision 1.8 2006/06/25 23:34:15 blueyed 112 * wording pt2 113 * 114 * Revision 1.7 2006/06/25 23:23:38 blueyed 115 * wording 116 * 117 * Revision 1.6 2006/06/22 22:30:04 blueyed 118 * htsrv url for password related scripts (login, register and profile update) 119 * 120 * Revision 1.5 2006/04/22 01:57:36 blueyed 121 * adjusted maxlength for email 122 * 123 * Revision 1.4 2006/04/21 16:56:36 blueyed 124 * Mark fields as required; small fix (double-encoding) 125 * 126 * Revision 1.3 2006/04/19 20:13:52 fplanque 127 * do not restrict to :// (does not catch subdomains, not even www.) 128 * 129 */ 130 ?>
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
| Généré le : Thu Nov 29 23:58:50 2007 | par Balluche grâce à PHPXref 0.7 |
|