Файловый менеджер - Редактировать - /var/www/fetish/category.php
Назад
<?php require('core/init.php'); use \fetish\db; //die("SELECT * FROM categories WHERE uri = ".$_GET['id']); $c = db::query("SELECT * FROM categories WHERE uri = ?",[$_GET['id']])->first(); if(!$c){ header("location: /categories"); die(); } if($c->uri == 'most-popular'){ //$videos = db::query("SELECT * FROM videos WHERE active = 1 AND views >= 5000 ORDER BY rand() LIMIT 100"); $videos = db::query("SELECT * FROM shittytube WHERE active = 1 AND views >= 5000 ORDER BY rand() LIMIT 100"); $count = $videos->count(); }elseif($c->uri == 'latest'){ //$videos = db::query("SELECT * FROM videos WHERE active = 1 ORDER BY date_created DESC LIMIT 100"); $videos = db::query("SELECT * FROM shittytube WHERE active = 1 ORDER BY date_created DESC LIMIT 100"); $count = $videos->count(); }else{ $words = explode(',',$c->keywords); $search = ''; foreach($words as $word){ //$search .= "(title LIKE '%".$word."%' OR //tags LIKE '%".$word."%') OR "; $search .= "title LIKE '%".$word."%' OR "; } $search = substr($search,0,-4); //$videos = db::query("SELECT * FROM videos WHERE (".$search.") AND active = 1 ORDER BY RAND() LIMIT 100"); $videos = db::query("SELECT * FROM shittytube WHERE (".$search.") AND active = 1 ORDER BY RAND() LIMIT 100"); $count = $videos->count(); } ?> <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><?=ucwords(strtolower($c->title))?> Videos | PooFetish</title> <meta name="keywords" content="<?=strtolower($c->title)?>, scat porn, girls pooping, lesbian scat, poofetish, shitting in mouth"/> <meta name="description" content="We have 1000's of <?=strtolower($c->title)?> videos for you to watch. PooFetish has the biggest FREE collection of scat porn videos."/> <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" /> <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 src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.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> <!-- 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'); </script> </head> <body> <div class="app"> <?php include('includes/header.php'); ?> <div class="page"> <div class="title"> <h1><?=ucwords(strtolower($c->title))?> Videos</h1> <h3><?=$c->subtitle?></h3> </div> <div class="videos"> <?php if($count){ foreach($videos->results() as $video){ echo '<a class="thumbnail" href="/video/'.$video->uri.'"> <img src="'.$video->url_thumbnail.'" alt="'.$video->title.'" title="'.$video->title.'">'; if($video->premium){ echo '<div class="premium">Premium</div>'; } echo '<div class="title">'.$video->title.' <div class="views">'.number_format($video->views, 0).' views</div></div> </a>'; } }else{ echo '0 Videos Found'; } ?> </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
|
Настройка