* -------------------------- * 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(); $infoSessioUsr = $obj->infoUserLive($_SESSION['authenticated']); $response = $obj->search($_POST['_userId'], ' && P.status = "1" && U.status = "active" && P.id ' . $query . ' ' . $offset . '', 'GROUP BY P.id ORDER BY P.id DESC', 'LIMIT ' . $postnumbers, $_SESSION['authenticated']); $countPosts = count($response); if ($countPosts != 0) { foreach ($response as $key) { $idPost = $key['id']; $_idUser = $key['user_id']; if ($key['video_site'] != '' && $key['photo'] == '') { $typeMedia = $_SESSION['LANG']['video']; $icon = '<i class="video_img_sm icons"></i>'; } else { if ($key['video_site'] == '' && $key['photo'] != '') { $typeMedia = $_SESSION['LANG']['image']; $icon = '<i class="ico_img_sm icons"></i>'; } else { if ($key['url_soundcloud'] != '') {