2024-08-07 20:56:01 +00:00
|
|
|
<?php
|
2023-12-05 22:11:28 +00:00
|
|
|
/* ------------------------------------------------------------------------------------
|
2024-06-20 00:08:00 +00:00
|
|
|
* Goosle - The fast, privacy oriented search tool that just works.
|
2023-12-05 22:11:28 +00:00
|
|
|
*
|
|
|
|
* COPYRIGHT NOTICE
|
|
|
|
* Copyright 2023-2024 Arnan de Gans. All Rights Reserved.
|
|
|
|
*
|
|
|
|
* COPYRIGHT NOTICES AND ALL THE COMMENTS SHOULD REMAIN INTACT.
|
2024-08-07 20:56:01 +00:00
|
|
|
* By using this code you agree to indemnify Arnan de Gans from any
|
2023-12-05 22:11:28 +00:00
|
|
|
* liability that might arise from its use.
|
|
|
|
------------------------------------------------------------------------------------ */
|
2024-07-15 20:11:08 +00:00
|
|
|
|
|
|
|
if(!defined('ABSPATH')) define('ABSPATH', $_SERVER['DOCUMENT_ROOT'] . '/');
|
|
|
|
|
|
|
|
require ABSPATH.'functions/tools.php';
|
|
|
|
|
|
|
|
$opts = load_opts();
|
2023-12-05 22:11:28 +00:00
|
|
|
?>
|
2024-01-02 06:24:27 +00:00
|
|
|
<!DOCTYPE html>
|
2023-12-05 22:11:28 +00:00
|
|
|
<html lang="en">
|
|
|
|
<head>
|
2024-05-17 01:12:14 +00:00
|
|
|
<title>Goosle Search</title>
|
|
|
|
|
|
|
|
<meta charset="utf-8" />
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no" />
|
|
|
|
<meta name="robots" content="noodp,noydir" />
|
2023-12-05 22:11:28 +00:00
|
|
|
<meta name="referrer" content="no-referrer"/>
|
2024-06-20 00:08:00 +00:00
|
|
|
<meta name="description" content="Get your Goosle on! - The best meta search engine for private and fast search results!" />
|
|
|
|
|
|
|
|
<meta property="og:site_name" content="Goosle Search" />
|
|
|
|
<meta property="og:title" content="Goosle Search" />
|
|
|
|
<meta property="og:description" content="Get your Goosle on! - The best meta search engine for private and fast search results!" />
|
|
|
|
<meta property="og:url" content="<?php echo get_base_url($opts->siteurl); ?>/" />
|
|
|
|
<meta property="og:image" content="<?php echo get_base_url($opts->siteurl); ?>/assets/images/goosle.webp" />
|
|
|
|
<meta property="og:type" content="website" />
|
2024-05-17 01:12:14 +00:00
|
|
|
|
|
|
|
<link rel="icon" href="favicon.ico" />
|
|
|
|
<link rel="apple-touch-icon" href="apple-touch-icon.png" />
|
2024-06-20 00:08:00 +00:00
|
|
|
<link rel="canonical" href="<?php echo get_base_url($opts->siteurl); ?>/" />
|
|
|
|
<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"/>
|
2023-12-05 22:11:28 +00:00
|
|
|
</head>
|
2024-05-17 01:12:14 +00:00
|
|
|
|
|
|
|
<body class="startpage">
|
2023-12-05 22:11:28 +00:00
|
|
|
<?php
|
2024-07-15 20:11:08 +00:00
|
|
|
if(verify_hash($opts->hash_auth, $opts->hash, $opts->user_auth)) {
|
2023-12-05 22:11:28 +00:00
|
|
|
?>
|
|
|
|
|
2024-06-20 00:08:00 +00:00
|
|
|
<div class="content">
|
|
|
|
<h1><span class="goosle-g">G</span>oosle</h1>
|
2024-08-07 20:56:01 +00:00
|
|
|
|
2024-05-17 01:12:14 +00:00
|
|
|
<form action="results.php" method="get" autocomplete="off">
|
2024-06-23 04:58:17 +00:00
|
|
|
<input tabindex="10" type="search" class="search-field" name="q" required autofocus />
|
2024-05-17 01:12:14 +00:00
|
|
|
<input type="hidden" name="a" value="<?php echo $opts->hash; ?>"/>
|
2023-12-05 22:11:28 +00:00
|
|
|
|
2024-05-17 01:12:14 +00:00
|
|
|
<div class="search-buttons">
|
2024-08-07 20:56:01 +00:00
|
|
|
<?php if($opts->enable_web_search == 'on') { ?>
|
2024-06-20 00:08:00 +00:00
|
|
|
<button tabindex="20" name="t" value="0" type="submit" class="web-search">Web search</button>
|
2024-08-07 20:56:01 +00:00
|
|
|
<?php } ?>
|
2024-05-17 01:12:14 +00:00
|
|
|
|
2024-06-20 00:08:00 +00:00
|
|
|
<?php if($opts->enable_image_search == 'on') { ?>
|
|
|
|
<button tabindex="40" name="t" value="1" type="submit" class="image-search">Image search</button>
|
2024-05-17 01:12:14 +00:00
|
|
|
<?php } ?>
|
|
|
|
|
2024-06-20 00:08:00 +00:00
|
|
|
<?php if($opts->enable_magnet_search == 'on') { ?>
|
|
|
|
<button tabindex="50" name="t" value="9" type="submit" class="magnet-search">Magnet search</button><a href="./box-office.php?a=<?php echo $opts->hash; ?>&t=9" class="box-office">Box office</a>
|
2024-05-17 01:12:14 +00:00
|
|
|
<?php } ?>
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
|
2024-06-20 00:08:00 +00:00
|
|
|
<?php if($opts->password_generator == "on") { ?>
|
|
|
|
<div class="password-generator">
|
|
|
|
<form method="get" action="./" autocomplete="off">
|
|
|
|
Password Generator<br/><input class="password" type="text" name="pw" maxlength="27" value="<?php echo string_generator(24, '-'); ?>" autocomplete="0" />
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
<?php } ?>
|
2024-05-17 01:12:14 +00:00
|
|
|
</div>
|
|
|
|
|
2024-07-19 21:57:40 +00:00
|
|
|
<div class="footer grid-container">
|
|
|
|
<div class="footer-grid">
|
|
|
|
© <?php echo the_date('Y'); ?> Goosle <?php echo $current_version; ?> <?php echo show_update_notification(); ?>
|
|
|
|
</div>
|
|
|
|
<div class="footer-grid">
|
|
|
|
<a href="./box-office.php?a=<?php echo $opts->hash; ?>&t=9">Box office</a> - <a href="./help.php?a=<?php echo $opts->hash; ?>">Help</a> - <a href="./stats.php?a=<?php echo $opts->hash; ?>">Stats</a>
|
|
|
|
</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 } ?>
|
|
|
|
|
2023-12-05 22:11:28 +00:00
|
|
|
</body>
|
2024-08-07 20:56:01 +00:00
|
|
|
</html>
|