Файл: index.php
Строк: 122
<?
/*
Автор: ЗэК (ZeK)
E-mail: otwap.ru@bk.ru
icq: 10361141
*/
include 'inc/function.php';
switch($_GET['zek']){
default:
$title='Порно';
include 'inc/head.php';
echo '<div class="'.$div_info.'"><a href="'.$site.'photo">Эро фото</a> | <a href="'.$site.'video">Горячее видео</a> | <a href="'.$site.'story">Рассказы</a></div>
<div class="'.$div_title.'">Новые видео:</div>';
$zek=zek('http://4ik.tv');
preg_match_all('#<img src="/files/video/(.*)"(.*)>(.*)<a href="/video?dir=(.*)">(.*)</a>#sU',$zek,$out);
for($i=0; $i<count($out[4]); $i++){
echo '<div class="'.$div_link.'"><a href="'.$site.'view/video/'.$out[4][$i].'"><img src="'.$site.'files/video/'.$out[1][$i].'"> '.trim($out[5][$i]).'</a></div>';
}
break;
case 'photo':
$title='Эро фото';
include 'inc/head.php';
echo '<div class="'.$div_title.'">'.$title.'</div>';
$zek=zek('http://4ik.tv/foto');
preg_match_all('#<a href="/foto?cat=(.*)">(.*)</a>#sU',$zek,$out);
for($i=0; $i<count($out[1]); $i++){
echo '<div class="'.$div_link.'"><a href="'.$site.'photo/'.$out[1][$i].'"><img src="'.$site.'ico/icon.png"> '.trim($out[2][$i]).'</a></div>';
}
break;
case 'video':
$title='Горячее видео';
include 'inc/head.php';
echo '<div class="'.$div_title.'">'.$title.'</div>';
$zek=zek('http://4ik.tv/video');
preg_match_all('#<a href="/video?cat=(.*)">(.*)</a>#sU',$zek,$out);
for($i=0; $i<count($out[1]); $i++){
echo '<div class="'.$div_link.'"><a href="'.$site.'video/'.$out[1][$i].'"><img src="'.$site.'ico/icon.png"> '.trim($out[2][$i]).'</a></div>';
}
break;
case 'story':
$title='Рассказы';
include 'inc/head.php';
echo '<div class="'.$div_title.'">'.$title.'</div>';
$zek=zek('http://4ik.tv/story');
preg_match_all('#<a href="/story?cat=(.*)">(.*)</a>#sU',$zek,$out);
for($i=0; $i<count($out[1]); $i++){
echo '<div class="'.$div_link.'"><a href="'.$site.'story/'.$out[1][$i].'"><img src="'.$site.'ico/icon.png"> '.trim($out[2][$i]).'</a></div>';
}
break;
case 'cat_photo':
if (empty($page) || $page < 1) $page=1;
$zek=zek('http://4ik.tv/foto?cat='.$name.''.(isset($_GET['page'])?'&page='.$page:''));
preg_match('#<div class="navi">(.*)<a href="/foto">(.*)</a>(/|)(.*)</div>#sU',$zek,$tit);
$title='Эро фото | '.trim($tit[4]);
include 'inc/head.php';
echo '<div class="'.$div_title.'"><a href="'.$site.'">Главная</a> | <a href="'.$site.'photo">Эро фото</a> | <b>'.trim($tit[4]).'</b></div>';
preg_match_all('#<img src="/files/foto/(.*)"(.*)>(.*)<a href="/foto?dir=(.*)">(.*)</a>#sU',$zek,$out);
for($i=0; $i<count($out[4]); $i++){
echo '<div class="'.$div_link.'"><a href="'.$site.'view/photo/'.$out[4][$i].'"><img src="'.$site.'files/foto/'.$out[1][$i].'"> '.trim($out[5][$i]).'</a></div>';
}
preg_match_all('#<a href="/foto?cat=(.*)page=([0-9]+)">([0-9]+)</a>#sU',$zek,$pg);
navigator($page, intval($pg[2][(count($pg[2])-1)]), $site.'photo/'.$name.'/');
if (empty($tit[4])){
header('Location: '.$site);
exit;
}
break;
case 'cat_video':
if (empty($page) || $page < 1) $page=1;
$zek=zek('http://4ik.tv/video?cat='.$name.''.(isset($_GET['page'])?'&page='.$page:''));
preg_match('#<div class="navi">(.*)<a href="/video">(.*)</a>(/|)(.*)</div>#sU',$zek,$tit);
$title='Горячее видео | '.trim($tit[4]);
include 'inc/head.php';
echo '<div class="'.$div_title.'"><a href="'.$site.'">Главная</a> | <a href="'.$site.'video">Горячее видео</a> | <b>'.trim($tit[4]).'</b></div>';
preg_match_all('#<img src="/files/video/(.*)"(.*)>(.*)<a href="/video?dir=(.*)">(.*)</a>#sU',$zek,$out);
for($i=0; $i<count($out[4]); $i++){
echo '<div class="'.$div_link.'"><a href="'.$site.'view/video/'.$out[4][$i].'"><img src="'.$site.'files/video/'.$out[1][$i].'"> '.trim($out[5][$i]).'</a></div>';
}
preg_match_all('#<a href="/video?cat=(.*)page=([0-9]+)">([0-9]+)</a>#sU',$zek,$pg);
navigator($page, intval($pg[2][(count($pg[2])-1)]), $site.'video/'.$name.'/');
if (empty($tit[4])){
header('Location: '.$site);
exit;
}
break;
case 'cat_story':
if (empty($page) || $page < 1) $page=1;
$zek=zek('http://4ik.tv/story?cat='.$name.''.(isset($_GET['page'])?'&page='.$page:''));
$title='Рассказы';
include 'inc/head.php';
echo '<div class="'.$div_title.'"><a href="'.$site.'">Главная</a> | <a href="'.$site.'story">Рассказы</a></div>';
preg_match_all('#<a href="/story?read=(.*)">(.*)</a>#sU',$zek,$out);
for($i=0; $i<count($out[1]); $i++){
echo '<div class="'.$div_link.'"><a href="'.$site.'view/story/'.$out[1][$i].'"><img src="'.$site.'ico/text.png"> '.trim($out[2][$i]).'</a></div>';
}
preg_match_all('#<a href="/story?cat=(.*)page=([0-9]+)">([0-9]+)</a>#sU',$zek,$pg);
navigator($page, intval($pg[2][(count($pg[2])-1)]), $site.'story/'.$name.'/');
if (empty($out[1][0])){
header('Location: '.$site);
exit;
}
break;
case 'view_story':
$zek=zek('http://4ik.tv/story?read='.$name);
preg_match('#<div class="content">(.*)Название:(.*)<br#sU',$zek,$tit);
$title='Рассказы | '.trim($tit[2]);
include 'inc/head.php';
echo '<div class="'.$div_title.'"><a href="'.$site.'">Главная</a> | <a href="'.$site.'story">Рассказы</a> | <b>'.trim($tit[2]).'</b></div>';
preg_match('#<div class="content">(.*)</div>#sU',$zek,$out);
$out[1]=preg_replace('#href="/story?cat=([0-9]+)"#sU','href="'.$site.'story/1"',$out[1]);
echo '<div class="'.$div_info.'">'.trim($out[1]).'</div>';
if (empty($out[1])){
header('Location: '.$site);
exit;
}
break;
case 'view_photo':
$title='Эро фото';
include 'inc/head.php';
if (empty($page) || $page < 1) $page=1;
$zek=zek('http://4ik.tv/foto?dir='.$name.''.(isset($_GET['page'])?'&page='.$page:''));
preg_match('#<div class="navi">(.*)<a href="/foto?cat=(.*)">(.*)</a>#sU',$zek,$c);
echo '<div class="'.$div_title.'"><a href="'.$site.'">Главная</a> | <a href="'.$site.'photo">Эро фото</a> | <a href="'.$site.'photo/'.trim($c[2]).'">'.trim($c[3]).'</a></div>';
preg_match_all('#<img src="/files/foto/(.*)"(.*)<a href="/files/foto/(.*)">(.*)</a>#sU',$zek,$out);
for($i=0; $i<count($out[3]); $i++){
echo '<div class="'.$div_link.'"><a href="'.$site.'files/foto/'.$out[3][$i].'"><img src="'.$site.'files/foto/'.$out[1][$i].'"> Скачать</a></div>';
}
preg_match_all('#<a href="/foto?dir=(.*)page=([0-9]+)">([0-9]+)</a>#sU',$zek,$pg);
navigator($page, intval($pg[2][(count($pg[2])-1)]), $site.'view/photo/'.$name.'/');
if (empty($out[1][0])){
header('Location: '.$site);
exit;
}
break;
case 'view_video':
if (empty($page) || $page < 1) $page=1;
$zek=zek('http://4ik.tv/video?dir='.$name.''.(isset($_GET['page'])?'&s='.$page:''));
preg_match('#<div class="navi">(.*)<a href="/video?cat=(.*)">(.*)</a>#sU',$zek,$c);
preg_match('#<div class="content_text">(.*)Название:(.*)<br#sU',$zek,$tit);
$title='Горячее видео | '.trim($tit[2]);
include 'inc/head.php';
echo '<div class="'.$div_title.'"><a href="'.$site.'">Главная</a> | <a href="'.$site.'video">Горячее видео</a> | <a href="'.$site.'video/'.trim($c[2]).'">'.trim($c[3]).'</a> | <b>'.trim($tit[2]).'</b></div>';
preg_match('#<img src="/files/video/(.*)"#sU',$zek,$scr);
preg_match('#>Описание:(.*)<br#sU',$zek,$opis);
preg_match('#>Продолжительность:(.*)<br#sU',$zek,$tim);
echo '<div class="'.$div_info.'"><img src="'.$site.'files/video/'.$scr[1].'" alt="'.trim($tit[2]).'"><br/><b>Скрины:</b> ';
for($s=1; $s<=3; $s++){
echo ($page == $s?'<b>['.$s.']</b> ':'<a href="'.$site.'/view/video/'.$name.'/'.$s.'">['.$s.']</a> ');
}
echo '<br/><b>Название:</b> '.trim($tit[2]).'<br/>'.(!empty($opis[1])?'<b>Описание:</b> '.trim($opis[1]).'<br/>':'').''.(!empty($tim[1])?'<b>Продолжительность:</b> '.trim($tim[1]):'').'</div>';
preg_match('#<a href="/video?online=(.*)">(.*)</a>#sU',$zek,$on);
if (!empty($on[1])){
echo '<div class="'.$div_link.'"><a href="'.$site.'online/'.$on[1].'">Смотреть онлайн</a></div>';
}
preg_match_all('#<a href="/video?load=(.*)&(.*)file=(.*)">(.*)</a>(.*)<#sU',$zek,$dwn);
for($i=0; $i<count($dwn[1]); $i++){
echo '<div class="'.$div_link.'"><a href="'.$site.'download/'.$dwn[1][$i].'/'.$copy.'_'.$dwn[3][$i].'">'.trim($dwn[4][$i]).' '.trim($dwn[5][$i]).'</a></div>';
}
if (empty($dwn[1][0])){
header('Location: '.$site);
exit;
}
break;
case 'online':
$title='Онлайн просмотр видео';
include 'inc/head.php';
echo '<div class="'.$div_title.'"><a href="'.$site.'">Главная</a> | <a href="'.$site.'video">Видео</a> | <a href="'.$site.'view/video/'.$name.'"> Вернуться</a></div>';
$zek=zek('http://4ik.tv/video?online='.$name);
preg_match('#<video poster="/files/video/(.*)"(.*)<source src="/files/video_load/(.*)/(.*)" type='(.*)'#sU',$zek,$out);
echo '<div class="'.$div_info.'"><video poster="'.$site.'/files/video/'.$out[1].'" width="480" height="360" controls><source src="'.$site.'download/'.$out[3].'/'.$copy.'_'.$out[4].'" type=''.$out[5].''></video></div>';
if (empty($out[3])){
header('Location: '.$site);
exit;
}
break;
}
include 'inc/foot.php';
?>