diff --git a/plugin/CombineSites/page/get/index.php b/plugin/CombineSites/page/get/index.php
index 091ecb1f9..617836e82 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)) {
?>
evideos as $video) {
$youtubeEmbedLink = "{$global['webSiteRootURL']}evideo/" . encryptString(json_encode($video));
$youtubeTitle = $video->title;
$youtubeThumbs = $video->thumbnails;
?>
-
+
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;
?>
" id="thumbsJPG" />
" style="color: #4285f4;" >
" style="" >
" style="color: #4285f4; ">
" style="" >
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']);
?>
uploadButtonDropdownText) ? $advancedCustom->uploadButtonDropdownText : ""; ?>
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") . ' ';
?>
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);
}
?>
";
$countCols = createGallerySection($videos, "", array(), false, $screenColsLarge, $screenColsMedium, $screenColsSmall, $screenColsXSmall);
echo "
";
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/YouPHPFlix2/view/row.php b/plugin/YouPHPFlix2/view/row.php
index cc54b0584..3598aaa8f 100644
--- a/plugin/YouPHPFlix2/view/row.php
+++ b/plugin/YouPHPFlix2/view/row.php
@@ -1,137 +1,137 @@
landscapePosters)) {
$landscape = "landscapeTile";
if (!empty($obj->titleLabel)) {
$css = "height: 185px;";
}
}
$get = $_GET;
$post = $_POST;
$timeLog3 = __FILE__ . " - modeFlix Row";
TimeLogStart($timeLog3);
?>
$value) {
$uid = "{$uidOriginal}_{$value['id']}";
$videosCounter++;
$images = Video::getImageFromFilename($value['filename'], $value['type']);
$ajaxLoad = '';
if (!empty($value['serie_playlists_id'])) {
if (empty($images) || empty($images->poster) || preg_match('/notfound/', $images->poster)) {
$images = PlayList::getRandomImageFromPlayList($value['serie_playlists_id']);
}
$ajaxLoad = $global['webSiteRootURL'] . 'plugin/YouPHPFlix2/view/modeFlixSerie.php?playlists_id=' . $value['serie_playlists_id'];
$link = PlayLists::getLink($value['serie_playlists_id']);
$linkEmbed = PlayLists::getLink($value['serie_playlists_id'], true);
$value['title'] = "
{$value['title']} ";
}
$imgGif = $images->thumbsGif;
$img = $images->thumbsJpg;
$poster = $images->poster;
$cssClass = "";
if (empty($obj->landscapePosters) && !empty($images->posterPortraitThumbs)) {
$imgGif = $images->gifPortrait;
$img = $images->posterPortraitThumbs;
$cssClass = "posterPortrait";
}
?>
-
$value) {
$uid = "{$uidOriginal}_{$value['id']}";
$images = Video::getImageFromFilename($value['filename'], $value['type']);
if (!empty($value['serie_playlists_id'])) {
if (empty($images) || empty($images->poster) || preg_match('/notfound/', $images->poster)) {
$images = PlayList::getRandomImageFromPlayList($value['serie_playlists_id']);
}
}
$imgGif = $images->thumbsGif;
$img = $images->thumbsJpg;
$poster = $images->poster;
$canWatchPlayButton = "";
if (User::canWatchVideoWithAds($value['id'])) {
$canWatchPlayButton = "canWatchPlayButton";
} else if ($obj->hidePlayButtonIfCannotWatch) {
$canWatchPlayButton = "hidden";
}
if (!empty($rowPlayListLink)) {
$rowLink = addQueryStringParameter($rowPlayListLink, 'playlist_index', $_index);
$rowLinkEmbed = addQueryStringParameter($rowPlayListLinkEmbed, 'playlist_index', $_index);
} else {
$rowLink = YouPHPFlix2::getLinkToVideo($value['id'], true);
$rowLinkEmbed = Video::getLinkToVideo($value['id'], $value['clean_title'], true);
}
if (empty($value['serie_playlists_id'])) {
include $global['systemRootPath'] . 'plugin/YouPHPFlix2/view/row_video.php';
} else {
include $global['systemRootPath'] . 'plugin/YouPHPFlix2/view/row_serie.php';
}
}
TimeLogEnd($timeLog3, __LINE__);
$_GET = $get;
$_POST = $post;
diff --git a/plugin/YouTubeAPI/gallerySection.php b/plugin/YouTubeAPI/gallerySection.php
index af827743d..42f3dd27a 100644
--- a/plugin/YouTubeAPI/gallerySection.php
+++ b/plugin/YouTubeAPI/gallerySection.php
@@ -1,83 +1,83 @@
listVideos();
if ($object->error && User::isAdmin()) {
?>
YouTubeAPI Error
msg->error)) {
echo $object->msg;
} else {
foreach ($object->msg->error as $key => $value) {
if (!is_object($value) && !is_array($value)) {
echo "{$key} : $value ";
} else {
foreach ($value as $key2 => $value2) {
if (!is_object($value2) && !is_array($value2)) {
echo "{$key2} : $value2 ";
} else {
foreach ($value2 as $key3 => $value3) {
if (!is_object($value3) && !is_array($value3)) {
echo "{$key3} : $value3 ";
} else {
var_dump($value3);
}
}
}
}
}
}
}
?>
videos as $video) {
$youtubeEmbedLink = "{$global['webSiteRootURL']}evideo/". encryptString(json_encode($video));
$youtubeTitle = $video->title;
$youtubeThumbs = $video->thumbnails;
?>
-
\ No newline at end of file