include('function.php'); //=======================// header("X-Frame-Options: SAMEORIGIN"); header("X-Frame-Options: ALLOW-FROM http://nsfwalbum.com/"); //=======================// if ($_SERVER['HTTP_X_FORWARDED_PROTO'] == 'http') { header("Location: https://nsfwmonster.com".$_SERVER['REQUEST_URI']); } //=======================// include('/home/www/nsfwalbum.com/compare/Crawler-Detect-master/vendor/autoload.php'); use Jaybizzle\CrawlerDetect\CrawlerDetect; $CrawlerDetect = new CrawlerDetect; //=======================// if ($_COOKIE["content"] == 'videos') { $content = 'videos'; } elseif ($_COOKIE["content"] == 'images') { $content = 'images'; } else { $content = 'all'; } //=======================// if ($_COOKIE["sourced"] == 1) { $sourced = 1; } else { $sourced = 0; } //=======================// if (empty($_GET['sort']) AND empty($_GET['category']) AND empty($_GET['r']) AND empty($_GET['search'])) { $_GET['sort'] = 'hottest'; //$_GET['period'] = 'day'; //$_GET['period'] = 'week'; } //=======================// $title = 'PORN GIFS'; if ($_GET['sort'] == 'hottest' || empty($_GET['sort'])) { $title = 'HOTTEST PORN GIFS'; } elseif ($_GET['sort'] == 'newest') { $title = 'NEWEST PORN GIFS'; } elseif ($_GET['sort'] == 'popular') { $title = 'POPULAR PORN GIFS'; } elseif ($_GET['sort'] == 'random') { $title = 'RANDOM PORN GIFS'; } if ($_GET['sort'] == 'best') { $title = 'BEST PORN GIFS'; if ($_GET['period'] == 'day') { $title.= ' OF THE DAY'; } elseif ($_GET['period'] == 'week') { $title.= ' OF THE WEEK'; } elseif ($_GET['period'] == 'month') { $title.= ' OF THE MONTH'; } elseif ($_GET['period'] == 'allTime') { $title.= ' OF THE ALL TIME'; } } if (isset($_GET['category'])) { $_GET['category'] = htmlspecialchars($_GET['category']); $title = $_GET['category'].' - '.$title; } $description = 'Watch '.$title.' at nsfwmonster.com'; //=======================// if (isset($_GET['r'])) { $_GET['r'] = htmlspecialchars($_GET['r']); $mysqli = new mysqli("localhost", "xen", "sssss", "kittycage"); if ($result = $mysqli->query("SELECT subreddit_descr FROM reddit_subreddits WHERE subreddit_name = '".$_GET['r']."';")) { while ($row = $result->fetch_assoc()) { $subreddit_descr = $row['subreddit_descr']; } $result->free(); } $mysqli->close(); $description = $subreddit_descr; //$description = strlen($description) > 150 ? substr($description,0,150)."..." : $description; if (!empty($title)) { $title = $_GET['r'].' - '.$title; } else { $title = $_GET['r']; } } //=======================// if(isset($_GET['search'])){ include('s.php'); } //=======================// ?>
if (isset($_GET['post'])) { //=====================// $mysqli = new mysqli("localhost", "xen", "sssss", "kittycage"); if ($result = $mysqli->query("SELECT * FROM digged_posts WHERE post_id = '".$_GET['post']."' ;")) { while ($row = $result->fetch_assoc()) { $postData = $row; } $result->free(); } $mysqli->close(); $title = clean_title($postData['title']); $title = html_entity_decode($title); //=====================// if ($postData['type'] == 'JPG') { echo ''; echo ''; echo ''; } if ($postData['type'] == 'GIF') { echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; } if ($postData['type'] == 'GFYCAT'|| $postData['type'] == 'GIF') { echo ' '; } } ?>