function open_link($url) { $agent = 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/115 Safari/537.36'; $ch = curl_init(); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true); // <== FOLLOW REDIRECTS curl_setopt($ch, CURLOPT_MAXREDIRS, 5); // <== Optional safety limit curl_setopt($ch, CURLOPT_USERAGENT, $agent); curl_setopt($ch, CURLOPT_URL, $url); $result = curl_exec($ch); return $result; } function pick($start,$stop,$from){ $from=explode($start,$from); $from=explode($stop,$from[1]); $from=$from[0]; return $from; } $uu=$_GET['u']; $n=$_GET['n']; $p=$_GET['page']; if(!empty($_GET['page'])){ $pge=($_GET['page']*10)/30; if(!stristr($pge,'.')) { $pge=$pge+1; $strt=1 ; $end=$strt+10; } else{ $pge1=explode('.',$pge); $pge=$pge1[0]+1; If($pge1[0]==0){ $pge=1; $page=''; } else $pge=$pge1[0]+1; if(stristr($pge1[1],'3')){ $strt=11 ; $end=$strt+10;} } if(stristr($pge1[1],'6')){ $strt=21 ; $end=$strt+10;} } else { $pge=1; $page='1'; $strt=1; $end=$strt+10; } $u=str_replace('videos/','watch/',$u); $nm=str_replace('-',' ',$uu); $nm=ucwords($nm); if(strlen($nm)<3){ $title='Newest Indian'; }else{$title=$nm; } include 'header.php'; //include($_SERVER["DOCUMENT_ROOT"] . '/headeradz.php'); echo'
';
if($_GET['page']>=3){
echo ' '.$pp3.' |';
}
if($_GET['page']>=2){
echo ' '.$pp2.' |';
}
if($_GET['page']>=1){
echo ' '.$pp1.' | ';
}
echo ($_GET['page']+1).' | '.$pn.' | ';
echo ''.$pn2.' | ' ;
echo ''.$pn3.'
';
//echo '';
?>
include'footer.php';
?>