* ---------------------- */ $obj = new AjaxRequest(); $response = $obj->searchUsers($_POST['_userId'], ' && U.status = "active" && U.id ' . $query . ' ' . $offset, 'LIMIT ' . $postnumbers, $_SESSION['authenticated']); $countPosts = count($response); if ($countPosts != 0) { foreach ($response as $key) { $_idUser = $key['id']; $countryUser = $obj->getCountryUser($_idUser); //============ 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; } $checkBlock = $obj->checkUserBlock($_SESSION['authenticated'], $key['id']); ?> <!-- POSTS --> <li class="media border-group hoverList li-group list-group-item" data="<?php echo $key['id']; ?> "> <!-- ******** Media ****** --> <div class="media li-group"> <div class="pull-left"> <a href="<?php echo URL_BASE . $key['username']; ?> " class="openModal" data-id="<?php echo $_idUser; ?>
* ------------------------- */ require_once '../../class_ajax_request/classAjax.php'; include_once '../../application/functions.php'; include_once '../../application/DataConfig.php'; /* * ---------------------- * Instance Class * ---------------------- */ $obj = new AjaxRequest(); $_POST['id_reply'] = is_numeric($_POST['id_reply']) ? $_POST['id_reply'] : die; $_POST['reply_msg'] = trim($_POST['reply_msg']); $infoUser = $obj->infoUserLive($_SESSION['authenticated']); $admin = $obj->getSettings(); $verifiedUserBlock = $obj->checkUserBlock($_POST['id_reply'], $_SESSION['authenticated']); // IF Message is Null if (mb_strlen(trim($_POST['reply_msg']), 'utf8') == 0) { return false; } //Knowing whether the user is locked if ($verifiedUserBlock[0]['status'] == 1) { return false; } //<-------- * * ---------> if (mb_strlen($_POST['reply_msg'], 'utf8') > $admin->message_length) { $_POST['reply_msg'] = _Function::cropStringLimit($_POST['reply_msg'], $admin->post_length); } else { $_POST['reply_msg'] = $_POST['reply_msg']; } $query = $obj->sendMessageId();