* -------------------------
         */
        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->getAllPosts('WHERE P.user = '******'
			&& P.status = "1"
			&& P.status_general = "1"
			&& U.status = "active"
			&& P.id ' . $query . ' ' . $offset . '
			GROUP BY P.id DESC ', 'LIMIT ' . $postnumbers, $id_user_favs);
        $checkFollow = $obj->checkFollow($_SESSION['authenticated'], $id_user);
        $_countPosts = count($response);
        if ($_countPosts == 0) {
            $nofound = '<span class="notfound">No posts to display</span>';
        }
        $user = $id_user;
        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;
        /*
         * ----------------------
         *   Instance Class
         * ----------------------
         */
        $obj = new AjaxRequest();
        $infoUser = $obj->infoUserLive($_SESSION['authenticated']);
        $getPosts = $obj->getAllPosts('WHERE P.user = '******'authenticated'] . '
			&& P.status = "1"
			&& U.status = "active"
			&& P.id > ' . $since_id . ' 
			&& P.`repost_of_id` = 0
	|| P.user 
			IN (
					SELECT following FROM followers WHERE follower = ' . $_SESSION['authenticated'] . ' 
					&& status = "1"
			 )  
			 && P.`repost_of_id` = 0
			  && P.status = "1" 
			  && U.status = "active" 
			  && P.id > ' . $since_id . '
			  
			 GROUP BY IF( P.`repost_of_id` = 0, P.`id`, P.`repost_of_id`) DESC
			 ORDER BY P.id ASC
			  ', null, $_SESSION['authenticated']);
        $count = count($getPosts);
        if ($count != 0) {
            for ($i = 0; $i < $count; ++$i) {
                if ($getPosts[$i]['repost_of_id'] != 0) {
                    $nameUser = $getPosts[$i]['name'];
                    $idPost = $getPosts[$i]['id'];
                    $getPosts[$i]['type_account'] = $getPosts[$i]['rp_type_account'];
            include_once '../../application/functions.php';
            include_once '../../application/DataConfig.php';
            /*
             * ----------------------
             *   Instance Class
             * ----------------------
             */
            $obj = new AjaxRequest();
            $infoSessioUsr = $obj->infoUserLive($_SESSION['authenticated']);
            $response = $obj->getAllPosts('
	WHERE P.user = '******'authenticated'] . '
			&& P.status = "1"
			&& P.status_general = "1"
			&& U.status = "active"
	&& P.id ' . $query . ' ' . $offset . '
	|| P.user 
			IN (
					SELECT following FROM followers WHERE follower = ' . $_SESSION['authenticated'] . ' 
					&& status = "1"
			 ) && P.status = "1" && U.status = "active" && P.id ' . $query . ' ' . $offset . '
			 GROUP BY IF( P.`repost_of_id` = 0, P.`id`, P.`repost_of_id`) DESC
			 ORDER BY P.id DESC
			  ', 'LIMIT ' . $postnumbers, $_SESSION['authenticated']);
            $countPosts = count($response);
            if ($countPosts != 0) {
                foreach ($response as $key) {
                    if ($key['repost_of_id'] != 0) {
                        $nameUser = $key['name'];
                        $idPost = $key['id'];
                        $key['type_account'] = $key['rp_type_account'];
                        $key['username'] = $key['rp_username'];
                        $key['name'] = $key['rp_name'];