3 require_once(
"../class/config_nochk.php");
7 if (isset($_REQUEST[
'name_or_email'])) {
12 $msg->raise(
'ERROR', _(
'Failed to validate CSRF token'));
22 $mem->send_reset_url($_REQUEST[
'name_or_email']);
25 if (!isset($charset) || ! $charset) {
29 @header(
"Content-Type: text/html; charset=$charset");
30 require_once(
"html-head.php");
33 <body
class=
"login_page">
38 $logo = variable_get(
'logo_login',
'' ,
'You can specify a logo for the login page, example /images/my_logo.png .', array(
'desc'=>
'URL',
'type'=>
'string'));
40 $logo =
'images/logo.png';
43 <p
id=
'logo'> <img src=
"<?php echo $logo; ?>" border=
"0" height=
"100px" alt=
"<?php __("Web Hosting Control Panel
"); ?>" title=
"<?php __("Web Hosting Control Panel
"); ?>" />
46 <?php echo $msg->msg_html_all(); ?>
48 <div
class=
"block_list">
50 <div
class=
"block_login_page">
51 <div
class=
"menu-box">
52 <div
class=
"menu-title"><?php echo _(
'Password reset'); ?></div>
53 <form action=
"request_reset.php" method=
"post" name=
"passwordreset">
56 <label
for=
"name_or_email"><?php echo _(
'Username or e-mail'); ?></label>
57 <input type=
"text" class=
"int" name=
"name_or_email">
59 <div
class=
"submit"><input type=
"submit" class=
"inb" name=
"submit"></div>
63 <div
class=
"block_list">
64 <p><?php echo _(
'An e-mail with instructions will be sent'); ?></p>
67 <div><p><a href=
"index.php"><?php __(
'Return to login page'); ?></a></p></div>
if(isset($_REQUEST['name_or_email'])) $show_form