*/ 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 echo $key['id']; ?> "> <!-- ******** Media ****** --> <div class="media li-group">
} if ($infoUser->mode == 0 && $checkFollow[0]['status'] == 0 && $_SESSION['authenticated'] != $user) { $response = null; $nofound = null; $mode = '<div class="panel-footer text-center" style="padding: 25px 0; background: url(' . URL_BASE . 'public/img/private.png) right bottom no-repeat;" class="notfound"> ' . $_SESSION['LANG']['profile_private'] . '</div>'; } else { $response = $response; $mode = null; } ?> <?php $countPosts = count($response); if ($countPosts != 0) { foreach ($response as $key) { $countryUser = $obj->getCountryUser($key['id']); //============ 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($key['id'], $_SESSION['authenticated']); $checkBlocked = $obj->checkUserBlock($_SESSION['authenticated'], $key['id']); ?> <li class="media border-group hoverList li-group list-group-item" data="<?php echo $key['id_follow']; ?> "> <!-- ******** Media ****** --> <div class="media li-group">