@ 2015-03-22T11:44:05Z <?php
function get_curl($link){
$curl = curl_init();
curl_setopt($curl, CURLOPT_URL, $link);
curl_setopt($curl, CURLOPT_HTTPHEADER, array('Content-type: text/html','charset:UTF-8'));
curl_setopt($curl, CURLOPT_USERAGENT, $_SERVER['HTTP_USER_AGENT']);
curl_setopt($curl, CURLOPT_REFERER, 'http://google.com');
curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($curl, CURLOPT_TIMEOUT, 30);
$data = curl_exec($curl);
curl_close($curl);
return $data;
}
//Start TV.ZING.VN
class zing {
public $_text = '';
public $_key = 'f_pk_ZingTV_1_@z';
public $_iv = 'f_iv_ZingTV_1_@z';
public $_result = '';
public function _decrypt(){
if($this->_text != ''){
$cipher = mcrypt_module_open(MCRYPT_RIJNDAEL_128, '', MCRYPT_MODE_CBC, '');
$iv_size = mcrypt_enc_get_iv_size($cipher);
if(mcrypt_generic_init($cipher, $this->_key, $this->_iv) != -1){
$cipherText = mdecrypt_generic($cipher,$this->_hexToString($this->_text));
mcrypt_generic_deinit($cipher);
$this->_result = $cipherText;
return true;
}else{
return false;
}
}
}
protected function _hexToString($hex){
if(!is_string($hex)){
return null;
}
$char = '';
for($i=0; $i<strlen($hex);$i+=2){
$char .= chr(hexdec($hex{$i}.$hex{($i+1)}));
}
return $char;
}
}
$zing = get_curl('http://tv.zing.vn/embed/video/IWZBOU8B');
preg_match_all('/xmlURL: "([^>]*)",/U', $zing, $link_zing);
$xml = str_replace( 'media', 'media-embed', $link_zing[1][0]);
$sourceXML = file_get_contents('compress.zlib://'.$xml);
$f360 = explode('<source streamingType="1"><=!=[=C=D=A=T=A=[',$sourceXML);$f360=explode(']=]=></source>',$f360[1]);$getf360=new zing; $getf360->_text=''.$f360[0].''; if($getf360->_decrypt()!=false);
if($getf360->_result != ''){
$f480 = explode('<f480 streamingType="1"><=!=[=C=D=A=T=A=[',$sourceXML);$f480=explode(']=]=></f480>',$f480[1]);$getf480=new zing; $getf480->_text=''.$f480[0].''; if($getf480->_decrypt()!=false);
$f720 = explode('<f720 streamingType="1"><=!=[=C=D=A=T=A=[',$sourceXML);$f720=explode(']=]=></f720>',$f720[1]);$getf720=new zing; $getf720->_text=''.$f720[0].''; if($getf720->_decrypt()!=false);
$link = '720p: '.$getf720->_result.'<br> 480p: '.$getf480->_result.'<br> 360p: '.$getf360->_result;
} else {
$f360 = explode('<source streamingType="2"><=!=[=C=D=A=T=A=[',$sourceXML);$f360=explode(']=]=></source>',$f360[1]);$getf360=new zing; $getf360->_text=''.$f360[0].''; if($getf360->_decrypt()!=false);
if($getf360->_result != ''){
$f480 = explode('<f480 streamingType="2"><=!=[=C=D=A=T=A=[',$sourceXML);$f480=explode(']=]=></f480>',$f480[1]);$getf480=new zing; $getf480->_text=''.$f480[0].''; if($getf480->_decrypt()!=false);
$f720 = explode('<f720 streamingType="2"><=!=[=C=D=A=T=A=[',$sourceXML);$f720=explode(']=]=></f720>',$f720[1]);$getf720=new zing; $getf720->_text=''.$f720[0].''; if($getf720->_decrypt()!=false);
$link = '720p: '.$getf720->_result.'<br> 480p: '.$getf480->_result.'<br> 360p: '.$getf360->_result;
} else {
$f360 = explode('<source streamingType="3"><=!=[=C=D=A=T=A=[',$sourceXML);$f360=explode(']=]=></source>',$f360[1]);$getf360=new zing; $getf360->_text=''.$f360[0].''; if($getf360->_decrypt()!=false);
$f480 = explode('<f480 streamingType="3"><=!=[=C=D=A=T=A=[',$sourceXML);$f480=explode(']=]=></f480>',$f480[1]);$getf480=new zing; $getf480->_text=''.$f480[0].''; if($getf480->_decrypt()!=false);
$f720 = explode('<f720 streamingType="3"><=!=[=C=D=A=T=A=[',$sourceXML);$f720=explode(']=]=></f720>',$f720[1]);$getf720=new zing; $getf720->_text=''.$f720[0].''; if($getf720->_decrypt()!=false);
$link = '720p: '.$getf720->_result.'<br> 480p: '.$getf480->_result.'<br> 360p: '.$getf360->_result;
}
}
echo $link;
//End TV.ZING.VN
Enable javascript to submit You have javascript disabled. You will not be able to edit any code.
Output for 8.0.0 - 8.0.30 , 8.1.0 - 8.1.28 , 8.2.0 - 8.2.19 , 8.3.0 - 8.3.7 Fatal error: Array and string offset access syntax with curly braces is no longer supported in /in/cY95e on line 42
Process exited with code 255 . Output for 7.4.0 - 7.4.33 Deprecated: Array and string offset access syntax with curly braces is deprecated in /in/cY95e on line 42
Deprecated: Array and string offset access syntax with curly braces is deprecated in /in/cY95e on line 42
Fatal error: Uncaught Error: Call to undefined function curl_init() in /in/cY95e:3
Stack trace:
#0 /in/cY95e(49): get_curl('http://tv.zing....')
#1 {main}
thrown in /in/cY95e on line 3
Process exited with code 255 . Output for 7.0.0 - 7.0.20 , 7.1.0 - 7.1.20 , 7.2.0 - 7.2.33 , 7.3.16 - 7.3.33 Fatal error: Uncaught Error: Call to undefined function curl_init() in /in/cY95e:3
Stack trace:
#0 /in/cY95e(49): get_curl('http://tv.zing....')
#1 {main}
thrown in /in/cY95e on line 3
Process exited with code 255 . Output for 5.4.0 - 5.4.45 , 5.5.0 - 5.5.38 , 5.6.0 - 5.6.28 Fatal error: Call to undefined function curl_init() in /in/cY95e on line 3
Process exited with code 255 . preferences:dark mode live preview
178.74 ms | 402 KiB | 273 Q