diff --git a/plugin/CombineSites/page/get/index.php b/plugin/CombineSites/page/get/index.php index 9effeed88..091ecb1f9 100644 --- a/plugin/CombineSites/page/get/index.php +++ b/plugin/CombineSites/page/get/index.php @@ -1,100 +1,100 @@ error = true; $obj->msg = ""; $obj->response = new stdClass(); if (empty($_REQUEST['combine_sites_id'])) { $obj->msg = "Empty combine_sites_id"; die(json_encode($obj)); } $o = new CombineSitesDB($_REQUEST['combine_sites_id']); if (empty($o->getSite_url())) { $obj->msg = "Site not found"; die(json_encode($obj)); } if ($o->getStatus() !== 'a') { $obj->msg = "Site inactive"; die(json_encode($obj)); } $site = $o->getSite_url(); //echo $url;exit; $obj = CombineSites::getContent($_REQUEST['combine_sites_id']); //var_dump(is_object($obj), empty($obj->error), $obj); if (is_object($obj) && empty($obj->error)) { ?>

image; ?> title; ?>

evideos as $video) { $youtubeEmbedLink = "{$global['webSiteRootURL']}evideo/" . encryptString(json_encode($video)); $youtubeTitle = $video->title; $youtubeThumbs = $video->thumbnails; ?>
<?php echo $youtubeTitle; ?>

doNotDisplayViews)) { ?>
views_count, 0); ?>
videoCreation)), " ", __('ago'); ?>
trailer1)) { ?>
- +
We could not load the Site

" . $info[1] . ""; } else { echo "{$title}"; } ?>

'; return 0; } $page = $totalPages; $_REQUEST['current'] = $totalPages; } $videos = Video::getAllVideos("viewableNotUnlisted", false, $ignoreGroup); // need to add dechex because some times it return an negative value and make it fails on javascript playlists ?>
" . __("Up") . ""; $mostLess = $mostWord; } else { if (strpos($orderString, $getName . "=ASC")) { $tmpOrderString = substr($orderString, 0, strpos($orderString, $getName . "=ASC")) . $getName . "=DESC" . substr($orderString, strpos($orderString, $getName . "=ASC") + strlen($getName . "=ASC"), strlen($orderString)); } else { $tmpOrderString .= $getName . "=DESC"; } $upDown = "" . __("Down") . ""; $mostLess = $lessWord; } if (substr($tmpOrderString, strlen($tmpOrderString) - 1, strlen($tmpOrderString)) == "&") { $tmpOrderString = substr($tmpOrderString, 0, strlen($tmpOrderString) - 1); } return array($tmpOrderString, $upDown, $mostLess); } function createGallerySection($videos, $crc = "", $get = array(), $ignoreAds = false, $screenColsLarge = 0, $screenColsMedium = 0, $screenColsSmall = 0, $screenColsXSmall = 0) { global $global, $config, $obj, $advancedCustom, $advancedCustomUser; $countCols = 0; $obj = AVideoPlugin::getObjectData("Gallery"); $zindex = 1000; $startG = microtime(true); $program = AVideoPlugin::loadPluginIfEnabled('PlayLists'); foreach ($videos as $value) { // that meas auto generate the channelName if (empty($get) && !empty($obj->filterUserChannel)) { $getCN = array('channelName' => $value['channelName'], 'catName' => @$_GET['catName']); } else { $getCN = $get; } $img_portrait = (@$value['rotation'] === "90" || @$value['rotation'] === "270") ? "img-portrait" : ""; $name = User::getNameIdentificationById($value['users_id']); $name .= " " . User::getEmailVerifiedIcon($value['users_id']); // make a row each 6 cols if ($countCols % $obj->screenColsLarge === 0) { echo '
'; } $countCols++; if (!empty($screenColsLarge)) { $obj->screenColsLarge = $screenColsLarge; } if (!empty($screenColsMedium)) { $obj->screenColsMedium = $screenColsMedium; } if (!empty($screenColsSmall)) { $obj->screenColsSmall = $screenColsSmall; } if (!empty($screenColsXSmall)) { $obj->screenColsXSmall = $screenColsXSmall; } $colsClass = "col-lg-" . (12 / $obj->screenColsLarge) . " col-md-" . (12 / $obj->screenColsMedium) . " col-sm-" . (12 / $obj->screenColsSmall) . " col-xs-" . (12 / $obj->screenColsXSmall); $isserie = Video::isSerie($value['id']); $isserieClass = ""; if ($isserie) { $isserieClass = "isserie"; } ?>
thumbsGif = ""; $images->poster = "" . getCDN() . "view/img/notfound.jpg"; $images->thumbsJpg = "" . getCDN() . "view/img/notfoundThumbs.jpg"; $images->thumbsJpgSmall = "" . getCDN() . "view/img/notfoundThumbsSmall.jpg"; } if ($value['type'] === 'serie' && !empty($value['serie_playlists_id']) && stripos($images->thumbsJpg, 'notfound') !== false) { $images = PlayList::getRandomImageFromPlayList($value['serie_playlists_id']); } $startG = microtime(true); $imgGif = $images->thumbsGif; $poster = $images->thumbsJpg; ?>
<?php echo $value['title']; ?>" id="thumbsJPG" />


