pageLimit = 50; $type = 'all'; if (!empty($_GET['type']) && $_GET['type'] == 'free') { $filter_type = " `is_pro` = 0 AND "; $type = "free"; } elseif (!empty($_GET['type']) && $_GET['type'] == 'pro') { $filter_type = " `is_pro` = 1 AND "; $type = "pro"; } if (!empty($filter_keyword)) { $sql = " {$filter_type} (username LIKE '%$filter_keyword%' OR email LIKE '%$filter_keyword%' OR id = '$filter_keyword' OR first_name LIKE '%$filter_keyword%' OR last_name LIKE '%$filter_keyword%') "; $users = $db->where($sql)->orderBy('id', 'DESC')->objectbuilder()->paginate(T_USERS, $page); } else { if ($type == 'free') { $db->where('is_pro',0); } else if($type == 'pro'){ $db->where('is_pro',1); } $users = $db->objectbuilder()->orderBy('id', 'DESC')->paginate(T_USERS, $page); } $get_online_users = $db->where('last_active', time() - 60, '>')->getValue(T_USERS, 'COUNT(*)'); if (($page > $db->totalPages) && !empty($_GET['page-id'])) { header("Location: " . PT_LoadAdminLinkSettings('manage-users')); exit(); } ?>

Users > Manage Users

Manage & Edit Users ( Online Users)

$user) { $user = PT_UserData($user, array('data' => 1)); $status = ($user->active == 1) ? 'Active' : 'Pending'; echo PT_LoadAdminPage('manage-users/list', array('USER_DATA' => $user, 'SETTINGS_LINK' => PT_Link('settings/general/' . $user->username), 'STATUS' => $status)); } ?>
ID Username E-mail IP address Status Action
totalPages; ?>