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; $mode = null; } $countPosts = count($response);
$error = 0; /* ** * ---------------------- * Instance Class * ---------------------- */ $obj = new AjaxRequest(); $chkUser = $obj->checkUser($id_user) ? 1 : 0; if ($chkUser === 0) { echo json_encode(array('html' => $_SESSION['LANG']['error'], 'status' => 0)); $error = 1; } $getData = $obj->infoUserLive($id_user); $count = count($getData); $followingActive = $obj->checkFollow($id_user, $_SESSION['authenticated']); //$dataSummary = $obj->getTotalSummary( $id_user ); // Count All posts $dataPosts = $obj->countAllPost($id_user); // Count All Followers $dataFollowers = $obj->countAllFollowers($id_user); // Count All Following $dataFollowing = $obj->countAllFollowing($id_user); //<---- VERIFIED if ($getData->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; } //<--- Desc User if ($getData->bio != '') {