Файловый менеджер - Редактировать - /var/www/fetish/auth/channel.php
Назад
<?php require('../core/init.php'); use \fetish\auth; use \fetish\db; use \fetish\chat; use \fetish\stats; $auth = null; if(auth::isLoggedIn()){ $auth = db::query("SELECT * FROM users WHERE auth_token = ?",[$_COOKIE['auth_token']])->first(); } $user = db::query("SELECT * FROM `users` WHERE `username` = ?",[$_GET['username']])->first(); if(!$user){ header("location: /404"); die(); } ?> <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><?=strtolower($user->username)?>'s Channel | 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" /> <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'); ?> <?php if(isset($user->banner_url) || $auth->id == $user->id){ echo '<div class="profile_banner"></div>'; } ?> <div class="page profile"> <div class="profile_left"> <div class="profile_info_box"> <div class="profile_info_box_image"> <img src="https://fetish.s3.amazonaws.com/assets/avatar.png" /> </div> <div class="profile_info_box_username">@<?=strtolower($user->username)?></div> <div class="profile_info_box_stats"> <div> <b><?=number_format(stats::uploads($user->id),0)?></b> <span>Uploads</span> </div> <div> <b><?=number_format(stats::followers($user->id),0)?></b> <span>Followers</span> </div> <div> <b><?=number_format(stats::following($user->id),0)?></b> <span>Following</span> </div> </div> <?php if($auth){ if($auth->id != $user->id){ //Check if user is following $follow = db::query("SELECT * FROM followers WHERE user_id = ? AND follow_id = ?", [$auth->id, $user->id])->first(); if($follow){ echo '<a class="profile_info_box_following_btn" href="/channel/'.strtolower($user->username).'/unfollow">Following</a>'; }else{ echo '<a class="profile_info_box_follow_btn" href="/channel/'.strtolower($user->username).'/follow">Follow</a>'; } }else{ echo '<a class="profile_info_box_follow_btn" href="/channel/'.strtolower($user->username).'/upload">Upload Video</a>'; } }else{ echo '<a class="profile_info_box_follow_btn" href="/channel/'.strtolower($user->username).'/follow">Follow</a>'; } if($user->bio){ echo '<div class="profile_info_box_bio">'.$user->bio.'</div>'; } ?> </div> </div> <div class="profile_right"> <div class="profile_block"> <div class="title"> <h1>Uploads</h1> <h3>Videos uploaded by <?=strtolower($user->username)?></h3> </div> <?php $videos = db::query("SELECT * FROM shittytube WHERE uid = ? AND active = 1 ORDER BY id DESC LIMIT 20",[$user->id]); if($videos->count()){ echo '<div class="videos">'; 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>'; } echo '</div>'; }else{ echo '<div class="no_data_uploaded_message">This user has not uploaded any videos yet!</div>'; /*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> <?php if($user->likes == 'PUBLIC' || $auth->id == $user->id){ ?> <div class="profile_block"> <div class="title"> <h1>Liked Videos</h1> <h3>Videos that <?=strtolower($user->username)?> has liked</h3> </div> <?php $videos = db::query("SELECT shittytube.* FROM likes INNER JOIN shittytube ON likes.video_id = shittytube.id WHERE likes.user_id = ? AND likes.type = 1 ORDER BY likes.date_created DESC LIMIT 100",[$user->id]); if($videos->count()){ echo '<div class="videos">'; 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>'; } echo '</div>'; }else{ echo '<div class="no_data_uploaded_message">This user has not liked any videos yet!</div>'; } ?> </div> <?php } ?> </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
|
Настройка