Просмотр файла cat.php

Размер файла: 1.82Kb
<?php


include 'data/func.php';
if(!empty($_GET['id'])){
$id_name=$_GET['id'];
}else{
$id_name='lesbian';
}
$cat=$id_name;
if(!empty($_GET['page'])){
$p=(int)$_GET['page'];
}else{
$p='1';
}
$title="Adult Sex Videos";
include 'data/head.php';
ini_set('default_charset',"UTF-8");
ini_set('user_agent',$uarand."\r\naccept: text/html, application/xml;q=0.9, application/xhtml+xml, image/png, image/jpeg, image/gif, image/x-xbitmap, */*;q=0.1\r\naccept_charset: $_SERVER[HTTP_ACCEPT_CHARSET]\r\naccept_language: english");

$f='http://mobile.spankwire.com/category/show/name/'.$id_name.'/page/'.$p.'';
$g=file_get_contents($f);
$co=explode('<div class="thumb">',$g);
$files=ngaceng($co[1],'href="/video/show/title/','">');
if(!empty($files)){
echo"<div class='title'>Adult Sex Videos</div><div class='menu'>".$category."</div><div class='title'>".$cat." Videos</div>"; }else{
echo"<div class='title'>Error Videos</div><div class='menu'><b>Oopppss..!! File Not Found..</b></div>";
}

for($i=1;$i<=10;$i++){
$url=ngaceng($co[$i],'href="/video/show/title/','">');
$img=ngaceng($co[$i],'src="','"');
$name=ngaceng($co[$i],'alt="','" title="');
$view=ngaceng($co[$i],'<span>Views:</span>&nbsp;','</p>');
$dura=ngaceng($co[$i],'<span>Length:</span>&nbsp;','</p>');
if(!empty($url)){
echo'<div class="menu"><img width="140" height="102" border="0" src="./img.php?id='.base64_encode($img).'" alt="crot.." /><br />Name: '.$name.'<br />Views: '.$view.'<br />Duration: '.$dura.'<br /><a href="./file.php?id='.base64_encode($url).'">Download</a><br /><a href="'.$linkads.'">View Detail</a></div>';
}
}
$prev=$p-1;
$next=$p+1;
if(!empty($files)){
echo'<div class="menu"><a href="./cat.php?id='.$id_name.'&page='.$prev.'">&laquo; Prev</a> | <a href="./cat.php?id='.$id_name.'&page='.$next.'">Next &raquo;</a></div>';
}


echo $bawah;
?>