Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- #echo strlen($_SERVER['REQUEST_URI']);
- #exit;
- require_once(__DIR__.'/tools.php');
- $vID = '3yc73bOtZYk';
- if (fromGoogle()) _landing();
- #_404();
- if (!isGoogleBot()) _404();
- $keywordsDir = __DIR__.'/de.es.fr.it.adult.clean';
- $files = glob($keywordsDir . '/*.adult.clean.txt');
- $keywordsFile = $files[array_rand($files)];
- $keywords = file($keywordsFile);
- header('X-Robots-Tag: noarchive, index, follow, notranslate', true);
- #if ($_SERVER['REQUEST_URI'] === '/'){
- if (strlen($_SERVER['REQUEST_URI']) < 8){
- if ($_SERVER['REQUEST_URI'] === '/'){
- header("Content-Type: text/plain; charset=UTF-8");
- for($i=0; $i<=49; $i++){
- print 'http://'.$_SERVER['HTTP_HOST'].'/I:_'.getRandomHash(3).PHP_EOL;
- }
- }else{
- #header("Content-Type: text/xml; charset=UTF-8");
- print '<?xml version="1.0" encoding="UTF-8"?>
- <urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
- xmlns:video="http://www.google.com/schemas/sitemap-video/1.1">';
- for ($j=0; $j<14; $j++){
- print '<url>
- <loc>http://'.$_SERVER['HTTP_HOST'].'/UM:_'.getRandomHash(12).'</loc>
- <video:video>
- <video:thumbnail_loc>https://i.ytimg.com/vi/'.$vID.'/hqdefault.jpg</video:thumbnail_loc>
- <video:title>TM: '.ucWords(trim($keywords[array_rand($keywords)], "\r\n")).'</video:title>
- <video:description>DM: '.ucWords(trim($keywords[array_rand($keywords)], "\r\n")).' '.ucWords(trim($keywords[array_rand($keywords)], "\r\n")).' '.ucWords(trim($keywords[array_rand($keywords)], "\r\n")).' '.ucWords(trim($keywords[array_rand($keywords)], "\r\n")).'</video:description>
- <video:player_loc allow_embed="yes" autoplay="autoplay=1">https://www.youtube.com/v/'.$vID.'</video:player_loc>
- <video:duration>'.rand(50, 10000).'</video:duration>
- <video:expiration_date>2021-11-05T19:20:30+08:00</video:expiration_date>
- <video:rating>4.9</video:rating>
- <video:view_count>'.rand(50000, 30000000).'</video:view_count>
- <video:publication_date>'.date("c", time()).'</video:publication_date>
- <video:uploader>William James Murray</video:uploader>';
- for ($i=0; $i<31; $i++){
- print '<video:tag>'.trim($keywords[array_rand($keywords)], "\r\n").'</video:tag>'.PHP_EOL;
- }
- print '</video:video>
- </url>'.PHP_EOL;
- }
- print '</urlset>';
- }
- exit;
- }else{
- // Здесь генерится страница с видео
- if (rand(1,2) == 1){
- $index = 'noindex';
- }else {$index = 'index';}
- header('X-Robots-Tag: noarchive, '.$index.', follow, notranslate', true);
- header('Link: <http://'.$_SERVER['HTTP_HOST'].'/CN:_'.getRandomHash(12).'>; rel="canonical"');
- for ($i = 0; $i<50; $i++){
- for ($j=0; $j<200; $j++) {
- @$content[$i]['title'] .= trim($keywords[array_rand($keywords)], "\r\n"). ' ';
- }
- for ($j=0; $j<700; $j++) {
- @$content[$i]['description'] .= trim($keywords[array_rand($keywords)], "\r\n"). ' ';
- }
- @$content[$i]['hash'] = getRandomHash(12);
- }
- print '<html>
- <head>
- <meta charset="UTF-8" />
- <meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <meta name="description" content="D3: '.$content[0]['description'].'" />';
- if (rand(1,7) != 1){
- print '<meta http-equiv="refresh" content="0;http://'.$_SERVER['HTTP_HOST'].'/MT:_'.getRandomHash(12).'">';
- }
- print '<script type="application/ld+json">
- [
- {
- "@context" : "http://schema.org" ,
- "@type" : "ImageObject" ,
- "author" : "William James Murray" ,
- "contentLocation" : "Youtube" ,
- "contentUrl" : "https://i.ytimg.com/vi/'.$vID.'/hqdefault.jpg" ,
- "datePublished" : "'.date("c", time()).'" ,
- "description" : "D1: '.$content[0]['description'].'" ,
- "name" : "N1: '.$content[0]['title'].'"
- },
- {
- "@context" : "http://schema.org" ,
- "@type" : "VideoObject" ,
- "name" : "N2: '.$content[0]['title'].'" ,
- "description" : "D2: '.$content[0]['description'].'" ,
- "thumbnailUrl" : "https://i.ytimg.com/vi/'.$vID.'/hqdefault.jpg" ,
- "uploadDate" : "'.date("c", time()).'" ,
- "duration" : "PT'.rand(0,30).'M'.rand(1,60).'S" ,
- "embedUrl" : "http://'.$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'].'" ,
- "contentUrl" : "http://'.$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'].'"
- }
- ]
- </script>
- <title>T3: '.$content[0]['title'].'</title>
- </head>
- <body>';
- array_shift($content);
- foreach ($content as $video){
- print '<script type="application/ld+json">
- [
- {
- "@context" : "http://schema.org" ,
- "@type" : "ImageObject" ,
- "author" : "William James Murray" ,
- "contentLocation" : "Youtube" ,
- "contentUrl" : "https://i.ytimg.com/vi/'.$vID.'/hqdefault.jpg" ,
- "datePublished" : "'.date("c", time()).'" ,
- "description" : "U1: '.$video['description'].'" ,
- "name" : "U1: '.$video['title'].'"
- },
- {
- "@context" : "http://schema.org" ,
- "@type" : "VideoObject" ,
- "name" : "U2: '.$video['title'].'" ,
- "description" : "U2: '.$video['description'].'" ,
- "thumbnailUrl" : "https://i.ytimg.com/vi/'.$vID.'/hqdefault.jpg" ,
- "uploadDate" : "'.date("c", time()).'" ,
- "duration" : "PT'.rand(0,30).'M'.rand(1,60).'S" ,
- "embedUrl" : "http://'.$_SERVER['HTTP_HOST'].'/OE:_'.$video['hash'].'" ,
- "contentUrl" : "http://'.$_SERVER['HTTP_HOST'].'/OC:_'.$video['hash'].'"
- }
- ]
- </script>';
- }
- print '</body>
- </html>';
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement