* --------------------------
  *   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();
 $_POST['id_reply'] = is_numeric($_POST['id_reply']) ? $_POST['id_reply'] : die;
 $_POST['token_reply'] = trim($_POST['token_reply']);
 $_POST['reply_post'] = trim(_Function::checkTextDb($_POST['reply_post']));
 $infoUser = $obj->infoUserLive($_SESSION['authenticated']);
 $admin = $obj->getSettings();
 //<-------- *  * --------->
 if (strlen(utf8_decode($_POST['reply_post'])) > $admin->post_length) {
     $_POST['reply_post'] = _Function::cropStringLimit($_POST['reply_post'], $admin->post_length);
 }
 if (strlen(utf8_decode($_POST['reply_post'])) == 0) {
     return false;
 }
 if ($infoUser->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;
 }
 /*
Пример #2
0
     }
     //<--- IF FILE EXISTS
     $_POST['photoId'] = '';
 }
 //<<-- if valid
 if ($isValidUrlSoundCloud === 0) {
     $_POST['song_title'] = '';
     $_POST['song'] = '';
     $_POST['thumbnail_song'] = '';
 }
 $error = 0;
 $pos_details_r_n = preg_replace('/(?:(?:\\r\\n|\\r|\\n)\\s*){2}/s', "\r\n\r\n", $_POST['add_post']);
 $pos_details_clean = trim($pos_details_r_n, "\r\n");
 $_POST['token_id'] = _Function::idHash($_SESSION['authenticated']);
 $pos_details = _Function::checkText($pos_details_clean);
 $_POST['add_post'] = _Function::checkTextDb($_POST['add_post']);
 /*
  * -------------------------------------------
  * If is greater than the default character 
  * -------------------------------------------
  */
 if (mb_strlen($_POST['add_post'], 'utf8') > $admin->post_length) {
     $_POST['add_post'] = _Function::cropStringLimit($_POST['add_post'], $admin->post_length);
 }
 /*
  * -------------------------------------------
  *                isValidYoutube
  * -------------------------------------------
  */
 if ($isValidYoutube == 1 && $_POST['photoId'] == '') {
     $dataVideo = $dataVideoYoutube->{'title'} . ' (Youtube) ';