diff --git a/api.php b/api.php
deleted file mode 100644
index 35e2265..0000000
--- a/api.php
+++ /dev/null
@@ -1,39 +0,0 @@
-Example API request: ./api.php?q=pinternet";
- die();
-}
-
-$query = $_REQUEST["q"];
-
-// Pinterest API Endpoint
-$api_url = "https://api.pinterest.com/v1/boards/{board_id}/pins/";
-
-// Replace {board_id} with the actual board ID
-$board_id = "replace_with_actual_board_id";
-
-// Replace {access_token} with a valid Pinterest access token
-$access_token = "replace_with_actual_access_token";
-
-// Create the API request URL
-$request_url = $api_url . "?access_token=" . $access_token;
-
-// Send a GET request to the Pinterest API
-$response = file_get_contents($request_url);
-
-// Decode the JSON response into a PHP array
-$pins = json_decode($response, true);
-
-// Loop through the pins and display each one
-foreach ($pins["data"] as $pin) {
- echo '
';
- echo '

';
- echo '
' . $pin["description"] . '
';
- echo '
';
-}
-
-?>
diff --git a/config.php b/config.php
index 3b08acc..791c2cc 100644
--- a/config.php
+++ b/config.php
@@ -1,53 +1,5 @@
https://google.fr/
- "google_domain" => "com",
-
- // Google results will be in this language
- "google_language" => "en",
-
- // If you have a local instance you can change this to http://localhost:3000
- "invidious_instance_for_video_results" => "https://invidious.namazso.eu",
-
- "disable_bittorent_search" => false,
- "bittorent_trackers" => "&tr=http%3A%2F%2Fnyaa.tracker.wf%3A7777%2Fannounce&tr=udp%3A%2F%2Fopen.stealth.si%3A80%2Fannounce&tr=udp%3A%2F%2Ftracker.opentrackr.org%3A1337%2Fannounce&tr=udp%3A%2F%2Fexodus.desync.com%3A6969%2Fannounce&tr=udp%3A%2F%2Ftracker.torrent.eu.org%3A451%2Fannounce",
-
- "disable_hidden_service_search" => false,
-
- /*
- Preset privacy friendly frontends for users, these can be overwritten by users in settings
- e.g.: "invidious" => "https://yewtu.be",
- */
- "invidious" => "", // youtube
- "bibliogram" => "", // instagram
- "rimgo" => "", // imgur
- "scribe" => "", // medium
- "librarian" => "", // odysee
- "gothub" => "", // github
- "nitter" => "", // twitter
- "libreddit" => "", // reddit
- "proxitok" => "", // tiktok
- "wikiless" => "", // wikipedia
- "quetre" => "", // quora
- "libremdb" => "", // imdb,
- "breezewiki" => "", // fandom,
- "anonymousoverflow" => "", // stackoverflow
-
- /*
- To send requests trough a proxy uncomment CURLOPT_PROXY and CURLOPT_PROXYTYPE:
-
- CURLOPT_PROXYTYPE options:
-
- CURLPROXY_HTTP
- CURLPROXY_SOCKS4
- CURLPROXY_SOCKS4A
- CURLPROXY_SOCKS5
- CURLPROXY_SOCKS5_HOSTNAME
-
- !!! ONLY CHANGE THE OTHER OPTIONS IF YOU KNOW WHAT YOU ARE DOING !!!
- */
"curl_settings" => array(
// CURLOPT_PROXY => "ip:port",
// CURLOPT_PROXYTYPE => CURLPROXY_HTTP,
@@ -62,7 +14,7 @@
CURLOPT_TIMEOUT => 18,
CURLOPT_VERBOSE => false
)
-
);
-
?>
+
+// settings basically stolen from LibreX - https://github.com/hnhx/librex
diff --git a/engines/pinterest.php b/engines/pinterest.php
deleted file mode 100644
index 981b52d..0000000
--- a/engines/pinterest.php
+++ /dev/null
@@ -1,60 +0,0 @@
-query("//a[@rel='noopener']") as $result)
- {
- $image = $xpath->evaluate(".//img", $result)[0];
-
- if ($image)
- {
- $encoded_url = $result->getAttribute("href");
- $encoded_url_split1 = explode("==/", $encoded_url)[1];
- $encoded_url_split2 = explode("?position", $encoded_url_split1)[0];
- $real_url = urldecode(base64_decode($encoded_url_split2));
- $real_url = check_for_privacy_frontend($real_url);
-
- $alt = $image->getAttribute("alt");
- $thumbnail = urlencode($image->getAttribute("src"));
-
- array_push($results,
- array (
- "thumbnail" => urldecode(htmlspecialchars($thumbnail)),
- "alt" => htmlspecialchars($alt),
- "url" => htmlspecialchars($real_url)
- )
- );
-
- }
- }
-
- return $results;
- }
-
- function print_image_results($results)
- {
- echo "";
-
- foreach($results as $result)
- {
- $thumbnail = urlencode($result["thumbnail"]);
- $alt = $result["alt"];
- $url = $result["url"];
-
- echo "
";
- echo "
";
- echo "";
- }
-
- echo "
";
- }
-?>
diff --git a/image_proxy.php b/image_proxy.php
index 387ed82..6575edf 100644
--- a/image_proxy.php
+++ b/image_proxy.php
@@ -1,19 +1,21 @@
+// basically stolen from LibreX - https://github.com/hnhx/LibreX
diff --git a/index.php b/index.php
index 39d2d5e..1746c95 100644
--- a/index.php
+++ b/index.php
@@ -1,4 +1,5 @@
-
+
+Pinternet
@@ -10,4 +11,4 @@
-
+
diff --git a/misc/footer.php b/misc/footer.php
new file mode 100644
index 0000000..3941bfa
--- /dev/null
+++ b/misc/footer.php
@@ -0,0 +1,22 @@
+
+
+