Вход Регистрация
Файл: download.php
Строк: 76
<?php
require_once './config.php';
$url = 'http://faptv.net/video/'.trim($_GET['id']).'/';
$cachtime = 86400;
$url2 = md5($url);
$cachfile = 'cache/pages/'.$url2.'';
##############################
if(file_exists($cachfile) AND ((time() - filemtime($cachfile)) < $cachtime))
{ 
$out = file_get_contents($cachfile);
preg_match('|<title>(.*)</title>|Us', $out, $titless);
 }else{
require_once 
'./curl.php';
##############################
preg_match('|<title>(.*)</title>|Us', $res, $titless);
preg_match('|<div class="img">(.*)</div>|Us', $res, $img);
if(
CACHIMG == 1) {
$img[1]=str_replace('http://img.titstube.t', ''.HOME.'scr1/', $img[1]);
$img[1]=str_replace('http://img.faptv.ne', ''.HOME.'scr1/', $img[1]); }
$img[1]=str_replace('/site/download/video/', ''.HOME.'get/', $img[1]);
$img[1]=str_replace('">', '/">', $img[1]);
##############################

    
preg_match('|<div class="title">(.*)</div>|Us', $res, $tit);
    
$tit[1]=str_replace('/video/', ''.HOME.'download/', $tit[1]);
##############################

    
preg_match('|<div class="extrainfo">(.*)</div>|Us', $res, $time);
##############################

    
preg_match('|<div class="tags">(.*)<div class="panel">|Us', $res, $jan);
    
$jan[1]=str_replace('/genre/', ''.HOME.'janr/', $jan[1]);
    
$jan[1]=str_replace('<div class="tags">', ''.DIVfon.'', $jan[1]);
    
$jan[1]=str_replace('/actress/', ''.HOME.'act/', $jan[1]);
    
$jan[1]=str_replace('/studio/', ''.HOME.'studio/', $jan[1]);
##############################

    
preg_match('|<div class="description">(.*)</div>|Us', $res, $info);
    
$info[1]=str_replace('</p>', '', $info[1]);
    
$info[1]=str_replace('<p>', '', $info[1]);
##############################

    
preg_match('|<div class="pagerin">(.*)</div>|Us', $res, $nav);
    
$nav[1]=str_replace('/video/', ''.HOME.'download/', $nav[1]);
##############################

    
preg_match_all('|<div class="dwl">(.*)</div>|Us', $res, $smt);
    
$smt[1]=str_replace('<!--', '', $smt[1]);
    
$smt[1]=str_replace('-->', '', $smt[1]);
    
$smt[1]=str_replace('<span class="block">', '', $smt[1]);
    
$smt[1]=str_replace('</span>', '', $smt[1]);
    
$smt[1]=str_replace('/site/download/video/', ''.HOME.'get/', $smt[1]);
    
$smt[1] = preg_replace('#<a href="http://idwl.*">#siU', '', $smt[1]);
    
    
    
##############################    
    
  
preg_match_all('|<div class="img">(.*)<a href="(.*)"><img src="(.*)"/>(.*)</a>(.*)</div>(.*)<div class="info">(.*)<div class="title">(.*)<a href="(.*)">(.*)</a>(.*)</div>(.*)<div class="extrainfo">(.*)</div>|Us', $res, $down);

if(
CACHIMG == 1) {
$down[3]=str_replace('http://img.titstube.t', ''.HOME.'scr1/', $down[3]);
$down[3]=str_replace('http://img.faptv.ne', ''.HOME.'scr1/', $down[3]);}
$down[2]=str_replace('/site/download/video/', ''.HOME.'get/', $down[2]);
$down[9]=str_replace('/video/', ''.HOME.'download/', $down[9]);   
##############################Страница
$out .='<title>'.$titless[1].'</title>';
$out .= DIVfon.$img[1].'</div>'.DIVfon.''.$tit[1].'<br/>'.DIVfon.'Описание видео: '.$info[1].'<br />Скачай это видео в 3gp или mp4 (+HD) формате или посмотри онлайн с телефона: <br/> Продолжительность видеоролика: '.$time[1].'<br/>'.$jan[1].'</div>';
if (!empty(
$smt[1][0])){
for (
$i = 1; $i < count($smt[1]); $i++) {
$out .= ''.DIVfon.''.$smt[1][$i].'</div>';
} }
else
{ 
$out .= 'Ошибка'; }
##############################
$out .= ''.DIVlink.'Похожее видео</div>';
if (!empty(
$down[1][0])){
$count = count($down[1]);
$i = 1;
while (
$i < $count){
$out .= ''.DIVtitle.''.$down[10][$i].'</div>
'
.DIVfon.'<img src="'.$down[3][$i].'"/></div>
'
.DIVfon.'<a href="'.$down[9][$i].'">Посмотреть 3gp/mp4</a> | <a href="'.$down[2][$i].'"> Скачать HD mp4</a> | Время: '.$down[13][$i].'</div>';
$i++;
}}
else
{ 
$out .= 'Ошибка'; }
##############################

if(CACH == 1) {
$file = fopen($cachfile,'w'); 
fputs($file, $out); 
fclose($file);
}}
$out = preg_replace('#<title>(.*)</title>#siU', '', $out);
##############################
$titles = 'Скачать порно 3gp/mp4/HD: '.$titless[1].' бесплатно!';
include(
'./system/head.php');
include(
'./system/bar.php');
echo 
$out;
include(
'./system/foot.php');
?>
Онлайн: 1
Реклама