'.__('Please fill your Username and Password to Login!').''; } else { # if ($sysconf['captcha']['member']['enable']) { if ($sysconf['captcha']['member']['type'] == 'recaptcha') { require_once LIB.$sysconf['captcha']['member']['folder'].'/'.$sysconf['captcha']['member']['incfile']; $privatekey = $sysconf['captcha']['member']['privatekey']; $resp = recaptcha_check_answer ($privatekey, $_SERVER["REMOTE_ADDR"], $_POST["recaptcha_challenge_field"], $_POST["recaptcha_response_field"]); if (!$resp->is_valid) { // What happens when the CAPTCHA was entered incorrectly session_unset(); header("location:index.php?p=member&captchaInvalid=true"); die(); } } else if ($sysconf['captcha']['member']['type'] == 'others') { # other captchas here } } # // regenerate session ID to prevent session hijacking session_regenerate_id(true); // create logon class instance $logon = new member_logon($username, $password, $sysconf['auth']['member']['method']); if ($sysconf['auth']['member']['method'] === 'LDAP') { $ldap_configs = $sysconf['auth']['member']; } if ($logon->valid($dbs)) { // write log utility::writeLogs($dbs, 'member', $username, 'Login', 'Login success for member '.$username.' from address '.$_SERVER['REMOTE_ADDR']); header('Location: index.php?p=member'); exit(); } else { // md5 password $md5_password = MD5($password); // query password $_pass_q = $dbs->query('SELECT mpasswd FROM member WHERE member_id = \''.$username.'\''); $_pass_d = $_pass_q->fetch_row(); if ($_pass_d[0] === $md5_password) { $msg = ''; $msg .= '
'.__('Current Password').' | '; $_form .= ''; $_form .= ' |
'.__('New Password').' | '; $_form .= ''; $_form .= ' |
'.__('Confirm Password').' | '; $_form .= ''; $_form .= ' |
'; $_form .= ' |
Titles to reserve |
---|
'.$_title_d['title'].' | '."\n"; $_data .= '
Notes | ';
if ($_SESSION['m_is_expired']) {
$_detail .= ' '.__('Your Membership Already EXPIRED! Please extend your membership.').' ';
}
if ($_SESSION['m_membership_pending']) {
$_detail .= ''.__('Membership currently in pending state, no loan transaction can be made yet.').' ';
}
$_detail .= ' | ';
$_detail .= '||
'.__('Member Name').' | '.$_SESSION['m_name'].' | '; $_detail .= ''.__('Member ID').' | '.$_SESSION['mid'].' | '; $_detail .= '
'.__('Member Email').' | '.$_SESSION['m_email'].' | '; $_detail .= ''.__('Member Type').' | '.$_SESSION['m_member_type'].' | '; $_detail .= '
'.__('Register Date').' | '.$_SESSION['m_register_date'].' | '; $_detail .= ''.__('Expiry Date').' | '.$_SESSION['m_expire_date'].' | '; $_detail .= '
'.__('Institution').' | ' .''.$_SESSION['m_institution'].' | '; $_detail .= '