1
0
Fork 0
mirror of https://github.com/DanielnetoDotCom/YouPHPTube synced 2025-10-05 19:42:38 +02:00
Daniel Neto 2024-02-20 12:31:14 -03:00
parent 7d6a592d73
commit 1e61a87c3c
4 changed files with 43 additions and 8 deletions

View file

@ -690,10 +690,18 @@ Disallow: *action=tagsearch*
}
public static function saveVideosAddNew($post, $videos_id) {
self::setDoNotShowAdsOnChannel($videos_id, !_empty($post['doNotShowAdsOnThisChannel']));
self::setDoNotShowAds($videos_id, !_empty($post['doNotShowAdsOnThisVideo']));
self::setRedirectVideo($videos_id, @$post['redirectVideoCode'], @$post['redirectVideoURL']);
self::setShortSummaryAndMetaDescriptionVideo($videos_id,@$post['ShortSummary'], @$post['MetaDescription']);
if(isset($post['doNotShowAdsOnThisChannel'])){
self::setDoNotShowAdsOnChannel($videos_id, !_empty($post['doNotShowAdsOnThisChannel']));
}
if(isset($post['doNotShowAdsOnThisVideo'])){
self::setDoNotShowAds($videos_id, !_empty($post['doNotShowAdsOnThisVideo']));
}
if(isset($post['redirectVideoCode'])){
self::setRedirectVideo($videos_id, @$post['redirectVideoCode'], @$post['redirectVideoURL']);
}
if(isset($post['ShortSummary'])){
self::setShortSummaryAndMetaDescriptionVideo($videos_id,@$post['ShortSummary'], @$post['MetaDescription']);
}
}
public static function setDoNotShowAds($videos_id, $doNotShowAdsOnThisVideo) {