Файловый менеджер - Редактировать - /var/www/fetish/search.php
Назад
<?php require('core/init.php'); use \fetish\db; use \fetish\chat; use \fetish\videos; $term = ''; if(isset($_GET['q'])){ $term = $_GET['q']; } if(isset($_POST['search'])){ $term = $_POST['search']; } $words = explode(' ', $term); $search = ''; foreach($words as $word){ //$search .= "(title LIKE '%".$word."%' OR //tags LIKE '%".$word."%' OR //source = '".$word."') AND "; $search .= "(title LIKE '%".$word."%') AND "; } $search = substr($search,0,-5); //$videos = db::query("SELECT * FROM videos WHERE ".$search." AND active = 1 LIMIT 300"); $videos = db::query("SELECT * FROM shittytube WHERE ".$search." AND active = 1 LIMIT 300"); $count = $videos->count(); if(!$count){ $count = 0; } $title = (($count >= 100)?'100+':$count).' Videos found for "'.$term.'"'; ?> <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>Search: <?=$term ?? ''?> | PooFetish</title> <meta name="keywords" content="Scat, Pooping, Pissing, Teens, Diarrhea, Teen Scat"/> <meta name="description" content="PooFetish has the biggest collection of FREE scat videos for you to search through and watch."/> <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>Search Videos</h1> <h3><?=$title?></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.'"> <div class="title">'.$video->title.' <div class="views">'.number_format($video->views, 0).' views</div></div> </a>'; } }else{ echo '<div class="thumbnail-empty"></div>'; echo '<div class="thumbnail-empty"></div>'; echo '<div class="thumbnail-empty"></div>'; echo '<div class="thumbnail-empty"></div>'; } ?> </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
|
Настройка