92a70e6d28
1.2 - January 2, 2024 - [new] Preferred language setting for DuckDuckGo results in config.php. - [new] Preferred language setting for Wikipedia results in config.php. - [new] Combined DuckDuckGo, Google, Wikipedia and Ecosia (Bing) results into one page. - [new] Ranking algorithm for search results. - [new] Option to down-rank certain social media sites in results (Makes them show lower down the page). - [new] Option to show the Goosle rank along with the search source. - [new] Crawler for results from Limetorrents.lol. - [new] Periodic check for updates in footer. - [change] Moved duckduckgo.php and google.php into the engines/search/ folder. - [change] Removed Wikipedia special search in favor of actual search results. - [change] Removed 'Date Added' from 1337x results. - [change] Removed Chrome based and Mobile user-agents, as they don't work for the WikiPedia API. - [change] Added more trackers for generating magnet links. - [tweak] 30-50% faster parsing of search results (couple of ms per search query). - [tweak] Expanded the season/episode filter to all sources that support TV Shows. - [tweak] More sensible santization of variables (Searching for html tags/basic code should now work). - [tweak] Moved 'imdb_id_search' out from special results into its 'own' setting. - [tweak] Moved 'password_generator' out from special results into its 'own' setting. - [tweak] More accurate and faster Google scrape. - [tweak] Reduced paragraph margins. - [tweak] More code cleanup, making it more uniform. - [fix] Prevents searching on disabled methods by 'cheating' the search type in the url. - [fix] Better decoding for special characters in urls for search results. - [fix] Better validation for special searches trigger words. - [fix] Better sanitization for DuckDuckGo and Google results.
71 lines
No EOL
2.5 KiB
PHP
71 lines
No EOL
2.5 KiB
PHP
<?php
|
|
require "functions/tools.php";
|
|
require "functions/search_engine.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>
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
|
|
<meta charset="UTF-8"/>
|
|
<meta name="description" content="Goosle - The best meta search engine for private and fast internet fun!"/>
|
|
<meta name="referrer" content="no-referrer"/>
|
|
<link rel="apple-touch-icon" href="apple-touch-icon.png">
|
|
<link rel="icon" href="favicon.ico" type="image/x-icon"/>
|
|
<link rel="stylesheet" type="text/css" href="assets/css/styles.css"/>
|
|
<title>Goosle Search</title>
|
|
</head>
|
|
<body class="main">
|
|
<?php
|
|
if(verify_hash($opts, $auth)) {
|
|
?>
|
|
<div class="wrap">
|
|
<div class="search-box-main">
|
|
<form action="results.php" method="get" autocomplete="off">
|
|
<h1><span class="G">G</span>oosle</h1>
|
|
|
|
<input tabindex="10" type="search" class="search" name="q" autofocus />
|
|
|
|
<input type="hidden" name="t" value="0"/>
|
|
<input type="hidden" name="a" value="<?php echo $opts->hash; ?>"/>
|
|
|
|
<div class="search-box-buttons">
|
|
<button tabindex="20" name="t" value="0" type="submit">Search</button>
|
|
<?php if($opts->enable_image_search == "on") { ?>
|
|
<button tabindex="40" name="t" value="1" type="submit">Image</button>
|
|
<?php } ?>
|
|
<?php if($opts->enable_torrent_search == "on") { ?>
|
|
<button tabindex="50" name="t" value="9" type="submit">Torrent</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 } ?>
|
|
</div>
|
|
<?php
|
|
} else {
|
|
echo "<div class=\"auth-error\">Goosle</div>";
|
|
}
|
|
?>
|
|
</body>
|
|
</html>
|