/** */ public function logout() { if ($access_token = $this->input['access_token']) { $data['access_token'] = $access_token; } else { $this->errorOutput(NO_ACCESS_TOKEN); } $Members = new members(); $device_token = $Members->check_device_token(trim($this->input['device_token'])); $udid = $Members->check_udid(trim($this->input['uuid'])); if ($device_token === 0) { $this->errorOutput(ERROR_DEVICE_TOKEN); } if ($udid === 0) { $this->errorOutput(ERROR_UDID); } $auth = new auth(); $logoutInfo = $auth->logout($data); //会员痕迹 $member_trace_data = array('member_id' => $logoutInfo['user_id'], 'member_name' => $logoutInfo['user_name'], 'content_id' => $logoutInfo['user_id'], 'title' => $logoutInfo['user_name'], 'type' => 'logout', 'op_type' => '退出', 'appid' => $logoutInfo['appid'], 'appname' => $logoutInfo['display_name'], 'create_time' => TIMENOW, 'ip' => hg_getip(), 'device_token' => $device_token, 'udid' => $udid); $mMember = new member(); $mMember->member_trace_create($member_trace_data); $_logoutInfo = array('member_id' => $logoutInfo['user_id'], 'member_name' => $logoutInfo['user_name'], 'is_member' => $logoutInfo['is_member'], 'logout' => $logoutInfo['logout']); $this->addItem($_logoutInfo); $this->output(); }
/** * This method will authenticate the present user. If the query returns one * row, the session is still valid. We then set the username and access * level and return the $user array. * * If the query does not return a row, we return "false". * * @return true if session is valid * @return false if session is invalid */ public function auth_user() { // create a new member object and figure out what groups we're in $user = new member($this->session['user']); $this->groups = $user->get_groups_id(); // query to check if there's a session_id <-> user_id combination in line with the cookie data $sql = "SELECT u.user_id, u.username"; $sql = $sql . " FROM " . PHPBB_PREFIX . "_sessions s, " . PHPBB_PREFIX . "_users u "; $sql = $sql . " WHERE s.session_id = '" . $this->session['id'] . "'"; $sql = $sql . " AND u.user_id = '" . $this->session['user'] . "'"; $sql = $sql . " AND u.user_id = s.session_user_id"; /* $sql = "SELECT u.user_id, u.username, e.tools_access, c.pf_p_nick, c.pf_phone"; $sql = $sql . " FROM " . PHPBB_PREFIX . "sessions s, " . PHPBB_PREFIX . "users u, " . EVO_PREFIX . "users e, " . PHPBB_PREFIX . "profile_fields_data c"; $sql = $sql . " WHERE s.session_id = '" . $this -> session['id'] . "'"; $sql = $sql . " AND u.user_id = " . (int) $this -> session['user']; $sql = $sql . " AND u.user_id = s.session_user_id"; $sql = $sql . " AND u.user_id = e.user_id"; $sql = $sql . " AND c.user_id = u.user_id;"; */ if ($result = $this->db->query($sql)) { // we found exactly one row, so the session seems valid if ($result->num_rows == 1 and in_array(TOOLS_GROUP, $this->groups)) { $row = $result->fetch_object(); $this->my_username = $row->username; return true; // we found none or more than 1 row, so either the session is invalid or something is fishy } else { return false; } } else { echo $this->db->error; exit; } }
public function checkIdentifierUser() { $member = new member(); foreach ($this->getIusidS() as $v) { if ($identifier = $this->getIdentifierForIusid($v)) { if ($member->getMemberIdForIdentifier($identifier)) { throw new Exception(IDENTIFIER_SYSTEM_NOT_DEL, 200); } } } }
public function main() { global $_G, $app; if (isset($_GET[code]) || isset($_GET[state])) { include_once libfile('action/member'); $mb = new member(); $mb->main(); return false; } seo($_G['setting'][seo_title], $_G['setting'][seo_keywords], $_G['setting'][seo_description], false); $this->show(); }
function domanage() { member::MP("menu_models_manage"); $rs = model::data(); $_count = count($rs); include admincp::tpl(); }
function domanage() { member::MP("menu_template_manage"); $dir = trim($_GET["dir"]); $L = FS::folder($dir, "templates", ""); include admincp::tpl(); }
function domanage() { member::MP("menu_plugin_manage"); $plugins = $this->iCMS->getCache('system/plugins'); $rs = plugin::doList(); include admincp::tpl(); }
/** * The default process * * @since ADD MVC 0.0 */ public function process_mode_default() { $this->view()->assign('current_controller', add::current_controller_class()); $this->view()->assign('current_view', $this->view_filepath()); $this->view()->assign('utc_timestamp', time()); $this->view()->assign('member', member::current_logged_in()); }
function domanage() { member::MP("menu_group_manage"); include iPATH . 'include/group.class.php'; $group = new group(); $type = $_GET['type']; include admincp::tpl(); }
function doDefault() { member::MP("menu_filter"); $cache = $this->iCMS->getCache(array('system/word.filter', 'system/word.disable')); foreach ((array) $cache['system/word.filter'] as $k => $val) { $filterArray[$k] = implode("=", (array) $val); } include admincp::tpl('filter'); }
function doedit() { member::MP("menu_account_edit"); include iPATH . 'include/group.class.php'; $group = new group('a'); $rs = iCMS_DB::getRow("SELECT * FROM `#iCMS@__members` WHERE `uid`='" . intval($_GET['uid']) . "'"); $info = unserialize($rs->info); include admincp::tpl("account.edit"); }
function dodefault() { member::MP(array("menu_index_link", "menu_link")); $maxperpage = 60; $total = $page == 1 || empty($_GET['rowNum']) ? iCMS_DB::getValue("SELECT count(*) FROM `#iCMS@__links`") : (int) $_GET['rowNum']; page($total, $maxperpage, '个链接'); $rs = iCMS_DB::getArray("SELECT * FROM `#iCMS@__links` ORDER BY `logo`, `orderNum` ASC LIMIT {$this->firstcount},{$maxperpage}"); $_count = count($rs); include admincp::tpl('link'); }
function domanage() { member::MP("menu_user_manage"); $maxperpage = 20; $total = $page == 1 || empty($_GET['rowNum']) ? iCMS_DB::getValue("SELECT count(*) FROM `#iCMS@__members`") : (int) $_GET['rowNum']; page($total, $maxperpage, "位会员"); $rs = iCMS_DB::getArray("SELECT * FROM `#iCMS@__members` where `type`='0' order by uid DESC LIMIT {$this->firstcount},{$maxperpage}"); $_count = count($rs); include admincp::tpl('user.manage'); }
function getDiscount($rowCoupon, $memberid) { global $DB; include_once MODELS . '/member_model.php'; $objMember = new member(); $InvRow = $this->getInvoice(); if ($InvRow->id > 0) { $row = $objMember->getMembers($memberid); if ($rowCoupon->discount_price > 0) { $discount = $rowCoupon->discount_price; } else { $discount = $row->amount_paid * $rowCoupon->discount_perc / 100; } //$discount = (($row->amount_paid * $rowCoupon->discount) / 100); $finalAmount = $row->amount_paid - $discount; $_SESSION['register']['coupon_code'] = $rowCoupon->coupon_code; return json_encode(array('discount' => '$' . number_format($discount, 2), 'final' => '$' . number_format($finalAmount, 2), 'error' => '', 'success' => ' Coupon Discount HKD $' . number_format($discount, 2))); } }
function dodefault() { member::MP("menu_search"); $maxperpage = 20; $total = $page == 1 || empty($_GET['rowNum']) ? iCMS_DB::getValue("SELECT count(*) FROM `#iCMS@__search`") : (int) $_GET['rowNum']; page($total, $maxperpage, "个关键字"); $rs = iCMS_DB::getArray("SELECT * FROM `#iCMS@__search` order by id DESC LIMIT {$this->firstcount},{$maxperpage}"); $_count = count($rs); include admincp::tpl('search'); }
function dodefault() { member::MP(array("menu_index_advertise", "menu_advertise")); $maxperpage = 30; $total = $page == 1 || empty($_GET['rowNum']) ? iCMS_DB::getValue("SELECT count(*) FROM `#iCMS@__advertise`") : (int) $_GET['rowNum']; page($total, $maxperpage, "个广告"); $rs = iCMS_DB::getArray("SELECT * FROM `#iCMS@__advertise` order by id DESC LIMIT {$this->firstcount},{$maxperpage}"); $_count = count($rs); include admincp::tpl("advertise"); }
function dodefault() { global $firstcount, $pagenav; member::MP("menu_message"); $_GET['keywords'] && ($sql[] = " CONCAT(author,email,url,ip) REGEXP '{$_GET['keywords']}'"); isset($_GET['status']) && ($sql[] = " `status`='" . $_GET['status'] . "'"); $where = $sql ? ' where ' . implode(' AND ', (array) $sql) : ''; $maxperpage = (int) $_GET['perpage'] > 0 ? $_GET['perpage'] : 20; $total = iCMS_DB::getValue("SELECT count(*) FROM `#iCMS@__plugins_message` {$where} order by id DESC"); page($total, $maxperpage, "条留言"); $rs = iCMS_DB::getArray("SELECT * FROM `#iCMS@__plugins_message` {$where} order by id DESC LIMIT {$firstcount},{$maxperpage}"); $_count = count($rs); include plugin::acptpl(); }
function dodefault() { member::MP("menu_keywords"); $_GET['keywords'] && ($sql[] = " `keyword` REGEXP '{$_GET['keywords']}'"); $_GET['replace'] && ($sql[] = " `replace` REGEXP '{$_GET['replace']}'"); isset($_GET['status']) && $_GET['status'] != '-1' && ($sql[] = " `status`='" . $_GET['status'] . "'"); $where = $sql ? ' where ' . implode(' AND ', (array) $sql) : ''; $maxperpage = (int) $_GET['perpage'] > 0 ? $_GET['perpage'] : 20; $total = $page == 1 || empty($_GET['rowNum']) ? iCMS_DB::getValue("SELECT count(*) FROM `#iCMS@__keywords` {$where}") : (int) $_GET['rowNum']; page($total, $maxperpage, "个关键字"); $rs = iCMS_DB::getArray("SELECT * FROM `#iCMS@__keywords` {$where} order by id DESC LIMIT {$this->firstcount},{$maxperpage}"); $_count = count($rs); include admincp::tpl('keywords'); }
public function testCreateHasMeta() { $data['member_lv']['member_group_id'] = 1; $data['pam_account']['login_name'] = 'cool' . time(); $data['pam_account']['login_password'] = '******'; $data['pam_account']['login_password'] = md5(trim($data['account']['login_password'])); $data['pam_account']['account_type'] = 'member'; $data['pam_account']['createtime'] = time(); $data['advance']['total'] = 0.0; $data['score']['total'] = 0.0; $data['reg_ip'] = base_request::get_remote_addr(); $data['regtime'] = time(); $data['contact']['email'] = '*****@*****.**'; $data['contact']['qq'] = '5555555'; $this->model->save($data); self::$id = $data['member_id']; }
/** * Mode - edit * */ public function process_mode_edit($gpc) { member::require_logged_in(); extract($gpc); # see session_user and i_auth_entity $member = member::current_logged_in(); # $name from $gpc['name'] $member->name = $name; if ($password) { if ($password == $confirm_password) { $member->password = $password; } else { throw new e_user_input("Password mismatched"); } } else { # do nothing if password is not filled } }
function doRecover() { member::MP("menu_database_recover"); // include(iPATH.'admin/table.array.php'); $filedb = array(); $handle = opendir(iPATH . 'admin/backup'); while ($file = readdir($handle)) { if (preg_match("/^iCMS_/", $file) && preg_match("/\\.sql\$/", $file)) { $strlen = preg_match("/^iCMS_/", $file) ? 16 + strlen("iCMS_") : 19; $fp = fopen(iPATH . "admin/backup/{$file}", 'rb'); $bakinfo = fread($fp, 200); fclose($fp); $detail = explode("\n", $bakinfo); $bk['name'] = $file; $bk['version'] = substr($detail[1], 10); $bk['time'] = substr($detail[2], 8); $bk['pre'] = substr($file, 0, $strlen); $bk['num'] = substr($file, $strlen, strrpos($file, '.') - $strlen); $filedb[] = $bk; } } include admincp::tpl(); }
function doDefault() { member::MP(array("menu_index_comment", "menu_comment")); include_once iPATH . 'include/model.class.php'; if ($_GET['st'] == "title") { $_GET['keywords'] && ($sql[] = " `title` REGEXP '{$_GET['keywords']}'"); } else { if ($_GET['st'] == "contents") { $_GET['keywords'] && ($sql[] = " `contents` REGEXP '{$_GET['keywords']}'"); } } $_GET['starttime'] && ($sql[] = " `addtime`>='" . strtotime($_GET['starttime']) . "'"); $_GET['endtime'] && ($sql[] = " `addtime`<='" . strtotime($_GET['endtime']) . "'"); $mid = (int) $_GET['mid']; $mid && ($sql[] = " `mId`='" . $mid . "'"); isset($_GET['status']) && $_GET['status'] != '-1' && ($sql[] = " `status`='" . $_GET['status'] . "'"); $where = $sql ? ' where ' . implode(' AND ', (array) $sql) : ''; $maxperpage = (int) $_GET['perpage'] > 0 ? $_GET['perpage'] : 20; $total = $page == 1 || empty($_GET['rowNum']) ? iCMS_DB::getValue("SELECT count(*) FROM `#iCMS@__comment` {$where}") : (int) $_GET['rowNum']; page($total, $maxperpage, "条评论"); $rs = iCMS_DB::getArray("SELECT * FROM `#iCMS@__comment` {$where} order by id DESC LIMIT {$this->firstcount},{$maxperpage}"); $_count = count($rs); include admincp::tpl('comment'); }
function dologout() { member::cleancookie(); }
function domanage() { $mid = $_GET['mid']; $model = model::data($mid); $table = $model['tbn']; $forum = new forum(); $fid = (int) $_GET['fid']; $type = $_GET['type']; $sql = " where "; switch ($type) { //postype: [0:用户][1:管理员] status:[0:草稿][1:正常][2:回收] case 'draft': //草稿 $sql .= "`status` ='0' AND `postype`='1'"; $_ptxt = array(0 => '发布', 1 => '转成草稿'); $position = UI::lang("menu_article_draft"); break; case 'trash': //回收站 $sql .= "`status` ='2'"; $_ptxt = array(0 => '还原', 1 => '放入回收站'); $position = UI::lang("menu_article_trash"); break; case 'user': //用户 if ($_GET['act'] == "draft") { $sql .= "`status` ='0'"; //用户审核 $position = UI::lang("menu_article_user_draft"); } elseif ($_GET['act'] == "trash") { $sql .= "`status` ='2'"; //用户回收站 $position = UI::lang("menu_article_user_trash"); } else { $sql .= "`status` ='1'"; $position = UI::lang("menu_article_user_manage"); } $sql .= " AND `postype`='0'"; $_ptxt = array(0 => '通过审核', 1 => '取消审核'); break; default: $sql .= " `status` ='1' AND `postype`='1'"; $position = ''; $fid && ($position = $forum->forum[$fid]['name']); } $position && ($position = " » " . $position); if ($_GET['keywords']) { if ($_GET['st'] == "title") { $sql .= " AND `title` REGEXP '{$_GET['keywords']}'"; } else { if ($_GET['st'] == "top") { $sql .= " AND `top`='{$_GET['keywords']}'"; } else { if ($_GET['st'] == "id") { $sql .= " AND `id` REGEXP '{$_GET['keywords']}'"; } } } } $_GET['title'] && ($sql .= " AND `title` like '%{$_GET['title']}%'"); $_GET['tag'] && ($sql .= " AND `tags` REGEXP '[[:<:]]" . preg_quote(rawurldecode($_GET['tag']), '/') . "[[:>:]]'"); isset($_GET['at']) && $_GET['at'] != '-1' && ($sql .= " AND `type` ='" . $_GET['at'] . "'"); isset($_GET['userid']) && ($sql .= " AND `userid`='" . (int) $_GET['userid'] . "'"); $fid = member::CP($fid) ? $fid : "0"; if ($fid) { $fidIN = $forum->fid($fid) . $fid; if (isset($_GET['sub']) && strstr($fidIN, ',')) { $sql .= " AND fid IN(" . $fidIN . ")"; } else { $sql .= " AND fid ='{$fid}'"; } //$sql.=" OR `vlink` REGEXP '[[:<:]]".preg_quote($fid, '/')."[[:>:]]')"; } else { member::$cpower && ($sql .= " AND fid IN(" . implode(',', (array) member::$cpower) . ")"); } $_GET['starttime'] && ($sql .= " and `pubdate`>='" . strtotime($_GET['starttime']) . "'"); $_GET['endtime'] && ($sql .= " and `pubdate`<='" . strtotime($_GET['endtime']) . "'"); $act == 'user' && ($uri .= '&act=user'); $_GET['type'] == 'draft' && ($uri .= '&type=draft'); isset($_GET['userid']) && ($uri .= '&userid=' . (int) $_GET['userid']); isset($_GET['keyword']) && ($uri .= '&keyword=' . $_GET['keyword']); isset($_GET['tag']) && ($uri .= '&tag=' . $_GET['tag']); $orderby = $_GET['orderby'] ? $_GET['orderby'] : "id DESC"; $maxperpage = (int) $_GET['perpage'] > 0 ? $_GET['perpage'] : 20; $total = $page == 1 || empty($_GET['rowNum']) ? iCMS_DB::getValue("SELECT count(*) FROM `#iCMS@__{$table}` {$sql}") : (int) $_GET['rowNum']; page($total, $maxperpage, "条记录"); $rs = iCMS_DB::getArray("SELECT * FROM `#iCMS@__{$table}` {$sql} order by {$orderby} LIMIT {$this->firstcount} , {$maxperpage}"); $_count = count($rs); include admincp::tpl(); }
public function delete($cid, $source) { $info = array('cid' => $cid, 'source' => $source); if (empty($info['cid']) && $info['source']) { return false; } $sql = "DELETE FROM " . DB_PREFIX . "visit WHERE cid IN(" . $info['cid'] . ") AND source='" . $info['source'] . "'"; $this->db->query($sql); $sql = "DELETE FROM " . DB_PREFIX . "visit_queue WHERE cid IN(" . $info['cid'] . ") AND source='" . $info['source'] . "'"; $this->db->query($sql); switch ($info['source']) { case 'user': include_once ROOT_PATH . 'lib/class/member.class.php'; $obj_member = new member(); $obj_member->add_visit($info['cid'], -1); break; case 'action': include_once ROOT_PATH . 'lib/class/activity.class.php'; $obj_activity = new activityCLass(); $obj_activity->updateAddData(array('scan_num' => -1, 'action_id' => $info['cid'])); break; case 'team': include_once ROOT_PATH . 'lib/class/team.class.php'; $obj_team = new team(); $obj_team->update_total(array('visit_num' => -1, 'team_id' => $info['cid'])); break; case 'topic': include_once ROOT_PATH . 'lib/class/team.class.php'; $obj_team = new team(); $obj_team->update_topic_views(array('view_num' => -1, 'topic_id' => $info['cid'])); break; default: break; } return true; }
case 'logout': member::cleancookie(); break; default: require_once iPATH . 'include/UI.class.php'; $action = $_POST['action']; //$forward= $_POST['forward']; if ($action == 'register') { ckseccode($_POST['seccode'], 'U') && javascript::json('seccode', 'error:seccode'); $username = dhtmlspecialchars($_POST['username']); !preg_match("/^([\\w\\.-]+)@([a-zA-Z0-9-]+)(\\.[a-zA-Z\\.]+)\$/i", $username) && javascript::json('username', 'register:emailerror'); iCMS_DB::getValue("SELECT uid FROM `#iCMS@__members` where `username`='{$username}'") && javascript::json('username', 'register:emailusr'); $password = md5(trim($_POST['password'])); $pwdrepeat = md5(trim($_POST['pwdrepeat'])); $password != $pwdrepeat && javascript::json('pwdrepeat', 'register:different'); $nickname = dhtmlspecialchars($_POST['nickname']); cstrlen($nickname) > 12 && javascript::json(0, 'register:nicknamelong'); iCMS_DB::query("INSERT INTO `#iCMS@__members` (`groupid`,`username`,`password`,`nickname`,`gender`,`info`,`power`,`cpower`,`regtime`,`lastip`,`lastlogintime`,`logintimes`,`post`,`type`,`status`) VALUES ('4','{$username}','{$password}', '{$nickname}','2','','','','" . time() . "','" . getip() . "', '" . time() . "','0','0','0','1') "); $uid = iCMS_DB::$insert_id; //设置为登陆状态 member::set_user_cookie($username, $password, $nickname); javascript::json(1, 'register:finish'); } elseif ($action == "login") { ckseccode($_POST['seccode'], 'U') && javascript::json(0, 'error:seccode'); if (member::checklogin(true)) { javascript::json(1, 'login:success'); } else { javascript::json(0, 'login:failed'); } } }
include 'includes/sidebar.inc.php'; echo "</td><td class=\"content\">"; // main content title echo "<div class=\"content_header\">MEMBER FLEETS <strong>«</strong></div>"; /* * MAIN CONTENT STARTS HERE *************************************************** */ echo "<div class=\"content_subheader\">SELECT MEMBER <strong>«</strong></div>"; $tools_group = new group(TOOLS_GROUP); $tools_members = $tools_group->get_members(); echo "<div class=\"content_item\" style=\"text-align: center;\">"; echo "<form action=\"\" method=\"get\">"; //echo "<input type=\"hidden\" name=\"do\" value=\"member_fleet\">"; echo "<select name=\"user_id\">"; foreach ($tools_members as $key => $user_id) { $member = new member($user_id); if ($user_id == $_GET['user_id']) { echo "<option value=\"" . $user_id . "\" selected>" . $member->get_username() . "</option>"; } else { echo "<option value=\"" . $user_id . "\">" . $member->get_username() . "</option>"; } } echo "</select> "; /* echo "<br /><br />"; echo "<input type=\"checkbox\" name=\"totals\" value=\"true\" checked disabled>Totals "; echo "<input type=\"checkbox\" name=\"f0\" value=\"true\" checked disabled>Base Fleet "; echo "<input type=\"checkbox\" name=\"f1\" value=\"true\" checked disabled>Fleet 1 "; echo "<input type=\"checkbox\" name=\"f2\" value=\"true\" checked disabled>Fleet 2 "; echo "<input type=\"checkbox\" name=\"f3\" value=\"true\" checked disabled>Fleet 3 "; echo "<br /><br />";
function back_point($data, $memo = '') { if (!is_array($data)) { $data = $this->conn->GetRow("select * from " . $this->table . " where id='" . $data . "'"); } if ($data && $data["member_id"] != '' && $data["addpoint_status"] == '1') { $member = new member($this->conn, PREFIX . "member"); $member->getmember(" where id='" . $data["member_id"] . "'", 'login'); $ind['shopping_car_id'] = $data["id"]; $member->point_work($data["addpoint"] * -1, $memo != '' ? $memo : '訂單' . $order_no . '移除紅利', $ind); $this->conn->Execute("UPDATE " . $this->table . " SET addpoint_status=0 where id='" . $data["id"] . "'"); } }
<?php /* [Destoon B2B System] Copyright (c) 2008-2013 Destoon.COM This is NOT a freeware, use is subject to license.txt */ defined('IN_DESTOON') or exit('Access Denied'); switch ($action) { case 'login': if ($_userid) { wap_msg($L['has_logined'], 'index.php'); } if ($submit) { require DT_ROOT . '/include/post.func.php'; require DT_ROOT . '/module/member/member.class.php'; $do = new member(); if (!$username) { wap_msg($L['type_username']); } if (!$password) { wap_msg($L['type_password']); } if (strpos($username, '@') !== false) { $r = $db->get_one("SELECT username FROM {$DT_PRE}member WHERE email='{$username}'"); $r or wap_msg($L['not_email']); $username = $r['username']; } $user = $do->login($username, $password, 86400 * 365); if ($user) { wap_msg($L['login_success'], $forward ? $forward : 'index.php'); } else {
} // transaction is started if (isset($_POST['memberID']) or isset($_SESSION['memberID'])) { // create member object // if there is already member ID session if (isset($_SESSION['memberID'])) { $memberID = trim($_SESSION['memberID']); } else { // new transaction proccess // clear previous sessions $_SESSION['temp_loan'] = array(); $memberID = trim(preg_replace('@\\s*(<.+)$@i', '', $_POST['memberID'])); // write log utility::writeLogs($dbs, 'member', $memberID, 'circulation', $_SESSION['realname'] . ' start transaction with member (' . $memberID . ')'); } $member = new member($dbs, $memberID); if (!$member->valid()) { # echo '<div class="errorBox">Member ID '.$memberID.' not valid (unregistered in database)</div>'; echo '<div class="errorBox">' . __('Member ID') . ' ' . $memberID . ' ' . __(' not valid (unregistered in database)') . '</div>'; //mfc } else { // get member information $member_type_d = $member->getMemberTypeProp(); // member type ID $_SESSION['memberTypeID'] = $member->member_type_id; // save member ID to the sessions $_SESSION['memberID'] = $member->member_id; // create renewed/reborrow session array $_SESSION['reborrowed'] = array(); // check membership expire $_SESSION['is_expire'] = $member->isExpired();