
- NOTICE: config.default.php has changed, re-create your config.php!! - [fix] Footer no longer overlaps results - [fix] Search navigation no longer bunched up on smaller displays - [fix] Double search type when searching from start page - [new] Filter for additional/different headers per cURL request - [new] Image search via Openverse API (Access token and cronjob required, see installation instructions) - [new] Image search via Qwant API - [new] Web (recent news) search via Qwant API - [tweak] Merged 'cache' option into 'cache-type', see config.default.php for details - [tweak] Better filtering for duplicate web results - [tweak] File size formatting for images more uniform - [tweak] Optimized curl_multi_exec handling - [tweak] Improved SEO headers - [tweak] Layout tweaks and optimizations for search results, header and footer - [tweak] Removed redundant HTML, CSS and some PHP - [tweak] MagnetDL search disabled by default because of Cloudflare (Will probably be removed in future version) - [tweak] Removed non-functional magnet trackers - [tweak] Added 15 extra public magnet trackers - [change] Removed Ecosia support - [change] Removed Reddit support - [change] Removed 1337x support - [change] Removed MagnetDL support
77 lines
No EOL
2.6 KiB
PHP
77 lines
No EOL
2.6 KiB
PHP
<?php
|
|
if(!defined('ABSPATH')) define('ABSPATH', $_SERVER['DOCUMENT_ROOT'] . '/');
|
|
|
|
require ABSPATH."functions/tools.php";
|
|
|
|
$opts = load_opts();
|
|
$auth = (isset($_GET['a'])) ? sanitize($_GET['a']) : $opts->user_auth;
|
|
/* ------------------------------------------------------------------------------------
|
|
* Goosle - A meta search engine for private and fast internet fun.
|
|
*
|
|
* 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.
|
|
------------------------------------------------------------------------------------ */
|
|
?>
|
|
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<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" />
|
|
<meta name="referrer" content="no-referrer"/>
|
|
<meta name="description" content="Get your Goosle on! - The best meta search engine for private and fast internet fun!" />
|
|
|
|
<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); ?>" />
|
|
|
|
<link rel="stylesheet" type="text/css" href="assets/css/styles.css"/>
|
|
</head>
|
|
|
|
<body class="startpage">
|
|
<?php
|
|
if(verify_hash($opts, $auth)) {
|
|
?>
|
|
|
|
<div class="startpage-search">
|
|
<h1><span class="G">G</span>oosle</h1>
|
|
|
|
<form action="results.php" method="get" autocomplete="off">
|
|
<input tabindex="10" type="search" class="search" name="q" autofocus />
|
|
<input type="hidden" name="a" value="<?php echo $opts->hash; ?>"/>
|
|
|
|
<div class="search-buttons">
|
|
<button tabindex="20" name="t" value="0" type="submit">Web search</button>
|
|
|
|
<?php if($opts->enable_image_search == "on") { ?>
|
|
<button tabindex="40" name="t" value="1" type="submit">Image search</button>
|
|
<?php } ?>
|
|
|
|
<?php if($opts->enable_magnet_search == "on") { ?>
|
|
<button tabindex="50" name="t" value="9" type="submit">Magnet search</button>
|
|
<?php } ?>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
|
|
<?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(); ?>" autocomplete="0" />
|
|
</form>
|
|
</div>
|
|
<?php } ?>
|
|
|
|
<?php
|
|
} else {
|
|
echo "<div class=\"auth-error\">Goosle</div>";
|
|
}
|
|
?>
|
|
</body>
|
|
</html>
|