if ($_POST["img"] == $Article_Content["img"]) { } else { foreach ($files['profilepic'] as $file) { $ImgName = $file["name"]; } $ImgSrc = $ImgArray["loc"]; $PostImages = Cw_Img_Resize($Array, $ImgSrc, $StructureImgSizes, $ImgName); $PostImages = serialize($PostImages); } $Array["mediafile"]["code"] = $Article_Content["code"]; $Article_Content["code"] = CwMediaFile($Array, $files, $Rand); ////////////////////////////////// PULL 3RD-PARTY CONTENT INFORMATION \\\\\\\\\\\\\\\\\\\\\\\\\\\\ if ($Article_Content['codetype'] == "youtube") { $YtCount = strlen($Article_Content['code']); if ($YtCount >= "12") { $Article_Content["code"] = youtube_id_last_chance($Article_Content['code']); if ($Article_Content['code'] == "") { $Article_Content["codetype"] = ""; } } } if ($Article_Content['img'] == "") { if ($Article_Content["codetype"] == "vimeo") { $hash = unserialize(file_get_contents("http://vimeo.com/api/v2/video/{$Article_Code}.php")); $Article_Content["img"] = $hash['0']['thumbnail_medium']; $PostImages["0"] = $hash['0']['thumbnail_small']; $PostImages["1"] = $hash['0']['thumbnail_medium']; $PostImages["2"] = $hash['0']['thumbnail_large']; } if ($Article_Content['codetype'] == "youtube") { $Article_Content["img"] = "http://img.youtube.com/vi/{$Article_Code}/0.jpg";
$Ad_Other['adpayment'] = $_POST['adpayment']; $Ad_Other['url'] = $_POST['url']; $Ad_Other['usetitle'] = $_POST['usetitle']; $Ad_Info['pbstatus'] = $_POST['pbstatus']; $Ad_Info['content'] = $_POST['content']; if ($Ad_Info['content'] == "") { $Ad_Info['content'] = "advertisement"; } if ($Ad_Location == "x") { $Ad_Location = $_POST['manualadloc']; } ////////////////////////////////// PULL 3RD-PARTY CONTENT INFORMATION \\\\\\\\\\\\\\\\\\\\\\\\\\\\ if ($Ad_Code_Type == "youtube") { $YtCount = strlen($Ad_Code); if ($YtCount >= "12") { $Ad_Code = youtube_id_last_chance($Ad_Code); if ($Ad_Code == "") { $Ad_Code = ""; } } } $Ad_Other['mediacodetype'] = $Ad_Code_Type; $Ad_Other['mediacode'] = $Ad_Code; /////////////////////////////////////// PROCESSES ALL MEDIA UPLOADS \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ $Array["profilepic"]["img"] = $Ad_Img; $ImgArray = CwProfilePic($Array, $files, $Rand); $Ad_Img = $ImgArray["file"]; if ($_POST["img"] == $Ad_Img) { } else { foreach ($files['profilepic'] as $file) { $ImgName = $file["name"];