コード例 #1
0
 $_token = !preg_match('/[^a-z0-9-\\_\\.]/i', $_GET['token']) ? $_GET['token'] : die;
 /*
  * --------------------------
  *   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();
 $getMedia = $obj->getMedia($_postId, $_token);
 $getFavorites = $obj->getFavorites($_postId);
 $countFavs = count($getFavorites);
 $getReply = $obj->getReply($_postId);
 $countReply = count($getReply);
 $verifyPost = $obj->checkPost($_postId, $_token) ? 1 : 0;
 $getRepost = $obj->getRepostUser($_postId);
 /* Url */
 $urlStatus = URL_BASE . $getMedia[0]['username'] . '/status/' . $getMedia[0]['id'];
 /*
  * --------------------
  * Verify Post
  * --------------------
  */
 if ($verifyPost == 0) {
     return false;