showCategoryTag)) { $iconClass = 'fas fa-folder'; if (!empty($value['iconClass'])) { $iconClass = $value['iconClass']; } $icon = ''; ?> showTags)) { echo implode('', Video::getTagsHTMLLabelArray($value['id'])); } @$timesG[__LINE__] += microtime(true) - $startG; $startG = microtime(true); ?>
doNotDisplayViews)) { if (AVideoPlugin::isEnabledByName('LiveUsers')) { echo getLiveUsersLabelVideo($value['id'], $value['views_count'], "", ""); } else { ?>
Description)) { //$desc = str_replace(array('"', "'", "#", "/", "\\"), array('``', "`", "", "", ""), preg_replace("/\r|\n/", " ", nl2br(trim($value['description'])))); $desc = nl2br(trim($value['description'])); if (!empty($desc)) { $duid = uniqid(); $titleAlert = str_replace(array('"', "'"), array('``', "`"), $value['title']); ?>
- "> + ">
- "> + ">
- +
1) { if ($countCols % $obj->screenColsLarge === 0) { echo ""; } if ($countCols % $obj->screenColsMedium === 0) { echo ""; } if ($countCols % $obj->screenColsSmall === 0) { echo ""; } if ($countCols % $obj->screenColsXSmall === 0) { echo ""; } } } ?>
screenColsLarge === 0) { echo '
'; } $countCols++; if (!empty($screenColsLarge)) { $obj->screenColsLarge = $screenColsLarge; } if (!empty($screenColsMedium)) { $obj->screenColsMedium = $screenColsMedium; } if (!empty($screenColsSmall)) { $obj->screenColsSmall = $screenColsSmall; } if (!empty($screenColsXSmall)) { $obj->screenColsXSmall = $screenColsXSmall; } $colsClass = "col-lg-" . (12 / $obj->screenColsLarge) . " col-md-" . (12 / $obj->screenColsMedium) . " col-sm-" . (12 / $obj->screenColsSmall) . " col-xs-" . (12 / $obj->screenColsXSmall); if (!empty($video['className'])) { $colsClass .= " {$video['className']}"; } $liveNow = '' . __("LIVE NOW") . ''; ?>
<?php echo $video['title'] ?>
showCategoryTag)) { ?>
Description)) { $desc = str_replace(array('"', "'", "#", "/", "\\"), array('``', "`", "", "", ""), preg_replace("/\r|\n/", " ", nl2br(trim($video['description'])))); if (!empty($desc)) { $titleAlert = str_replace(array('"', "'"), array('``', "`"), $video['title']); ?>
">
1) { if ($countCols % $obj->screenColsLarge === 0) { echo ""; } if ($countCols % $obj->screenColsMedium === 0) { echo ""; } if ($countCols % $obj->screenColsSmall === 0) { echo ""; } if ($countCols % $obj->screenColsXSmall === 0) { echo ""; } } } ?>
'; } unset($_POST['disableAddTo']); return $countCols; } function createChannelItem($users_id, $photoURL = "", $identification = "", $rowCount = 12) { $total = Video::getTotalVideos("viewable", $users_id); if (empty($total)) { return false; } if (empty($photoURL)) { $photoURL = User::getPhoto($users_id); } if (empty($identification)) { $identification = User::getNameIdentificationById($users_id); } ?>

Channel Owner

