* -------------------------- * 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(); $infoUser = $obj->infoUserLive($id_user); $infoSessioUsr = $obj->infoUserLive($_SESSION['authenticated']); $response = $obj->getPostsFavs('WHERE F.id_usr = '******' && P.id ' . $query . ' ' . $offset . '', 'LIMIT ' . $postnumbers, $id_user_favs); $checkFollow = $obj->checkFollow($_SESSION['authenticated'], $id_user); $_countTotal = count($response); $user = $id_user; if ($_countTotal == 0) { $nofound = '<span class="notfound">No result</span>'; } 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; }