Exemplo n.º 1
0
 //<-End If
 if (!empty($_POST['photoId'])) {
     /* Get Width of Image upload */
     $widthPhoto = _Function::getWidth(URL_BASE . 'upload/' . $_POST['photoId']);
     if ($widthPhoto > 600) {
         $thumbPic = 'thumb/600-440-';
     } else {
         $thumbPic = null;
     }
 }
 /*
  * ---------------------------------------------
  *    If everything is OK publication insert
  * --------------------------------------------
  */
 $response = $obj->insertPost();
 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;
 }
 if (!empty($response)) {
     //==================================================//
     //=            * COPY FOLDER UPLOAD /         *    =//
     //==================================================//
     chmod($rootUpload . $photoID, 0777);
     if (file_exists($path . $photoID) && $photoID != '') {
         copy($path . $photoID, $rootUpload . $photoID);
         unlink($path . $photoID);
     }
     //<--- IF FILE EXISTS