/* ******************************************************************* ***************** Парсер Xvideo от TizerBox.net ******************* ******************************************************************* */ $video = $_GET['video']; $url = base64_decode($video); $user_agent = $_SERVER['HTTP_USER_AGENT']; $proxy = '5.79.66.2:13080'; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_PROXY, $proxy); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true); curl_setopt($ch, CURLOPT_TIMEOUT, 10); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_USERAGENT, $user_agent); $parser = curl_exec($ch); curl_close($ch); // Парсим видео preg_match('/setVideoHLS\(\'(.*?)\'\)/is', $parser, $video_new); preg_match('/setVideoUrlHigh\(\'(.*?)\'\)/is', $parser, $video_high); preg_match('/setVideoUrlLow\(\'(.*?)\'\)/is', $parser, $video_low); // Парсим картинку preg_match('/setThumbUrl\(\'(.*?)\'\)/is', $parser, $bigthumb_new); if ($video_high) { $flv = $video_high[1];} elseif ($video_low) { $flv = $video_low[1];} else { $flv = $video_new[1];} $pattern = '/video(\d+)/'; preg_match($pattern, $url, $matches); $embed = $matches[1]; // выводим плеер uppod // Внешний вид плеера настраивается в личном аккаунте uppod if ($bigthumb_new) { echo '
'; } else { echo ' '; } ?>