2 # MantisBT - A PHP based bugtracking system
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.
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.
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/>.
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
25 * @uses config_api.php
26 * @uses constant_inc.php
28 * @uses helper_api.php
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' );
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
);
55 # don't index lost password page
56 html_robots_noindex();
61 <div id
="lost-password-div" class="form-container">
62 <form id
="lost-password-form" method
="post" action
="lost_pwd.php">
64 <legend
><span
><?php
echo lang_get( 'lost_password_title' ); ?
></span
></legend
>
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
>
70 echo form_security_field( 'lost_pwd' );
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
>
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
>
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
87 echo '<span id="no-password-msg">';
88 echo lang_get( 'no_password_request' );
95 html_page_bottom1a( __FILE__
);