Fix #11417: Allow EVENT_MENU_MAIN plugin events to return null
[mantis/radio.git] / lost_pwd_page.php
blob4f5b272083cf8a1e6d804277a663ddec96a36eb7
1 <?php
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/>.
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 - 2010 MantisBT Team - mantisbt-dev@lists.sourceforge.net
22 * @link http://www.mantisbt.org
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
34 require_once( 'core.php' );
35 require_api( 'config_api.php' );
36 require_api( 'constant_inc.php' );
37 require_api( 'form_api.php' );
38 require_api( 'helper_api.php' );
39 require_api( 'html_api.php' );
40 require_api( 'lang_api.php' );
41 require_api( 'print_api.php' );
43 # lost password feature disabled or reset password via email disabled -> stop here!
44 if ( LDAP == config_get_global( 'login_method' ) ||
45 OFF == config_get( 'lost_password_feature' ) ||
46 OFF == config_get( 'send_reset_password' ) ||
47 OFF == config_get( 'enable_email_notification' ) ) {
48 trigger_error( ERROR_LOST_PASSWORD_NOT_ENABLED, ERROR );
51 # don't index lost password page
52 html_robots_noindex();
54 html_page_top1();
55 html_page_top2a();
57 echo "<br />";
59 <br />
60 <div align="center">
61 <form name="lost_password_form" method="post" action="lost_pwd.php">
62 <?php echo form_security_field( 'lost_pwd' ) ?>
63 <table class="width50" cellspacing="1">
64 <tr>
65 <td class="form-title" colspan="2">
66 <?php echo lang_get( 'lost_password_title' ) ?>
67 </td>
68 </tr>
69 <?php
70 $t_allow_passwd = helper_call_custom_function( 'auth_can_change_password', array() );
71 if ( $t_allow_passwd ) {
73 <tr class="row-1">
74 <td class="category" width="25%">
75 <?php echo lang_get( 'username' ) ?>
76 </td>
77 <td width="75%">
78 <input type="text" name="username" size="32" maxlength="<?php echo USERLEN;?>" />
79 </td>
80 </tr>
81 <tr class="row-2">
82 <td class="category" width="25%">
83 <?php echo lang_get( 'email' ) ?>
84 </td>
85 <td width="75%">
86 <?php print_email_input( 'email', '' ) ?>
87 </td>
88 </tr>
89 <tr>
90 <td colspan="2">
91 <br/>
92 <?php echo lang_get( 'lost_password_info' ) ?>
93 <br/><br/>
94 </td>
95 </tr>
96 <tr>
97 <td class="center" colspan="2">
98 <input type="submit" class="button" value="<?php echo lang_get( 'submit_button' ) ?>" />
99 </td>
100 </tr>
101 <?php
102 } else {
104 <tr>
105 <td colspan="2">
106 <br/>
107 <?php echo lang_get( 'no_password_request' ) ?>
108 <br/><br/>
109 </td>
110 </tr>
111 <?php
115 </table>
116 </form>
117 </div>
119 <?php
120 echo '<br /><div align="center">';
121 print_login_link();
122 echo '&nbsp;';
123 print_signup_link();
124 echo '</div>';
126 if ( ON == config_get( 'use_javascript' ) ) {
128 <!-- Autofocus JS -->
129 <?php if ( ON == config_get( 'use_javascript' ) ) { ?>
130 <script type="text/javascript" language="JavaScript">
131 <!--
132 window.document.lost_password_form.username.focus();
133 // -->
134 </script>
135 <?php
139 html_page_bottom1a( __FILE__ );