mirror of
https://github.com/hnhx/librex.git
synced 2025-01-10 19:52:40 -03:00
Merge pull request #119 from Ratakor/main
add dracula theme and fix useless whitespace
This commit is contained in:
commit
985bdf44ae
3 changed files with 39 additions and 12 deletions
4
api.php
4
api.php
|
@ -44,7 +44,7 @@
|
||||||
{
|
{
|
||||||
require "engines/bittorrent/merge.php";
|
require "engines/bittorrent/merge.php";
|
||||||
$results = get_merged_torrent_results($query_encoded);
|
$results = get_merged_torrent_results($query_encoded);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case 4:
|
case 4:
|
||||||
if ($config->disable_hidden_service_search)
|
if ($config->disable_hidden_service_search)
|
||||||
|
@ -53,7 +53,7 @@
|
||||||
{
|
{
|
||||||
require "engines/ahmia/hidden_service.php";
|
require "engines/ahmia/hidden_service.php";
|
||||||
$results = get_hidden_service_results($query_encoded);
|
$results = get_hidden_service_results($query_encoded);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
require "engines/google/text.php";
|
require "engines/google/text.php";
|
||||||
|
|
21
settings.php
21
settings.php
|
@ -1,21 +1,21 @@
|
||||||
<?php
|
<?php
|
||||||
$config = require "config.php";
|
$config = require "config.php";
|
||||||
|
|
||||||
|
|
||||||
if (isset($_REQUEST["save"]) || isset($_REQUEST["reset"]))
|
if (isset($_REQUEST["save"]) || isset($_REQUEST["reset"]))
|
||||||
{
|
{
|
||||||
if (isset($_SERVER["HTTP_COOKIE"]))
|
if (isset($_SERVER["HTTP_COOKIE"]))
|
||||||
{
|
{
|
||||||
$cookies = explode(";", $_SERVER["HTTP_COOKIE"]);
|
$cookies = explode(";", $_SERVER["HTTP_COOKIE"]);
|
||||||
foreach($cookies as $cookie)
|
foreach($cookies as $cookie)
|
||||||
{
|
{
|
||||||
$parts = explode("=", $cookie);
|
$parts = explode("=", $cookie);
|
||||||
$name = trim($parts[0]);
|
$name = trim($parts[0]);
|
||||||
setcookie($name, "", time() - 1000);
|
setcookie($name, "", time() - 1000);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (isset($_REQUEST["save"]))
|
if (isset($_REQUEST["save"]))
|
||||||
{
|
{
|
||||||
|
@ -27,13 +27,13 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (isset($_REQUEST["save"]) || isset($_REQUEST["reset"]))
|
if (isset($_REQUEST["save"]) || isset($_REQUEST["reset"]))
|
||||||
{
|
{
|
||||||
header("Location: ./settings.php");
|
header("Location: ./settings.php");
|
||||||
die();
|
die();
|
||||||
}
|
}
|
||||||
|
|
||||||
require "misc/header.php";
|
require "misc/header.php";
|
||||||
?>
|
?>
|
||||||
|
|
||||||
|
@ -52,6 +52,7 @@
|
||||||
<option value=\"amoled\">AMOLED</option>
|
<option value=\"amoled\">AMOLED</option>
|
||||||
<option value=\"light\">Light</option>
|
<option value=\"light\">Light</option>
|
||||||
<option value=\"auto\">Auto</option>
|
<option value=\"auto\">Auto</option>
|
||||||
|
<option value=\"dracula\">Dracula</option>
|
||||||
<option value=\"nord\">Nord</option>
|
<option value=\"nord\">Nord</option>
|
||||||
<option value=\"night_owl\">Night Owl</option>
|
<option value=\"night_owl\">Night Owl</option>
|
||||||
<option value=\"discord\">Discord</option>
|
<option value=\"discord\">Discord</option>
|
||||||
|
@ -76,7 +77,7 @@
|
||||||
</div>
|
</div>
|
||||||
<h2>Privacy friendly frontends</h2>
|
<h2>Privacy friendly frontends</h2>
|
||||||
<p>For an example if you want to view YouTube without getting spied on, click on "Invidious", find the instance that is most suitable for you then paste it in (correct format: https://example.com)</p>
|
<p>For an example if you want to view YouTube without getting spied on, click on "Invidious", find the instance that is most suitable for you then paste it in (correct format: https://example.com)</p>
|
||||||
<div class="instances-container">
|
<div class="instances-container">
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
$frontends = array(
|
$frontends = array(
|
||||||
|
@ -90,7 +91,7 @@
|
||||||
"libremdb" => array("https://github.com/zyachel/libremdb", "IMDb"),
|
"libremdb" => array("https://github.com/zyachel/libremdb", "IMDb"),
|
||||||
"breezewiki" => array("https://gitdab.com/cadence/breezewiki", "Fandom")
|
"breezewiki" => array("https://gitdab.com/cadence/breezewiki", "Fandom")
|
||||||
);
|
);
|
||||||
|
|
||||||
foreach($frontends as $frontend => $info)
|
foreach($frontends as $frontend => $info)
|
||||||
{
|
{
|
||||||
echo "<div>";
|
echo "<div>";
|
||||||
|
|
26
static/css/dracula.css
Normal file
26
static/css/dracula.css
Normal file
|
@ -0,0 +1,26 @@
|
||||||
|
:root {
|
||||||
|
--main-bg: #282A36;
|
||||||
|
--main-fg: #F8F8F2;
|
||||||
|
|
||||||
|
--result-link-fg: #8BE9FD;
|
||||||
|
--result-fg: #6272A4;
|
||||||
|
|
||||||
|
--button-bg: #44475A;
|
||||||
|
|
||||||
|
--special-result-border: opacity 50;
|
||||||
|
--special-text-background: #44475A;
|
||||||
|
--special-text-color: #F8F8F2;
|
||||||
|
|
||||||
|
--search-container-text-color: #F8F8F2;
|
||||||
|
--search-container-background-color: #44475A;
|
||||||
|
--search-container-background-border: #6272A4;
|
||||||
|
|
||||||
|
--search-form-background-color: #21222C;
|
||||||
|
|
||||||
|
--border: #6272A4;
|
||||||
|
|
||||||
|
--footer-fg: #C2C2C2;
|
||||||
|
--footer-bg: #44475A;
|
||||||
|
|
||||||
|
color-scheme: dark;
|
||||||
|
}
|
Loading…
Reference in a new issue