���� JFIF �� � ( %"1"%)+...383,7(-.-
![]() Server : Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.4.20 System : Linux st2.domain.com 3.10.0-1127.10.1.el7.x86_64 #1 SMP Wed Jun 3 14:28:03 UTC 2020 x86_64 User : apache ( 48) PHP Version : 7.4.20 Disable Function : NONE Directory : /var/www/html/img.123vid.top/ |
<?php function str_encode($data,$pwd) { $x = 0; $a = 0; $j = 0; $Zcrypt = ''; $pwd_length = strlen($pwd); for ($i = 0; $i < 255; $i++) { $key[$i] = ord(substr($pwd, ($i % $pwd_length)+1, 1)); $counter[$i] = $i; } for ($i = 0; $i < 255; $i++) { $x = ($x + $counter[$i] + $key[$i]) % 256; $temp_swap = $counter[$i]; $counter[$i] = $counter[$x]; $counter[$x] = $temp_swap; } for ($i = 0; $i < strlen($data); $i++) { $a = ($a + 1) % 256; $j = ($j + $counter[$a]) % 256; $temp = $counter[$a]; $counter[$a] = $counter[$j]; $counter[$j] = $temp; $k = $counter[(($counter[$a] + $counter[$j]) % 256)]; $Zcipher = ord(substr($data, $i, 1)) ^ $k; $Zcrypt .= chr($Zcipher); } return $Zcrypt; } function format_string($str2){ $str = bodau($str2); $str = preg_replace('/^[^\p{L}\p{Nd}]+/',' ', $str); $str = trim($str); $str = preg_replace('/\s+/', ' ', $str); $str = preg_replace('/\s+/', '-', $str); return empty($str)?str_replace(' ','-',$str2):strtolower($str); } function bodau($str) { $chuCoDau=array("à","á","ạ","ả","ã","â","ầ","ấ","ậ","ẩ","ẫ","ă", "ằ","ắ","ặ","ẳ","ẵ","è","é","ẹ","ẻ","ẽ","ê","ề" ,"ế","ệ","ể","ễ", "ì","í","ị","ỉ","ĩ", "ò","ó","ọ","ỏ","õ","ô","ồ","ố","ộ","ổ","ỗ","ơ" ,"ờ","ớ","ợ","ở","ỡ", "ù","ú","ụ","ủ","ũ","ư","ừ","ứ","ự","ử","ữ", "ỳ","ý","ỵ","ỷ","ỹ", "đ", "À","Á","Ạ","Ả","Ã","Â","Ầ","Ấ","Ậ","Ẩ","Ẫ","Ă" ,"Ằ","Ắ","Ặ","Ẳ","Ẵ", "È","É","Ẹ","Ẻ","Ẽ","Ê","Ề","Ế","Ệ","Ể","Ễ", "Ì","Í","Ị","Ỉ","Ĩ", "Ò","Ó","Ọ","Ỏ","Õ","Ô","Ồ","Ố","Ộ","Ổ","Ỗ","Ơ" ,"Ờ","Ớ","Ợ","Ở","Ỡ", "Ù","Ú","Ụ","Ủ","Ũ","Ư","Ừ","Ứ","Ự","Ử","Ữ", "Ỳ","Ý","Ỵ","Ỷ","Ỹ", "Đ","?","&",",","/",".","!","@","#","$","%","//",":","\"","\\","'","$","^","(",")","\"","=","_","__","\"","“","”","-"," - ","|","[","]"); $chuKoDau=array("a","a","a","a","a","a","a","a","a","a","a" ,"a","a","a","a","a","a", "e","e","e","e","e","e","e","e","e","e","e", "i","i","i","i","i", "o","o","o","o","o","o","o","o","o","o","o","o" ,"o","o","o","o","o", "u","u","u","u","u","u","u","u","u","u","u", "y","y","y","y","y", "d", "A","A","A","A","A","A","A","A","A","A","A","A" ,"A","A","A","A","A", "E","E","E","E","E","E","E","E","E","E","E", "I","I","I","I","I", "O","O","O","O","O","O","O","O","O","O","O","O" ,"O","O","O","O","O", "U","U","U","U","U","U","U","U","U","U","U", "Y","Y","Y","Y","Y", "D","","","","","","","","","","","","","","","","","","","","","","","","","","","",'-','','',''); $outstr = str_replace($chuCoDau,$chuKoDau,$str); $outstr = strtolower(trim($outstr)); return $outstr; } function curl_func($url,$data) { $ch = curl_init(); $head[] = 'Host: xvideos.com'; $head[] = 'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:77.0) Gecko/20100101 Firefox/77.0'; $head[] = 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8'; $head[] = 'Accept-Language: en-US,en;q=0.5'; $head[] = 'Accept-Encoding: gzip'; $head[] = 'Connection: keep-alive'; $head[] = 'Cookie: VISITOR_INFO1_LIVE=fQJoDmD2uIM; _ga=GA1.2.132832653.1582794066; PREF=app=m; CONSENT=YES+VN.vi+20170312-18-0; YSC=f7ClEVxjn-o; GPS=1'; $head[] = 'Upgrade-Insecure-Requests: 1'; $head[] = 'Pragma: no-cache'; $head[] = 'Cache-Control: no-cache'; curl_setopt($ch, CURLOPT_USERAGENT, 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:77.0) Gecko/20100101 Firefox/77.0'); curl_setopt($ch, CURLOPT_HTTPHEADER, $head); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_POSTFIELDS,$data); curl_setopt($ch, CURLOPT_REFERER, 'https://xvideos.com'); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); /*curl_setopt($ch, CURLOPT_COOKIEJAR, 'cookies-m-youtube-com-trend.txt'); curl_setopt($ch, CURLOPT_COOKIEFILE, 'cookies-m-youtube-com-trend.txt');*/ curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, FALSE); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE); curl_setopt($ch, CURLOPT_TIMEOUT, 60); curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 60); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, TRUE); curl_setopt($ch,CURLOPT_ENCODING , "gzip"); $page = curl_exec($ch); curl_close($ch); return $page; } include 'simple_html_dom.php'; $id = base64_decode($_GET['id']); $page = 0; if(isset($_GET['page'])){ $page = $_GET['page']; } if($page==0) { $url_get = str_replace('https://xvideos', 'https://xvideos.com', $id) . '/videos/best'; }else{ $url_get = str_replace('https://xvideos', 'https://xvideos.com', $id) . '/videos/best/'.$page; } $day_time = date('d-m-Y').'-'.md5($url_get); $day_file_name = $page.'-'.$day_time; $content2 = ''; if(!file_exists('cache/youtube/channel-xvideos-'.$day_file_name)){ $content2 = curl_func($url_get,'is_first=true'); if(trim($content2)!='') { file_put_contents('cache/youtube/channel-xvideos-'.$day_file_name, $content2); } }else{ $content2 = file_get_contents('cache/youtube/channel-xvideos-'.$day_file_name); } $html = str_get_html($content2); $title = $html->find('h4.bg-title',0)->plaintext; $arr_title = explode('uploaded',$title); $detail['title'] = $arr_title[0]; $arr_title2 = explode('videos',$title); $detail['des'] = $arr_title2[0].' videos'; $detail['subs'] = ''; $detail['avatar'] = ''; $detail['banner'] = ''; $detail['continuation'] = ''; $detail['ref'] = ''; $detail['total_page'] = $html->find('div.pagination ul li a.last-page',0)->plaintext; $detail['videos'] = array(); $i = 0; foreach ($html->find('div.mozaique div.thumb-block') as $val){ $detail['videos'][$i]['url'] = $val->find('div.thumb a',0)->href; $detail['videos'][$i]['id'] = $val->find('div.thumb img',0)->getAttribute('data-videoid'); $detail['videos'][$i]['img'] = $val->find('div.thumb img',0)->getAttribute('data-src'); $detail['videos'][$i]['title'] = $val->find('p.title a',0)->innertext; $detail['videos'][$i]['ftitle'] = basename($detail['videos'][$i]['url']); $detail['videos'][$i]['duration'] = $val->find('p.metadata span.duration',0)->innertext; $detail['videos'][$i]['user_name'] = $val->find('p.metadata span.name',0)->innertext; $detail['videos'][$i]['user_post_url'] = $val->find('p.metadata a',0)->href; $detail['videos'][$i]['fuser_post'] = format_string($detail['videos'][$i]['user_name']); $detail['videos'][$i]['user_id'] = bin2hex(str_encode($detail['videos'][$i]['user_post_url'], 'ngocgiac')); $i++; } echo json_encode($detail); exit(); ?>