Пример #1
0
    $FilledOut = 1;
    $db->query("SELECT * FROM auth_user WHERE username='******' AND " . "email_usr='******'");
    if ($db->num_rows() > 0) {
        $db->next_record();
        $message = _('Your Username and Password for') . ' $sys_name' . _('is') . ":\n\n" . "\t" . _('User') . ': ' . $db->f('username') . "\n" . "\t" . _('Password') . ': ' . $db->f('password') . "\n\n" . _('Please keep this e-mail for further reference') . ".\n\n" . ' -- ' . _('the') . ' ' . $sys_name . ' ' . _('crew') . "\n";
        mail($email_usr, "[{$sys_name}] " . _("Remind me"), $message, "From: {$ml_newsfromaddr}\nReply-To: {$ml_newsreplyaddr}\nX-Mailer: PHP");
        $table->table_full(_('Remind me'), _('You will get your Password by e-mail in ' . 'a couple of minutes') . '<p>' . _('Contact the system administrators if something goes wrong.'));
    } else {
        $table_error->table_full(_('Error'), _('Either your Username or E-Mail Address ' . 'is unknown') . '.<br>' . _('Please try again') . '!');
        $FilledOut = 0;
    }
}
if (!$FilledOut) {
    $table->table_begin();
    $table->table_title(_('Forgot Password'));
    $table->table_body_begin();
    htmlp_form_action();
    $table->table_columns_begin();
    $table->table_column('<b>' . _('Username') . ':</b>', '50%', '', 'right');
    $table->table_column(html_form_textField('username', $username, 20, 32), '50%', '', 'left');
    $table->table_nextRowWithColumns();
    $table->table_column('<b>' . _('E-mail') . ':</b>', '50%', '', 'right');
    $table->table_column(html_form_textField('email_usr', $email_usr, 20, 64), '50%', '', 'left');
    $table->table_nextRowWithColumns();
    $table->table_colspan(html_form_submit(_('Remind me'), 'remind'), 2, '', 'center');
    $table->table_columns_end();
    htmlp_form_end();
    $table->table_body_end();
    $table->table_end();
}
config_inc('end');
Пример #2
0
$db->query("SELECT * FROM auth_user WHERE username='******'");
$db->next_record();
$table->table_column('<b>' . _('Username') . ':</b>', '50%', '', 'right');
$table->table_column(html_form_textField('username', $db->f('username'), 20, 32), '50%', '', 'left');
$table->table_nextRowWithColumns();
$table->table_column('<b>' . _('Password') . ':</b>', '50%', '', 'right');
$table->table_column(html_form_PassWordField('password', 20, 32, $db->f('password')), '50%', '', 'left');
$table->table_nextRowWithColumns();
$table->table_column('<b>' . _('Confirm Password') . ':</b>', '50%', '', 'right');
$table->table_column(html_form_PassWordField('cpassword', 20, 32, $db->f('password')), '50%', '', 'left');
$table->table_nextRowWithColumns();
$table->table_column('<b>' . _('Real Name') . ':</b>', '50%', '', 'right');
$table->table_column(html_form_textField('realname', $db->f('realname'), 20, 64), '50%', '', 'left');
$table->table_nextRowWithColumns();
$table->table_column('<b>' . _('E-mail') . ':</b>', '50%', '', 'right');
$table->table_column(html_form_textField('email_usr', $db->f('email_usr'), 20, 128), '50%', '', 'left');
$table->table_nextRowWithColumns();
$table->table_column('<b>' . _('Creation') . ':</b>', '50%', '', 'right');
$table->table_column(lib_date_long($db->f('creation_usr')), '50%', '', 'left');
$table->table_nextRowWithColumns();
$table->table_column('<b>' . _('Last Modification') . ':</b>', '50%', '', 'right');
$table->table_column(lib_date_long($db->f('modification_usr')), '50%', '', 'left');
$table->table_nextRowWithColumns();
$table->table_column('<b>' . _('Permisions') . ':</b>', '50%', '', 'right');
$table->table_column($db->f('perms'), '50%', '', 'left');
$table->table_nextRowWithColumns();
$table->table_colspan(html_form_submit(_('Change'), 'u_edit'), 2, '', 'center');
$table->table_columns_end();
htmlp_form_hidden('u_id', $db->f('user_id'));
htmlp_form_end();
$table->table_body_end();
Пример #3
0
                 $table->table_full(_('Subscribe weekly Newsletter'), $msg);
             }
             $subs = 1;
             break;
         default:
             break;
     }
 }
 if (!$subs) {
     $table->table_begin();
     $table->table_title(_('Subscribe Newsletter'));
     $table->table_body_begin();
     htmlp_form_action();
     $table->table_columns_begin(2);
     $table->table_column('<b>' . _('E-Mail') . ':</b> ', '40%', '', 'right');
     $table->table_column(html_form_textField('email_usr', '', 20, 128), '60%', '', 'left');
     $table->table_nextRowWithColumns();
     $table->table_column('<b>' . _('Password') . ':</b> ', '40%', '', 'right');
     $table->table_column(html_form_PassWordField('password', 20), '60%', '', 'left');
     $table->table_nextRowWithColumns();
     $table->table_column('<b>' . _('Confirm Password') . ':</b> ', '40%', '', 'right');
     $table->table_column(html_form_PassWordField('cpassword', 20), '60%', '', 'left');
     $table->table_nextRowWithColumns();
     $table->table_column('<b>' . _('Periodicity') . ':</b> ', '40%', '', 'right');
     $table->table_column(html_form_radioButton('period', 'daily', '') . _('daily') . ' &nbsp; &nbsp; ' . html_form_RadioButton('period', 'weekly', 'yes') . _('weekly'), '60%', '', 'left');
     $table->table_nextRowWithColumns();
     $table->table_colspan(html_form_submit(_('Subscribe'), 'subscribe'), 2, '', 'center');
     $table->table_columns_end();
     htmlp_form_end();
     $table->table_body_end();
     $table->table_end();