clipbucket/upload/player/CB_html5_player/plugins/related/related_videos.php
Fahad Abbas f3301f69dd manage_players.html : removed player default size option
functions_video.php : replaced get_normal_vid() and get_hq_vid() with get_video_files() for Html5 player 
html5_player.html : added flashplayer option.
html5_player.js : Added added option for multiserver video files, edited full screen function , solved video loading issue
html5_player.php : Added added option for multiserver video files, player settings option, flashplayer.js
html5_player_header.html : empty now! 
style.css : added and edited some classes  { resolution, right click menu  }
2014-12-08 14:51:09 +00:00

28 lines
No EOL
919 B
PHP

<?php
include('../../../../includes/config.inc.php');
header('Content-Type: text/xml');
$title = mysql_clean($_GET['title']);
$tags = mysql_clean($_GET['tags']);
$videoid = mysql_clean($_GET['vid']);
$related_videos = get_videos(array('title'=>$title,'tags'=>$tags,
'exclude'=>$videoid,'show_related'=>'yes','limit'=>8,'order'=>'date_added DESC'));
if(!$related_videos)
$related_videos = get_videos(array('exclude'=>$videoid,'limit'=>12,'order'=>'date_added DESC'));
?>
<rss version="2.0" xmlns:media="http://search.yahoo.com/mrss/">
<channel>
<?php
if($related_videos)
foreach($related_videos as $video):
?>
<item>
<title><?=$video['title']?></title>
<link><?=videoLink($video);?></link>
<media:thumbnail url="<?=get_thumb($video)?>" height="90" width="120" time="<?=setTime($video['duration'])?>"/>
</item>
<?php
endforeach;
?>
</channel>
</rss>