2024-06-20 00:08:00 +00:00
|
|
|
<?php
|
|
|
|
/* ------------------------------------------------------------------------------------
|
|
|
|
* Goosle - The fast, privacy oriented search tool that just works.
|
|
|
|
*
|
|
|
|
* COPYRIGHT NOTICE
|
|
|
|
* Copyright 2023-2024 Arnan de Gans. All Rights Reserved.
|
|
|
|
*
|
|
|
|
* COPYRIGHT NOTICES AND ALL THE COMMENTS SHOULD REMAIN INTACT.
|
|
|
|
* By using this code you agree to indemnify Arnan de Gans from any
|
|
|
|
* liability that might arise from its use.
|
|
|
|
------------------------------------------------------------------------------------ */
|
2024-07-15 20:11:08 +00:00
|
|
|
|
|
|
|
if(!defined('ABSPATH')) define('ABSPATH', $_SERVER['DOCUMENT_ROOT'] . '/');
|
|
|
|
date_default_timezone_set('UTC');
|
|
|
|
|
|
|
|
require ABSPATH.'functions/tools.php';
|
|
|
|
require ABSPATH.'functions/tools-magnet.php';
|
|
|
|
require ABSPATH.'engines/boxoffice/yts.php';
|
|
|
|
require ABSPATH.'engines/boxoffice/eztv.php';
|
|
|
|
|
|
|
|
$opts = load_opts();
|
|
|
|
$search = load_search();
|
2024-06-20 00:08:00 +00:00
|
|
|
?>
|
|
|
|
<!DOCTYPE html>
|
|
|
|
<html lang="en">
|
|
|
|
<head>
|
|
|
|
<title>Goosle Search Box Office</title>
|
|
|
|
|
|
|
|
<meta charset="utf-8" />
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no" />
|
|
|
|
<meta name="robots" content="noodp,noydir" />
|
|
|
|
<meta name="referrer" content="no-referrer"/>
|
|
|
|
<meta name="description" content="View the latest magnet links available for download!" />
|
|
|
|
|
2024-07-15 20:11:08 +00:00
|
|
|
<meta property="og:site_name" content="Goosle Search" />
|
2024-06-20 00:08:00 +00:00
|
|
|
<meta property="og:title" content="Goosle Search Box Office" />
|
|
|
|
<meta property="og:description" content="View the latest magnet links available for download!" />
|
|
|
|
<meta property="og:url" content="<?php echo get_base_url($opts->siteurl); ?>/box-office.php" />
|
|
|
|
<meta property="og:image" content="<?php echo get_base_url($opts->siteurl); ?>/assets/images/goosle.webp" />
|
|
|
|
<meta property="og:type" content="website" />
|
|
|
|
|
|
|
|
<link rel="icon" href="favicon.ico" />
|
|
|
|
<link rel="apple-touch-icon" href="apple-touch-icon.png" />
|
|
|
|
<link rel="canonical" href="<?php echo get_base_url($opts->siteurl); ?>/box-office.php" />
|
|
|
|
<link rel="stylesheet" type="text/css" href="<?php echo get_base_url($opts->siteurl); ?>/assets/css/styles.css"/>
|
|
|
|
<link rel="stylesheet" type="text/css" href="<?php echo get_base_url($opts->siteurl); ?>/assets/css/<?php echo $opts->colorscheme; ?>.css"/>
|
|
|
|
|
|
|
|
<script src="<?php echo get_base_url($opts->siteurl); ?>/assets/js/goose.js" id="goosle-js"></script>
|
|
|
|
</head>
|
|
|
|
|
|
|
|
<body class="boxofficepage">
|
|
|
|
<?php
|
2024-07-15 20:11:08 +00:00
|
|
|
if(verify_hash($opts->hash_auth, $opts->hash, $opts->user_auth)) {
|
2024-06-20 00:08:00 +00:00
|
|
|
?>
|
|
|
|
<div class="header">
|
|
|
|
<form action="results.php" method="get" autocomplete="off">
|
2024-07-15 20:11:08 +00:00
|
|
|
<h1 class="logo"><a href="./?a=<?php echo $opts->user_auth; ?>"><span class="goosle-g">G</span>oosle</a></h1>
|
|
|
|
<input tabindex="1" class="search-field" type="search" value="<?php echo (strlen($search->query) > 0) ? htmlspecialchars($search->query) : "" ; ?>" name="q" /><input tabindex="2" class="button" type="submit" value="Search" />
|
2024-06-20 00:08:00 +00:00
|
|
|
|
2024-07-15 20:11:08 +00:00
|
|
|
<input type="hidden" name="t" value="<?php echo $search->type; ?>"/>
|
|
|
|
<input type="hidden" name="a" value="<?php echo $opts->user_auth; ?>">
|
2024-06-20 00:08:00 +00:00
|
|
|
</form>
|
|
|
|
|
|
|
|
<div class="navigation">
|
2024-07-15 20:11:08 +00:00
|
|
|
<a class="<?php echo ($search->type == '0') ? 'active ' : ''; ?>tab-search" href="./results.php?q=<?php echo $search->query; ?>&a=<?php echo $opts->user_auth; ?>&t=0">Search</a>
|
2024-06-20 00:08:00 +00:00
|
|
|
|
|
|
|
<?php if($opts->enable_image_search == 'on') { ?>
|
2024-07-15 20:11:08 +00:00
|
|
|
<a class="<?php echo ($search->type == '1') ? 'active ' : ''; ?>tab-image" href="./results.php?q=<?php echo $search->query; ?>&a=<?php echo $opts->user_auth; ?>&t=1" >Images</a>
|
2024-06-20 00:08:00 +00:00
|
|
|
<?php } ?>
|
|
|
|
|
|
|
|
<?php if($opts->enable_news_search == 'on') { ?>
|
2024-07-15 20:11:08 +00:00
|
|
|
<a class="<?php echo ($search->type == '2') ? 'active ' : ''; ?>tab-news" href="./results.php?q=<?php echo $search->query; ?>&a=<?php echo $opts->user_auth; ?>&t=2">News</a>
|
2024-06-20 00:08:00 +00:00
|
|
|
<?php } ?>
|
|
|
|
|
|
|
|
<?php if($opts->enable_magnet_search == 'on') { ?>
|
2024-07-15 20:11:08 +00:00
|
|
|
<a class="<?php echo ($search->type == '9') ? 'active ' : ''; ?>tab-magnet" href="./results.php?q=<?php echo $search->query; ?>&a=<?php echo $opts->user_auth; ?>&t=9">Magnet links</a>
|
2024-06-20 00:08:00 +00:00
|
|
|
<?php } ?>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="content">
|
|
|
|
<h2>The Box Office</h2>
|
|
|
|
|
2024-07-15 20:11:08 +00:00
|
|
|
<p>Click on any movie poster for more information and available download links.</p>
|
2024-06-20 00:08:00 +00:00
|
|
|
|
2024-07-15 20:11:08 +00:00
|
|
|
<h3>Recently added movies on YTS</h3>
|
|
|
|
<?php
|
|
|
|
$highlights = array_slice(yts_boxoffice($opts, 'date_added'), 0, 24);
|
|
|
|
?>
|
|
|
|
<ul class="result-grid">
|
2024-06-20 00:08:00 +00:00
|
|
|
<?php
|
2024-07-15 20:11:08 +00:00
|
|
|
foreach($highlights as $highlight) {
|
|
|
|
$thumb = (!empty($highlight['thumbnail'])) ? $highlight['thumbnail'] : $opts-pixel;
|
|
|
|
|
|
|
|
echo "<li class=\"result highlight yts id-".$highlight['id']."\">";
|
|
|
|
echo " <div class=\"thumb\">";
|
|
|
|
echo " <a onclick=\"openpopup('highlight-".$highlight['id']."')\" title=\"More info: ".$highlight['title']."\"><img src=\"".$thumb."\" alt=\"".$highlight['title']."\" /></a>";
|
|
|
|
echo " </div>";
|
|
|
|
echo " <span><center><a onclick=\"openpopup('highlight-".$highlight['id']."')\" title=\"More info: ".$highlight['title']."\">".$highlight['title']."</a></center></span>";
|
|
|
|
|
|
|
|
// HTML for popup
|
|
|
|
echo highlight_popup($opts->user_auth, $highlight);
|
|
|
|
|
|
|
|
echo "</li>";
|
2024-06-20 00:08:00 +00:00
|
|
|
|
2024-07-15 20:11:08 +00:00
|
|
|
unset($highlight, $thumb);
|
|
|
|
}
|
|
|
|
unset($highlights);
|
2024-06-20 00:08:00 +00:00
|
|
|
?>
|
2024-07-15 20:11:08 +00:00
|
|
|
</ul>
|
2024-06-20 00:08:00 +00:00
|
|
|
|
2024-07-15 20:11:08 +00:00
|
|
|
<h3>Latest TV Show releases from EZTV</h3>
|
|
|
|
<?php
|
|
|
|
$highlights = array_slice(eztv_boxoffice($opts), 0, 24);
|
|
|
|
?>
|
|
|
|
<ul class="result-grid">
|
|
|
|
<?php
|
|
|
|
foreach($highlights as $highlight) {
|
|
|
|
$thumb = (!empty($highlight['thumbnail'])) ? $highlight['thumbnail'] : $opts->pixel;
|
|
|
|
|
|
|
|
echo "<li class=\"result highlight eztv id-".$highlight['id']."\">";
|
|
|
|
echo " <div class=\"thumb\">";
|
|
|
|
echo " <a onclick=\"openpopup('highlight-".$highlight['id']."')\" title=\"More info: ".$highlight['title']."\"><img src=\"".$thumb."\" alt=\"".$highlight['title']."\" /></a>";
|
|
|
|
echo " </div>";
|
|
|
|
echo " <span><center><a onclick=\"openpopup('highlight-".$highlight['id']."')\" title=\"More info: ".$highlight['title']."\">".$highlight['title']."</a></center></span>";
|
|
|
|
|
|
|
|
// HTML for popup
|
|
|
|
echo highlight_popup($opts->user_auth, $highlight);
|
|
|
|
|
|
|
|
echo "</li>";
|
|
|
|
|
|
|
|
unset($highlight, $thumb);
|
|
|
|
}
|
|
|
|
unset($highlights);
|
|
|
|
?>
|
|
|
|
</ul>
|
2024-06-20 00:08:00 +00:00
|
|
|
|
2024-07-15 20:11:08 +00:00
|
|
|
<p class="text-center"><small>Goosle does not index, offer or distribute torrent files.</small></p>
|
2024-06-20 00:08:00 +00:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="footer grid-container">
|
|
|
|
<div class="footer-grid">
|
2024-07-15 20:11:08 +00:00
|
|
|
© <?php echo the_date('Y'); ?> <?php echo show_version(); ?> By <a href="https://ajdg.solutions/" target="_blank">Arnan de Gans</a>.
|
2024-06-20 00:08:00 +00:00
|
|
|
</div>
|
|
|
|
<div class="footer-grid">
|
2024-07-15 20:11:08 +00:00
|
|
|
<a href="./?a=<?php echo $opts->user_auth; ?>">Start</a> - <a href="./box-office.php?a=<?php echo $opts->user_auth; ?>&t=9">Box office</a> - <a href="./help.php?a=<?php echo $opts->user_auth; ?>">Help</a> - <a href="./stats.php?a=<?php echo $opts->hash; ?>">Stats</a>
|
2024-06-20 00:08:00 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2024-07-15 20:11:08 +00:00
|
|
|
<?php } else { ?>
|
|
|
|
<div class="auth-error">Redirecting</div>
|
|
|
|
<meta http-equiv="refresh" content="1; url=<?php echo get_base_url($opts->siteurl); ?>/error.php" />
|
|
|
|
<?php } ?>
|
|
|
|
|
2024-06-20 00:08:00 +00:00
|
|
|
</body>
|
|
|
|
</html>
|