*/
 require_once '../../class_ajax_request/classAjax.php';
 include_once '../../application/functions.php';
 include_once '../../application/DataConfig.php';
 if (isset($_GET) && $_SERVER['REQUEST_METHOD'] == "GET") {
     $id_user = is_numeric($_GET['id_user']) ? $_GET['id_user'] : die;
     $id_user = (int) $id_user;
     $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
  * -------------------------
  */
 require_once '../../class_ajax_request/classAjax.php';
 include_once '../../application/functions.php';
 include_once '../../application/DataConfig.php';
 /*
  * ----------------------
  *   Instance Class
  * ----------------------
  */
 $obj = new AjaxRequest();
 $response = $obj->loadMoreMessageId($id_user, $_SESSION['authenticated'], $_id, $_number);
 $countMessagesID = $obj->countMessagesID($id_user, $_SESSION['authenticated']);
 //print_r( $response );
 //<<<<<----- Verified User
 $verified = $obj->checkUser($id_user) ? 1 : 0;
 if ($verified == 0) {
     return false;
 }
 $countPosts = count($response);
 if ($countPosts != 0) {
     //<---------********** FOREACH -----********>
     foreach ($response as $key) {
         //============ 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;
         }
         if ($key['id_user'] == $_SESSION['authenticated']) {
             $remove = '<i title="' . $_SESSION['LANG']['delete'] . '" style="left:-15px; top: 35px;" data="' . $key['id'] . '" class="trash_ico_reply removeMsg"></i>';
Exemplo n.º 3
0
            require_once '../../class_ajax_request/classAjax.php';
            include_once '../../application/functions.php';
            include_once '../../application/DataConfig.php';
            require_once '../../phpmailer/PHPMailerAutoload.php';
            /*
             * ----------------------
             *   Instance Class
             * ----------------------
             */
            $obj = new AjaxRequest();
            $admin = $obj->getSettings();
            $_POST['id'] = trim($_POST['id']);
            $explode = explode('-', $_POST['id']);
            $_POST['id'] = (int) $explode[1];
            $infoUser = $obj->infoUserLive($_SESSION['authenticated']);
            $verifiedUser = $obj->checkUser($_POST['id']) ? 1 : 0;
            if ($verifiedUser == 1) {
                $infoUserFollow = $obj->infoUserLive($_POST['id']);
            }
            $messageEmail = '
			<table width="550" cellpadding="0" cellspacing="0" style="font-family:Arial,Helvetica,sans-serif; font-size: 14px; color: #666;" align="center">
	<tbody>
		<tr>
			<td width="550" height="50" align="center" style="background: #fff;">
				<img style="width: 130px;" src="' . URL_BASE . 'public/img/logo.png" />
			</td>
		</tr>
		
		<tr>
			<td width="558" align="center" style="background: #FFF; line-height: 18px; padding: 10px;  border-bottom: 1px solid #DDD; border-left: 1px solid #DDD; border-right: 1px solid #DDD;">