getId(); if ($liveLink->getType() == 'logged_only' && !User::isLogged()) { die('Link for logged only'); } $uuid = $_GET['link']; $t['id'] = $uuid; $t['users_id'] = $liveLink->getUsers_id(); $t['title'] = $liveLink->getTitle(); $t['link'] = $liveLink->getLink(); $t['description'] = $liveLink->getDescription(); AVideoPlugin::getModeLiveLink($liveLink->getId()); $toTime = strtotime($liveLink->getStart_date()); } else { $isLiveLink = uniqid(); $uuid = $isLiveLink; $t = LiveLinks::decodeDinamicVideoLink(); $toTime = time(); } if (empty($t['users_id'])) { die('Link not found'); } if ($toTime > time()) { $message = "{$t['title']}
{$t['description']}"; $image = User::getPhoto($t['users_id']); $bgImage = LiveLinks::getImage($t['id']); $title = $t['title']; countDownPage($toTime, $message, $image, $bgImage, $title); } $u = new User($t['users_id']); $user_id = $u->getBdId(); $subscribe = Subscribe::getButton($user_id); $name = $u->getNameIdentificationBd(); $name = "{$name} " . User::getEmailVerifiedIcon($user_id) . ""; $video = array(); $video['creator'] = '
User Photo
' . $name . '
' . $subscribe . '
'; $video['type'] = "liveLink"; $video['title'] = $t['title']; $video['description'] = $t['description']; $video['users_id'] = $t['users_id']; $poster = $img = LiveLinks::getImage($t['id']); $imgw = 400; $imgh = 255; if(isAVideoMobileApp()){ $_GET['embed'] = 1; } if (!empty($_GET['embed'])) { $video['videoLink'] = LiveLinks::getSourceLink($t['id']); include $global['systemRootPath'] . 'view/videoEmbeded.php'; return false; } $isCompressed = AVideoPlugin::loadPluginIfEnabled('TheaterButton') && TheaterButton::isCompressed(); $sideAd = getAdsSideRectangle(); $modeYoutubeBottomClass1 = "col-sm-7 col-md-7 col-lg-6"; $modeYoutubeBottomClass2 = "col-sm-5 col-md-5 col-lg-4 "; if (empty($sideAd) && !AVideoPlugin::loadPluginIfEnabled("Chat2")) { $modeYoutubeBottomClass1 = "col-sm-12 col-md-12 col-lg-10"; $modeYoutubeBottomClass2 = "hidden "; } ?> <?php echo $t['title'] . $config->getPageTitleSeparator() . __("Live Links") . $config->getPageTitleSeparator() . $config->getWebSiteTitle(); ?> - getWebSiteTitle(); ?>" /> " />

getChat($uuid); } ?>