| [ Index ] |
PHP Cross Reference of MantisBT |
[Summary view] [Print] [Text view]
1 <?php 2 # MantisBT - A PHP based bugtracking system 3 4 # MantisBT is free software: you can redistribute it and/or modify 5 # it under the terms of the GNU General Public License as published by 6 # the Free Software Foundation, either version 2 of the License, or 7 # (at your option) any later version. 8 # 9 # MantisBT is distributed in the hope that it will be useful, 10 # but WITHOUT ANY WARRANTY; without even the implied warranty of 11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 # GNU General Public License for more details. 13 # 14 # You should have received a copy of the GNU General Public License 15 # along with MantisBT. If not, see <http://www.gnu.org/licenses/>. 16 17 /** 18 * @package MantisBT 19 * @author Marcello Scata' <marcelloscata at users.sourceforge.net> ITALY 20 * @copyright Copyright (C) 2000 - 2002 Kenzaburo Ito - kenito@300baud.org 21 * @copyright Copyright (C) 2002 - 2011 MantisBT Team - mantisbt-dev@lists.sourceforge.net 22 * @link http://www.mantisbt.org 23 * 24 * @uses core.php 25 * @uses config_api.php 26 * @uses constant_inc.php 27 * @uses form_api.php 28 * @uses helper_api.php 29 * @uses html_api.php 30 * @uses lang_api.php 31 * @uses print_api.php 32 */ 33 34 /** 35 * MantisBT Core API's 36 */ 37 require_once ( 'core.php' ); 38 require_api( 'config_api.php' ); 39 require_api( 'constant_inc.php' ); 40 require_api( 'form_api.php' ); 41 require_api( 'helper_api.php' ); 42 require_api( 'html_api.php' ); 43 require_api( 'lang_api.php' ); 44 require_api( 'print_api.php' ); 45 require_css( 'login.css' ); 46 47 # lost password feature disabled or reset password via email disabled -> stop here! 48 if ( LDAP == config_get_global( 'login_method' ) || 49 OFF == config_get( 'lost_password_feature' ) || 50 OFF == config_get( 'send_reset_password' ) || 51 OFF == config_get( 'enable_email_notification' ) ) { 52 trigger_error( ERROR_LOST_PASSWORD_NOT_ENABLED, ERROR ); 53 } 54 55 # don't index lost password page 56 html_robots_noindex(); 57 58 html_page_top1(); 59 html_page_top2a(); 60 ?> 61 <div id="lost-password-div" class="form-container"> 62 <form id="lost-password-form" method="post" action="lost_pwd.php"> 63 <fieldset> 64 <legend><span><?php echo lang_get( 'lost_password_title' ); ?></span></legend> 65 <ul id="login-links"> 66 <li><a href="login_page.php"><?php echo lang_get( 'login_link' ); ?></a></li> 67 <li><a href="signup_page.php"><?php echo lang_get( 'signup_link' ); ?></a></li> 68 </ul> 69 <?php 70 echo form_security_field( 'lost_pwd' ); 71 72 $t_allow_passwd = helper_call_custom_function( 'auth_can_change_password', array() ); 73 if ( $t_allow_passwd ) { ?> 74 <div class="field-container <?php echo helper_alternate_class_no_attribute(); ?>"> 75 <label for="username"><span><?php echo lang_get( 'username' ) ?></span></label> 76 <span class="input"><input id="username" type="text" name="username" size="32" maxlength="<?php echo USERLEN;?>" class="autofocus" /></span> 77 <span class="label-style"></span> 78 </div> 79 <div class="field-container <?php echo helper_alternate_class_no_attribute(); ?>"> 80 <label for="email-field"><span><?php echo lang_get( 'email' ) ?></span></label> 81 <span class="input"><?php print_email_input( 'email', '' ) ?></span> 82 <span class="label-style"></span> 83 </div> 84 <span id="lost-password-msg"><?php echo lang_get( 'lost_password_info' ); ?></span> 85 <span class="submit-button"><input type="submit" class="button" value="<?php echo lang_get( 'submit_button' ) ?>" /></span><?php 86 } else { 87 echo '<span id="no-password-msg">'; 88 echo lang_get( 'no_password_request' ); 89 echo '</span>'; 90 } ?> 91 </fieldset> 92 </form> 93 </div><?php 94 95 html_page_bottom1a( __FILE__ );
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| Generated: Thu Jul 28 15:48:31 2011 | Cross-referenced by PHPXref 0.7 |