Вход Регистрация
Файл: public_html/dir.php
Строк: 54
<?
include 'inc/config.php';
$ch=curl_init();
curl_setopt($chCURLOPT_URL'http://m.extremetube.com/category/show/name/'.$_GET['dir']);
curl_setopt($chCURLOPT_USERAGENT'Opera mini 4.3');
curl_setopt($chCURLOPT_REFERER'http://extremetube.com');
curl_setopt($chCURLOPT_RETURNTRANSFERtrue);
$file=curl_exec($ch);
curl_close($ch);
$file=preg_replace('#<div class="lbtn left link_off">(.*)</div>#sU',$div_str.'&laquo; Prev'.$end_str,$file);
$file=preg_replace('#<div class="rbtn right link_off">(.*)</div>#sU',$div_str.'Next &raquo;'.$end_str,$file);
preg_match_all('#<h1>(.*)</h1>#sU',$file,$tit);
preg_match_all('#<div class="thumb" style="background: url((.*))(.*)<h2>(.*)href="/video/show/title/(.*)">(.*)</a>#sU',$file,$zek);
preg_match_all('#'.$div_str.'&laquo; Prev'.$end_str.'#sU',$file,$str_p);
preg_match_all('#'.$div_str.'Next &raquo;'.$end_str.'#sU',$file,$str_n);
preg_match_all('#<div class="lbtn left(.*)<a href="/category/show/name/(.*)"(.*)>(.*)</div>#sU',$file,$nav_p);
preg_match_all('#<div class="rbtn right(.*)<a href="/category/show/name/(.*)"(.*)>(.*)</div>#sU',$file,$nav_n);
$title=$tit['1']['0'];
include 
'inc/head.php';
if (!empty(
$zek['1']['0']) && !empty($zek['4']['0']) && !empty($zek['5']['0'])){
for (
$i=0$i<count($zek['5']); $i++){
if (!
file_exists($root.'screen/'.name($zek['4'][$i]).'.'.ext($zek['1'][$i]))){
copy($zek['1'][$i], $root.'screen/'.name($zek['4'][$i]).'.'.ext($zek['1'][$i]));
}
echo 
$div_link.'<a href="'.$path.'video/'.$zek['4'][''.$i.''].'"><img src="'.$path.'screen/'.name($zek['4'][$i]).'.'.ext($zek['1'][$i]).'" alt="'.$zek['5'][''.$i.''].'"><br/><h2>'.$zek['5'][''.$i.''].'</h2></a>'.$end_title;
}
if (!empty(
$str_p['0']['0'])){
$navig_left=$str_p['0']['0'];
}else{
$navig_left='<a href="'.$path.'directory/'.$nav_p['2']['0'].'">&laquo; Prev</a>';
}
if (!empty(
$str_n['0']['0'])){
$navig_right=$str_n['0']['0'];
}else{
$navig_right='<a href="'.$path.'directory/'.$nav_n['2']['0'].'">Next &raquo;</a>';
}
if (
count($zek['5']) >= 8){
echo 
$div_navig.''.$navig_left.''.$navig_right.''.$end_navig;
}
}else{
echo 
$div_error.'Error. Page does not exists'.$end_error;
}
include 
'inc/foot.php';
?>
Онлайн: 0
Реклама