Файловый менеджер - Редактировать - /var/www/fetish/video.php
Назад
<?php require('core/init.php'); use \fetish\chat; use \fetish\db; use \fetish\scrape; use \fetish\auth; /*$video = db::query("SELECT id, title, views, uri, premium, date_created, source_video, source_thumb, (SELECT COUNT(1) FROM likes WHERE video_id = videos.id AND type = 1) as rate_up, (SELECT COUNT(1) FROM likes WHERE video_id = videos.id AND type = 0) as rate_down FROM videos WHERE uri = ? AND active = 1",[$_GET['uri']])->first();*/ $video = db::query("SELECT id, title, views, url_embed, url_thumbnail, duration, date_created, (SELECT COUNT(1) FROM likes WHERE video_id = shittytube.id AND type = 1) as rate_up, (SELECT COUNT(1) FROM likes WHERE video_id = shittytube.id AND type = 0) as rate_down FROM shittytube WHERE uri = ? AND active = 1",[$_GET['uri']])->first(); if(!$video){ header("HTTP/1.0 404 Not Found"); header("location: /404"); die(); } if($video->premium){ //Check if the user is logged in if(auth::isLoggedIn()){ $user = db::query("SELECT * FROM users WHERE auth_token = ?",[$_COOKIE['auth_token']])->first(); //Check if the user is subscribed if(!isset($user->date_premium) || $user->date_premium < date('Y-m-d H:i:s')){ //Show the purchase screen header("location: /auth/subscribe?location=".$_SERVER['REQUEST_URI']); die(''); } }else{ header("location: /auth/login?location=".$_SERVER['REQUEST_URI']); die(); } } //Add one view db::query("UPDATE shittytube SET views = views + 1 WHERE id = ?",[$video->id]); /*$scrape = new scrape(); $scrape->url = $video->source_uri; $scrape->source = $video->source; $scrape->video = $video->source_video; $scrape_url = $scrape->fetchVideo();*/ $percent = ($video->rate_up / ($video->rate_up + $video->rate_down)) * 100; ?> <html> <head> <meta name="trafficjunky-site-verification" content="v6t93s42t" /> <meta name="viewport" content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1, width=device-width, height=device-height, target-densitydpi=device-dpi, viewport-fit=cover" /> <title><?=$video->title?> | PooFetish</title> <meta name="keywords" content="scat porn, girls pooping, lesbian scat, poofetish, shitting in mouth"/> <meta name="description" content="The place to go for all your scat porn videos. 1000's of free scat videos. No signup required, just watch free videos of girls pooping."/> <meta name="apple-mobile-web-app-capable" content="yes" /> <link rel="apple-touch-icon" sizes="114×114" href="/assets/img/icons/touch-icon-114×114.png" /> <link rel="apple-touch-icon" sizes="72×72" href="/assets/img/icons/touch-icon-72×72.png" /> <link rel="apple-touch-icon" href="/assets/img/icons/touch-icon-iphone.png" /> <meta name="google-site-verification" content="tidGtgfdFjebf3U1Rb9leZW2sjgmcU4888P13TH801U" /> <meta name="RATING" content="RTA-5042-1996-1400-1577-RTA" /> <meta name="title" content="<?=$video->title?>"> <meta property='og:site_name' content='FREE pooping, pissing and scat porn videos. poofetish.com'> <meta property="og:url" content="https://poofetish.com/video/<?=$video->uri?>"> <meta property="og:type" content="article"> <meta property="og:title" content="<?=$video->title?>"> <meta property="og:description" content="<?=$video->title?>. FREE pooping, pissing and scat porn videos. poofetish.com"> <meta property="og:image" content="<?=$video->url_thumbnail?>"> <link rel="image_src" href="<?=$video->url_thumbnail?>"> <meta property="og:video:tag" content="teen"> <meta property="og:video:tag" content="scat"> <meta property="og:video:tag" content="poop"> <meta property="og:video:tag" content="lesbians"> <meta property="og:video:tag" content="mistress"> <meta property="og:video:tag" content="dominatrix"> <meta property="og:video:tag" content="domina"> <meta property="og:video:tag" content="dominant"> <meta property="og:video:tag" content="submissive"> <meta property="og:video:tag" content="bdsm"> <meta property="og:video:tag" content="fetish"> <meta property="og:video:tag" content="slave"> <script type="application/ld+json"> { "@context": "https://schema.org", "@type": "VideoObject", "name": "<?=$video->title?>", "thumbnailUrl": "<?=$video->url_thumbnail?>", "description": "<?=$video->title?>", "uploadDate": "<?=$video->date_created?>", "contentUrl": "<?=$video->url_embed?>", "embedUrl": "<?=$video->url_embed?>", "interactionCount": "<?=number_format($video->views,0)?>" } </script> <link rel="stylesheet" type="text/css" href="/assets/css/styleNew.css"> <link rel="stylesheet" type="text/css" href="/assets/css/mobileNew.css"> <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.1.0/css/all.css" integrity="sha384-lKuwvrZot6UHsBSfcMvOkWwlCMgc0TaWr+30HWe3a4ltaBwTZhyTEggF5tJv8tbt" crossorigin="anonymous"> <script type="text/javascript" src="/assets/js/jquery.min.js"></script> <script type="text/javascript" src="/assets/js/jquery-tap.min.js"></script> <script type="text/javascript" src="//www.gstatic.com/firebasejs/4.1.3/firebase.js"></script> <script type="text/javascript" src="/assets/js/autosize.js"></script> <script type="text/javascript" src="/assets/js/app.js"></script> <script type="text/javascript" src="/assets/js/rate.js?cache=<?=time()?>"></script> <!-- Global site tag (gtag.js) - Google Analytics --> <script async src="https://www.googletagmanager.com/gtag/js?id=G-PNT0K97XK7"></script> <script> window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config', 'G-PNT0K97XK7'); $(document).ready(function(){ $('#main_video').on('loadedmetadata', function (event) { $('.theater .loading_overlay').css("display", "flex"); }); $('#main_video').on('canplay', function (event) { $('.theater .loading_overlay').css("display", "none"); }); }); </script> </head> <body> <a href="/for-sale" class="for-sale-banner"> This website is for sale, click here to enquire. </a> <div class="app"> <?php include('includes/header.php'); ?> <div class="page"> <div class="title"> <h1><?=$video->title?></h1> <?php if($video->premium){ echo '<div class="premium-badge">PREMIUM</div>'; }else{ echo '<h3>FREE Scat Porn</h3>'; } ?> </div> <div class="theater"> <iframe id="video_frame" width="100%" height="500" src="<?=$video->url_embed?>" frameborder="0" allowfullscreen></iframe> </div> <div class="video-info"> <div class="video-info-title"> <h2><?=$video->title?></h2> <div class="views"><?=number_format($video->views,0)?> views</div> </div> <div class="video-info-stats"> <div class="ratings"> <div class="btn green" data-id="<?=$video->id;?>" data-count="<?=$video->rate_up;?>" data-type="up"> <i class="fas fa-thumbs-up"></i> <span><?=$video->rate_up;?></span> </div> <div class="btn red" data-id="<?=$video->id;?>" data-count="<?=$video->rate_down;?>" data-type="down"> <i class="fas fa-thumbs-down"></i> <span><?=$video->rate_down;?></span> </div> </div> <div class="rating-bar"> <div style="width: <?php echo $percent ?? 100; ?>%"></div> </div> </div> </div> <div class="title"> <h2>Similar Scat Videos</h2> </div> <div class="videos"> <?php $words = explode(', ',generateKeywordsFromText($video->title)); $search = ''; foreach($words as $word){ $search .= "title LIKE '%".$word."%' OR "; } $search = substr($search,0,-4); $videos = db::query("SELECT * FROM shittytube WHERE (".$search.") AND active = 1 ORDER BY RAND() LIMIT 8"); if($videos->count()){ foreach($videos->results() as $vid){ echo '<a class="thumbnail" href="/video/'.$vid->uri.'"> <img src="'.$vid->url_thumbnail.'" alt="'.$vid->title.'" title="'.$vid->title.'">'; if($vid->premium){ echo '<div class="premium">Premium</div>'; } echo '<div class="title">'.$vid->title.' <div class="views">'.number_format($vid->views, 0).' views</div></div> </a>'; } } function generateKeywordsFromText($text){ $text = strtolower($text); // List of words NOT to be included in keywords $stopWords = array('i','a','about','an','and','are','as','at','be','by','com','de','en','for','from','how','in','is','it','la','of','on','or','that','the','this','to','was','what','when','where','who','will','with','und','the','www', "such", "have", "then", "girl", "fuck", "video"); //Let us do some basic clean up! on the text before getting to real keyword generation work $text = preg_replace('/\s\s+/i', '', $text); // replace multiple spaces etc. in the text $text = trim($text); // trim any extra spaces at start or end of the text $text = preg_replace('/[^a-zA-Z0-9 -]/', '', $text); // only take alphanumerical characters, but keep the spaces and dashes too… $text = strtolower($text); // Make the text lowercase so that output is in lowercase and whole operation is case in sensitive. // Find all words preg_match_all('/\b.*?\b/i', $text, $allTheWords); $allTheWords = $allTheWords[0]; //Now loop through the whole list and remove smaller or empty words foreach ( $allTheWords as $key=>$item ) { if ( $item == '' || in_array(strtolower($item), $stopWords) || strlen($item) <= 3 ) { unset($allTheWords[$key]); } } // Create array that will later have its index as keyword and value as keyword count. $wordCountArr = array(); // Now populate this array with keywrds and the occurance count if ( is_array($allTheWords) ) { foreach ( $allTheWords as $key => $val ) { $val = strtolower($val); if ( isset($wordCountArr[$val]) ) { $wordCountArr[$val]++; } else { $wordCountArr[$val] = 1; } } } // Sort array by the number of repetitions arsort($wordCountArr); //Keep first 10 keywords, throw other keywords $wordCountArr = array_slice($wordCountArr, 0, 10); // Now generate comma separated list from the array $words=""; foreach ($wordCountArr as $key=>$value) $words .= ", " . $key ; // Trim list of comma separated keyword list and return the list return trim($words,","); } ?> </div> </div> <?php include('includes/footer.php'); ?> </div> </body> </html>
| ver. 1.4 |
Github
|
.
| PHP 7.0.33-0ubuntu0.16.04.16 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка