<?php
$ads = $_GET[ads];
$vid_data = fnc_get_video_data($_GET['id']);
$skin = new Smarty();
$skin->template_dir=ROOT_PATH.'template/'.$g_conf[theme].'/sections';
$skin->compile_dir=ROOT_PATH.'cache/';
if (check_filter($vid_data[category])>0) {
$source_template = 'parental.html';
} else {
require_once(ROOT_PATH.'adconf.php');
if ($adconf_enable!=1) {
$ads = 1;
}
if ($ads!=1) {
$adfile = file_get_contents($g_conf[base_url].'/ads.txt');
//$ads = array();
$ads = explode("||REKLAMKODU||", $adfile);
$count = count($ads);
$rand = rand(0, $count);
$source_template = 'play_ads.html';
$skin->assign('ID',$vid_data[id]);
$skin->assign('RTIME',$adconf_refresh);
if (!empty($ads[$rand])) {
$skin->assign('PLAYER',$ads[$rand]); }
else {
$skin->assign('PLAYER',$ads[0]);
} } else {
if ($_GET['frame']=='Small') {
if(strstr($vid_data[url], ".mp4")) {
echo '<center><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="512" height="310" id="pilav" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="allowFullScreen" value="true" />
<param name="movie" value="https://media.preachingtoday.com/flash/player.swf?file='.$vid_data[url].'" />
<param name="quality" value="high" />
<param name="bgcolor" value="#ffffff" />
<embed src="https://media.preachingtoday.com/flash/player.swf?file='.$vid_data[url].'&logo=/images/playerlogo.png" quality="high" bgcolor="#ffffff" width="512" height="310" name="mymovie" align="middle" allowFullScreen="true" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.adobe.com/go/getflashplayer" />
</object></center>';
}
else {
$source_template = 'play_small.html';
$skin->assign('PLAYER',play_video($vid_data[url],$vid_data[id],'512','322'));
}
} elseif ($_GET['frame']=='Full')
{
if ($vid_data['source']=='YouTube.com') {
$source_template = 'play_small.html';
$skin->assign('PLAYER',play_video($vid_data[url],$vid_data[id],'512','322'));
} elseif ($vid_data['source']=='video.google.com') {
$source_template = 'play_small.html';
$skin->assign('PLAYER',play_video($vid_data[url],$vid_data[id],'512','322'));
} else {
$source_template = 'play_full.html';
$skin->assign('PLAYER',play_video($vid_data[url],$vid_data[id],'100%','100%')); }
} elseif ($_GET['frame']=='Blank') {
$source_template = 'play_blank.html';
}
else
{
header('location: '.$g_conf[base_url].'/index.php');
} }
if (check_login($_SESSION['username'],$_SESSION['password'])==0) {
if ($g_conf[v_view_limit]!=0) {
$ip = $_SERVER['REMOTE_ADDR'];
if ($_COOKIE["viewlimit"]>=$g_conf[v_view_limit]) {
$source_template = 'view_limit.html';
} else {
setcookie("viewlimit", $_COOKIE["viewlimit"]+1, time()+360000);
}
} }
}
$skin->assign('GLOBAL',$g_conf);
$skin->assign('ID',$vid_data[id]);
$skin->assign('THEME_NAME',$g_conf[theme]);
$skin->assign('SITE_NAME',$g_conf[site_name]);
$skin->assign('CHARSET',$g_conf[charset]);
$skin->assign('META_DESC',$g_conf[meta_desc]);
$skin->assign('META_KEYWORD',$g_conf[meta_keyword]);
$skin->assign('BASE_URL',$g_conf[base_url]);
$skin->assign('LANG',$lang);
$skin->assign('v_limit',$g_conf[v_view_limit]);
$skin->assign('RETURN',base64_encode('?p=View&id='.$vid_data[id]));
$skin->assign('VERSION',$g_conf[version]);
$skin->display($source_template);
?> Youtube için Player Yardım
0
●306
- 31-10-2010, 22:53:19Arkadaşlar Yuoutube videoları harici playerde oynatmak istiyorum, yardımcı olursanız memnun olurum, DOSYA KODu, Burda Uygun yer değişecek galiba,