pageLimit = 50; $type = 'all'; if (!empty($filter_keyword)) { $sql = " (text LIKE '%$filter_keyword%') "; $comments = $db->where($sql)->orderBy('id', 'DESC')->objectbuilder()->paginate(T_COMMENTS, $page); } else { $comments = $db->objectbuilder()->orderBy('id', 'DESC')->paginate(T_COMMENTS, $page); // print_r($users); // exit(); } $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-comments')); exit(); } ?>
ID | Text | Video | Articles | Posted On | Action |
---|