"; return $countCols; } function canPrintCategoryTitle($title) { global $doNotRepeatCategoryTitle; if (!isset($doNotRepeatCategoryTitle)) { $doNotRepeatCategoryTitle = array(); } if (in_array($title, $doNotRepeatCategoryTitle)) { return false; } $doNotRepeatCategoryTitle[] = $title; return true; } ?> diff --git a/plugin/Gallery/view/BigVideo.php b/plugin/Gallery/view/BigVideo.php index 608f68367..832c9e1af 100644 --- a/plugin/Gallery/view/BigVideo.php +++ b/plugin/Gallery/view/BigVideo.php @@ -1,305 +1,305 @@ BigVideo && empty($_GET['showOnly'])) { if (!empty($obj->useSuggestedVideosAsCarouselInBigVideo)) { //getAllVideos($status = "viewable", $showOnlyLoggedUserVideos = false, $ignoreGroup = false, $videosArrayId = array(), $getStatistcs = false, $showUnlisted = false, $activeUsersOnly = true) //$videoRows = Video::getAllVideosLight("viewable", !$obj->hidePrivateVideos, false, true); $_REQUEST['rowCount'] = 20; $_REQUEST['current'] = 1; $videoRows = Video::getAllVideos("viewable", false, !$obj->hidePrivateVideos, array(), false, false, true, true); } if (empty($videoRows)) { $videoRows = array($video); } $class = ''; $classInner = ''; if (count($videoRows) > 1) { $class = 'carousel slide'; $classInner = 'carousel-inner'; } ?>
1) { ?>
getName(); $videoRow['clean_category'] = $category->getClean_name(); $videoRow['iconClass'] = $category->getIconClass(); $videoRow['videoCreation'] = $videoRow['created']; $name = User::getNameIdentificationById($videoRow['users_id']); if (empty($get)) { $get = array(); } $bigVideoAd = getAdsLeaderBoardBigVideo(); $colClass1 = "col-sm-5"; $colClass2 = "col-sm-7"; $colClass3 = ""; if (!empty($bigVideoAd)) { $colClass1 = "col-sm-4"; $colClass2 = "col-sm-8"; $colClass3 = "col-sm-6"; } $isserie = Video::isSerie($videoRow['id']); $isserieClass = ""; if ($isserie) { $isserieClass = "isserie"; } ?>
">
showTags)) { $videoRow['tags'] = Video::getTags($videoRow['id']); if (!empty($videoRow['tags'])) { foreach ($videoRow['tags'] as $value2) { if (!empty($value2->label) && $value2->label === __("Group")) { ?>text; ?>
doNotDisplayViews)) { if (AVideoPlugin::isEnabledByName('LiveUsers')) { echo getLiveUsersLabelVideo($videoRow['id'], $videoRow['views_count'], "", ""); } else { ?>
- +
- +
$value) { $menuItems = MenuItem::getAllFromMenu($value['id'], true); foreach ($menuItems as $key2 => $value2) { ?>
- class="text-primary"> + >
$value) { $menuItems = MenuItem::getAllFromMenu($value['id'], true); foreach ($menuItems as $key2 => $value2) { $url = TopMenu::getVideoMenuURL($videos_id, $value2['id']); if (empty($url)) { continue; } ?>
- class="text-primary"> + >
$value) { $menuItems = MenuItem::getAllFromMenu($value['id'], true); foreach ($menuItems as $key2 => $value2) { $url = TopMenu::getVideoMenuURL($videos_id, $value2['id']); if (empty($url)) { continue; } ?>
- class="text-primary"> + >
$value) { $menuItems = MenuItem::getAllFromMenu($value['id'], true); foreach ($menuItems as $key2 => $value2) { $url = TopMenu::getVideoMenuURL($videos_id, $value2['id']); if (empty($url)) { continue; } ?>
- class="text-primary"> + >
$value) { $menuItems = MenuItem::getAllFromMenu($value['id'], true); foreach ($menuItems as $key2 => $value2) { $url = TopMenu::getVideoMenuURL($videos_id, $value2['id']); if (empty($url)) { continue; } ?>
- class="text-primary"> + >
\ No newline at end of file diff --git a/view/channelPlaylistItems.php b/view/channelPlaylistItems.php index 196bdf9a6..5b13317a9 100644 --- a/view/channelPlaylistItems.php +++ b/view/channelPlaylistItems.php @@ -1,598 +1,598 @@
" . __('Sorry you do not have anything available') . "
"; } die(""); } $playListsObj = AVideoPlugin::getObjectData("PlayLists"); TimeLogEnd($timeLog2, __LINE__); $channelName = @$_GET['channelName']; unset($_GET['channelName']); $startC = microtime(true); TimeLogEnd($timeLog2, __LINE__); $countSuccess = 0; $get = array(); if (!empty($_GET['channelName'])) { $get = array('channelName' => $_GET['channelName']); } $program = AVideoPlugin::loadPluginIfEnabled('PlayLists'); foreach ($playlists as $key => $playlist) { @$timesC[__LINE__] += microtime(true) - $startC; $startC = microtime(true); $_REQUEST['current'] = 1; $_REQUEST['rowCount'] = 6; $videosArrayId = PlayList::getVideosIdFromPlaylist($playlist['id']); $_REQUEST['current'] = 1; $_REQUEST['rowCount'] = 6; @$timesC[__LINE__] += microtime(true) - $startC; $startC = microtime(true); $rowCount = $_POST['rowCount']; $_REQUEST['rowCount'] = 6; //getAllVideos($status = "viewable", $showOnlyLoggedUserVideos = false, $ignoreGroup = false, $videosArrayId = array(), $getStatistcs = false, $showUnlisted = false, $activeUsersOnly = true) if (empty($videosArrayId) && ($playlist['status'] == "favorite" || $playlist['status'] == "watch_later")) { unset($playlists[$key]); continue; } else if (empty($videosArrayId)) { $videosP = array(); } else { $videosP = Video::getAllVideos("viewable", false, true, $videosArrayId, false, true); }//var_dump($videosArrayId, $videosP); exit; $totalDuration = 0; foreach ($videosP as $value) { $totalDuration += durationToSeconds($value['duration']); } $_REQUEST['rowCount'] = $rowCount; @$timesC[__LINE__] += microtime(true) - $startC; $startC = microtime(true); //_error_log("channelPlaylist videosP: ".json_encode($videosP)); $videosP = PlayList::sortVideos($videosP, $videosArrayId); @$timesC[__LINE__] += microtime(true) - $startC; $startC = microtime(true); //_error_log("channelPlaylist videosP2: ".json_encode($videosP)); //_error_log("channelPlaylist videosArrayId: ".json_encode($videosArrayId)); $playListButtons = AVideoPlugin::getPlayListButtons($playlist['id']); @$timesC[__LINE__] += microtime(true) - $startC; $startC = microtime(true); $countSuccess++; ?>
()
embedCodeTemplate); echo ($code); ?>'/>
thumbsGif; $poster = $images->thumbsJpg; $category = new Category($serie['categories_id']); ?>
<?php echo $serie['title']; ?>
getIconClass())) { ?> getName(); ?> label === __("Group")) { ?> text; ?>

thumbsGif; $poster = $images->thumbsJpg; $class = ""; ?>
<?php echo $value['title']; ?>

label === __("Group")) { ?> text; ?>
doNotDisplayViews)) { ?>
- +

\ No newline at end of file diff --git a/view/channelProgram.php b/view/channelProgram.php index 021622a3c..74345d583 100644 --- a/view/channelProgram.php +++ b/view/channelProgram.php @@ -1,737 +1,737 @@ getUsers_id(); } $user_id = $_GET['user_id']; $publicOnly = true; $isMyChannel = false; if (User::isLogged() && $user_id == User::getId()) { $publicOnly = false; $isMyChannel = true; } $programs = PlayList::getAllFromUser($user_id, $publicOnly, false, @$_GET['program_id']); if (empty($programs)) { $programs = PlayList::getAllFromUser($user_id, $publicOnly); } else { $videosArrayId = PlayList::getVideosIdFromPlaylist($_GET['program_id']); $videos_id = @$videosArrayId[0]; } $playListsObj = AVideoPlugin::getObjectData("PlayLists"); ?> <?php echo __("Program") . $config->getPageTitleSeparator() . $config->getWebSiteTitle(); ?> \ No newline at end of file diff --git a/view/trending.php b/view/trending.php index 13ea4d003..c6a28a09f 100644 --- a/view/trending.php +++ b/view/trending.php @@ -1,242 +1,242 @@ <?php echo __("Trending") . getSEOComplement() . $config->getPageTitleSeparator() . $config->getWebSiteTitle(); ?>