-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathindex.php
More file actions
81 lines (66 loc) · 2.85 KB
/
index.php
File metadata and controls
81 lines (66 loc) · 2.85 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
<?php
/* ------------------------------------------------------------------------------------
* Goosle - The fast, privacy oriented search tool that just works.
*
* COPYRIGHT NOTICE
* Copyright 2023-2025 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.
------------------------------------------------------------------------------------ */
if(!defined('ABSPATH')) define('ABSPATH', __DIR__ . '/');
session_start();
date_default_timezone_set('UTC');
require ABSPATH.'functions/tools-files.php';
require ABSPATH.'functions/tools.php';
$opts = load_opts();
/*
echo "<pre>";
print_r($opts);
echo "</pre>";
*/
?>
<!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 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 $opts->baseurl; ?>" />
<meta property="og:image" content="<?php echo $opts->baseurl; ?>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 $opts->baseurl; ?>" />
<link rel="stylesheet" type="text/css" href="<?php echo $opts->baseurl; ?>assets/css/styles.css"/>
<link rel="stylesheet" type="text/css" href="<?php echo $opts->baseurl; ?>assets/css/<?php echo $opts->colorscheme; ?>.css"/>
</head>
<body class="page home">
<?php
if($opts->user->logged_in) {
?>
<div class="content text-center">
<h1><span class="goosle-g">G</span>oosle</h1>
<p>Hello, <?php echo $opts->user->nicename; ?>!</p>
<form action="<?php echo $opts->baseurl; ?>results.php" method="get" autocomplete="off">
<input tabindex="10" type="search" id="search" class="search-field" name="q" required autofocus autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false" />
<div class="search-buttons">
<button tabindex="50" type="submit" class="button magnet-search">Magnet search</button> <a href="<?php echo $opts->baseurl; ?>box-office.php" class="button box-office">Box office</a>
</div>
</form>
</div>
<?php
include ABSPATH . 'template-parts/footer.php';
} else {
include ABSPATH . 'template-parts/login-error.php';
}
?>
</body>
</html>