Вход Регистрация
Файл: flexmovies/Script/libs/Route/tv.php
Строк: 44
<?php
$favorite0 
$watch0 "";
if(
$user){
$favorite0 $db->where('content''favorite_tv')->where('content_id'$_GET['tv'])->where('user_id'$user['id'])->get('activity');
$watch0 $db->where('content''watch_tv')->where('content_id'$_GET['tv'])->where('user_id'$user['id'])->get('activity'); 
}
!
$favorite0 $favorite $favorite $favorite0[0];
!
$watch0 $watch $watch $watch0[0];
$smarty->assign("favorite"$favorite);
$smarty->assign("watch"$watch);

if(isset(
$_GET['dir']) && $_GET['dir']=='tv_credits'){
$tv GET('tv'$_GET['tv']);
$smarty->assign("tv"$tv);
$CONTENT $smarty->fetch('Route/tv_credits.tpl');
$CONF['title'] = $tv['name'];
$CONF['description'] = $tv['overview'];
$CONF['keywords'] = $tv['name'];
$CONF['img'] = 'http://image.tmdb.org/t/p/original'.$tv['poster_path'];
    
}elseif(isset(
$_GET['dir']) && $_GET['dir']=='tv_images'){
$tv GET('tv'$_GET['tv']);
$smarty->assign("tv"$tv);
$CONTENT $smarty->fetch('Route/tv_images.tpl');
$CONF['title'] = $tv['name'];
$CONF['description'] = $tv['overview'];
$CONF['keywords'] = $tv['name'];
$CONF['img'] = 'http://image.tmdb.org/t/p/original'.$tv['poster_path'];
    
}elseif(isset(
$_GET['dir']) && $_GET['dir']=='seasons' && isset($_GET['season']) && $_GET['season']!=''){
$season GET('tv_season'$_GET['tv'], $_GET['season']);
$smarty->assign("season"$season);
$CONTENT $smarty->fetch('Route/tv_season.tpl');
$CONF['title'] = $season['name'];
$CONF['description'] = $season['overview'];
$CONF['keywords'] = $season['name'];
$CONF['img'] = 'http://image.tmdb.org/t/p/original'.$season['poster_path'];
    
}else{
$tv GET('tv'$_GET['tv']);
$smarty->assign("tv"$tv);
$CONTENT $smarty->fetch('Route/tv.tpl');
$CONF['title'] = $tv['name'];
$CONF['description'] = $tv['overview'];
$CONF['keywords'] = $tv['name'];
$CONF['img'] = 'http://image.tmdb.org/t/p/original'.$tv['poster_path'];
}
Онлайн: 1
Реклама