[ Index ] |
|
Code source de Mantis 1.1.0rc3 |
1 <?php 2 # Mantis - a php based bugtracking system 3 4 # Copyright (C) 2000 - 2002 Kenzaburo Ito - kenito@300baud.org 5 # Copyright (C) 2002 - 2007 Mantis Team - mantisbt-dev@lists.sourceforge.net 6 7 # Mantis is free software: you can redistribute it and/or modify 8 # it under the terms of the GNU General Public License as published by 9 # the Free Software Foundation, either version 2 of the License, or 10 # (at your option) any later version. 11 # 12 # Mantis is distributed in the hope that it will be useful, 13 # but WITHOUT ANY WARRANTY; without even the implied warranty of 14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 # GNU General Public License for more details. 16 # 17 # You should have received a copy of the GNU General Public License 18 # along with Mantis. If not, see <http://www.gnu.org/licenses/>. 19 20 # -------------------------------------------------------- 21 # $Id: lost_pwd_page.php,v 1.10.18.1 2007-10-13 22:33:21 giallu Exp $ 22 # -------------------------------------------------------- 23 # ====================================================================== 24 # Author: Marcello Scata' <marcelloscata at users.sourceforge.net> ITALY 25 # ====================================================================== 26 27 require_once ( 'core.php' ); 28 29 # lost password feature disabled or reset password via email disabled -> stop here! 30 if( OFF == config_get( 'lost_password_feature' ) || 31 OFF == config_get( 'send_reset_password' ) || 32 OFF == config_get( 'enable_email_notification' ) ) { 33 trigger_error( ERROR_LOST_PASSWORD_NOT_ENABLED, ERROR ); 34 } 35 36 html_page_top1(); 37 html_page_top2a(); 38 39 echo "<br />"; 40 ?> 41 <br /> 42 <div align="center"> 43 <form name="lost_password_form" method="post" action="lost_pwd.php"> 44 <table class="width50" cellspacing="1"> 45 <tr> 46 <td class="form-title" colspan="2"> 47 <?php echo lang_get( 'lost_password_title' ) ?> 48 </td> 49 </tr> 50 <?php 51 $t_allow_passwd = helper_call_custom_function( 'auth_can_change_password', array() ); 52 if ( $t_allow_passwd ) { 53 ?> 54 <tr class="row-1"> 55 <td class="category" width="25%"> 56 <?php echo lang_get( 'username' ) ?> 57 </td> 58 <td width="75%"> 59 <input type="text" name="username" size="32" maxlength="32" /> 60 </td> 61 </tr> 62 <tr class="row-2"> 63 <td class="category" width="25%"> 64 <?php echo lang_get( 'email' ) ?> 65 </td> 66 <td width="75%"> 67 <?php print_email_input( 'email', '' ) ?> 68 </td> 69 </tr> 70 <tr> 71 <td colspan="2"> 72 <br/> 73 <?php echo lang_get( 'lost_password_info' ) ?> 74 <br/><br/> 75 </td> 76 </tr> 77 <tr> 78 <td class="center" colspan="2"> 79 <input type="submit" class="button" value="<?php echo lang_get( 'submit_button' ) ?>" /> 80 </td> 81 </tr> 82 <?php 83 } else { 84 ?> 85 <tr> 86 <td colspan="2"> 87 <br/> 88 <?php echo lang_get( 'no_password_request' ) ?> 89 <br/><br/> 90 </td> 91 </tr> 92 <?php 93 } 94 ?> 95 96 </table> 97 </form> 98 </div> 99 100 <?php 101 PRINT '<br /><div align="center">'; 102 print_login_link(); 103 PRINT ' '; 104 print_signup_link(); 105 PRINT '</div>'; 106 107 if ( ON == config_get( 'use_javascript' ) ) { 108 ?> 109 <!-- Autofocus JS --> 110 <?php if ( ON == config_get( 'use_javascript' ) ) { ?> 111 <script type="text/javascript" language="JavaScript"> 112 <!-- 113 window.document.lost_password_form.username.focus(); 114 // --> 115 </script> 116 <?php } ?> 117 118 <?php 119 } 120 121 html_page_bottom1a( __FILE__ ); 122 ?>
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Thu Nov 29 09:42:17 2007 | par Balluche grâce à PHPXref 0.7 |
![]() |