} /* * -------------------------- * Require/Include Files * ------------------------- */ require_once '../../class_ajax_request/classAjax.php'; include_once '../../application/functions.php'; include_once '../../application/DataConfig.php'; /* * ---------------------- * Instance Class * ---------------------- */ $obj = new AjaxRequest(); $response = $obj->searchUsers($_POST['_userId'], ' && U.status = "active" && U.id ' . $query . ' ' . $offset, 'LIMIT ' . $postnumbers, $_SESSION['authenticated']); $countPosts = count($response); if ($countPosts != 0) { foreach ($response as $key) { $_idUser = $key['id']; $countryUser = $obj->getCountryUser($_idUser); //============ VERIFIED if ($key['type_account'] == '1') { $verified = ' <i class="fa fa-check-circle verified verified-min showTooltip" title="' . $_SESSION["LANG"]["verified"] . '" data-toggle="tooltip" data-placement="right"></i>'; } else { $verified = null; } $checkBlock = $obj->checkUserBlock($_SESSION['authenticated'], $key['id']); ?> <!-- POSTS --> <li class="media border-group hoverList li-group list-group-item" data="<?php
if (isset($_GET) && $_SERVER['REQUEST_METHOD'] == "GET") { /* * -------------------------- * Require/Include Files * ------------------------- */ require_once '../../class_ajax_request/classAjax.php'; include_once '../../application/functions.php'; include_once '../../application/DataConfig.php'; /* * ---------------------- * Instance Class * ---------------------- */ $obj = new AjaxRequest(); $response = $obj->searchUsers($_GET['look'], ' && U.status = "active"', 'LIMIT 4 ', $_SESSION['authenticated']); $responseTotal = $obj->searchUsers($_GET['look'], ' && U.status = "active"', null, $_SESSION['authenticated']); $countPosts = count($response); $countPostsTotal = count($responseTotal); $words = str_replace('#', '%23', strip_tags($_GET['look'])); if ($countPosts != 0) { foreach ($response as $key) { //============ VERIFIED if ($key['type_account'] == '1') { $verified = ' <i class="fa fa-check-circle verified verified-min"></i>'; } else { $verified = null; } $checkBlock = $obj->checkUserBlock($_SESSION['authenticated'], $key['id']); ?>