Hola amigos del web tengo un serio problema con un codigo que no se porque razon no me abre el reproductor de Youtube, este codigo es para ver varias paginas en determinado tiempo, pero cuando coloco enlaces de youtube este solo me aparece en blanco y no entra a la pagina de youtube, pero en las demas paginas como ser que terminen en .php o .html si las abre sin problema pero cuando coloco un video por ejemplo:
https://www.youtube.com/watch?v=EcHOwwrWBLU
este no me abre la pagina y se queda en blanco, porque sera? Este es la primera parte del codigo:
[PHP]
<?define('BASEPATH', true);include("system/config.php");if(!
$is_online){ redirect('index.php');}elseif($site['surf_type']
== 2){ redirect('index.php');}$x = parse_url($site
['site_url']);if(isset($_GET['skip']) && is_numeric($_GET
['skip'])){ $skip = $db->EscapeString($_GET['skip']);
if($db->QueryGetNumRows("SELECT * FROM `surfed` WHERE
`site_id`='".$skip."' AND `user_id`='".$data['id']."' LIMIT 1")
== 0){ $db->Query("INSERT INTO `surfed` (user_id,
site_id) VALUES('".$data['id']."', '".$skip."')");
}}$skip_msg = (isset($_GET['skip']) && isset($_GET['bd']) ?
'Previous website was skipped because frame breaker was
detected!' : '');if($site['banner_system'] != 0){ $banner
= $db->QueryFetchArray("SELECT id,banner_url FROM `banners`
WHERE `expiration`>'0' ORDER BY rand() LIMIT 1"); if(!
empty($banner['id'])){ $db->Query("UPDATE `banners` SET
`views`=`views`+'1' WHERE `id`='".$banner['id']."'");
$banner_code = '<a href="'.$site['site_url'].'/go_banner.php?
go='.$banner['id'].'" target="_blank"><img src="'.$banner
['banner_url'].'" width="468" height="60" border="0"
onerror="this.src=\'/img/surf/banneraderror.png\';" /></a>';
}}$dbt_value = '';if($site['target_system'] != 2){
$dbt_value = " AND (a.country = '0' OR FIND_IN_SET('".$data
['country']."', a.country)) AND (a.sex = '".$data['sex']."' OR
a.sex = '0')";}$sit['id'] = 0;if($site['surf_type'] != 1){
$sit = $db->QueryFetchArray("SELECT a.id, a.url, a.title, a.cpc
FROM surf a LEFT JOIN users b ON b.id = a.user LEFT JOIN surfed
c ON c.user_id = '".$data['id']."' AND c.site_id = a.id WHERE
(a.confirm = '0' AND a.active = '0') AND (a.max_clicks >
a.clicks OR a.max_clicks = '0') AND (a.daily_clicks >
a.today_clicks OR a.daily_clicks = '0') AND (b.coins >= a.cpc
AND a.cpc >= '2') AND (c.site_id IS NULL AND a.user !='".$data
['id']."')".$dbt_value." ORDER BY a.cpc DESC, b.premium DESC,
RAND() LIMIT 1");}elseif(isset($_GET['sid']) && is_numeric
($_GET['sid'])){ $sid = $db->EscapeString($_GET['sid']);
if($db->QueryGetNumRows("SELECT * FROM `surfed` WHERE
`site_id`='".$sid."' AND `user_id`='".$data['id']."' LIMIT 1")
== 0){ $sit = $db->QueryFetchArray("SELECT a.id, a.url,
a.title, a.cpc FROM surf a LEFT JOIN users b ON b.id = a.user
LEFT JOIN surfed c ON c.user_id = '".$data['id']."' AND
c.site_id = a.id WHERE a.id = '".$sid."' AND (a.confirm = '0'
AND a.active = '0') AND (a.max_clicks > a.clicks OR a.max_clicks
= '0') AND (a.daily_clicks > a.today_clicks OR a.daily_clicks =
'0') AND (b.coins >= a.cpc AND a.cpc >= '2') AND (c.site_id IS
NULL AND a.user !='".$data['id']."')".$dbt_value." LIMIT 1");
}}if($site['surf_time_type'] == 1){ $surf_time = ($site
['surf_time']*($sit['cpc']-1));}else{ $surf_time = $site
['surf_time'];}if($sit['id'] > 0){ $key = $surf_time+time
(); $result = $db->Query("INSERT INTO
`module_session`
(`user_id`,`page_id`,`ses_key`,`module`,`timestamp `)VALUES('".
$data['id']."','".$sit['id']."','".$key."','surf','".time()."')
ON DUPLICATE KEY UPDATE `ses_key`='".$key."'");}?>