underline active category, disable icon for torrent/tor if the host disabled it, removed a dead instance

This commit is contained in:
hnhx 2023-01-13 13:08:12 +01:00
parent 9fad27104b
commit 5f7d81a7d6
5 changed files with 20 additions and 13 deletions

View File

@ -28,7 +28,6 @@
| [librex.pufe.org](https://librex.pufe.org/) | ❌ | ❌ | :new_zealand: NZ |
| [librex.ratakor.com](https://librex.ratakor.com/) | ❌ | ❌ | 🇫🇷 FR |
| [search.tildevarsh.in](https://search.tildevarsh.in/) | ❌ | ❌ | 🇮🇳 IN |
| [librex.yogeshlamichhane.com.np](https://librex.yogeshlamichhane.com.np/) | ❌ | ❌ | 🇬🇧 GB |
| [librex.myroware.eu](https://librex.myroware.eu/) | ❌ | ❌ | 🇩🇪 DE |
<br>

View File

@ -90,12 +90,6 @@
"i2p": null,
"country": "IN"
},
{
"clearnet": "https://librex.yogeshlamichhane.com.np/",
"tor": null,
"i2p": null,
"country": "GB"
},
{
"clearnet": "https://librex.myroware.eu",
"tor": null,

View File

@ -1,6 +1,6 @@
<div class="footer-container">
<a href="./">LibreX</a>
<a href="https://github.com/hnhx/librex/" target="_blank">Source &amp; Instance list</a>
<a href="https://github.com/hnhx/librex/" target="_blank">Source &amp; Instances</a>
<a href="./settings.php">Settings</a>
<a href="./api.php" target="_blank">API</a>
<a href="./donate.php">Donate ❤️</a>

View File

@ -1,4 +1,9 @@
<?php require "misc/header.php"; ?>
<?php
require "misc/header.php";
$config = require "config.php";
require "misc/tools.php";
?>
<title>
<?php
@ -44,7 +49,14 @@
foreach ($categories as $category)
{
$category_index = array_search($category, $categories);
echo "<a href=\"/search.php?q=" . $query . "&p=0&t=" . $category_index . "\"><img src=\"static/images/" . $category . "_result.png\" alt=\"" . $category . " result\" />" . ucfirst($category) . "</a>";
if (($config->disable_bittorent_search && $category_index == 3) ||
($config->disable_hidden_service_search && $category_index ==4))
{
continue;
}
echo "<a " . (($category_index == $type) ? "class=\"active\"" : "") . "href=\"/search.php?q=" . $query . "&p=0&t=" . $category_index . "\"><img src=\"static/images/" . $category . "_result.png\" alt=\"" . $category . " result\" />" . ucfirst($category) . "</a>";
}
?>
</div>
@ -52,9 +64,6 @@
</form>
<?php
$config = require "config.php";
require "misc/tools.php";
$page = isset($_REQUEST["p"]) ? (int) $_REQUEST["p"] : 0;

View File

@ -35,6 +35,11 @@ a,
color: #bd93f9;
}
.sub-search-button-wrapper .active {
border-bottom: 2px #bd93f9 solid;
padding-bottom: 6px;
}
a:hover,
.text-result-wrapper h2:hover {
text-decoration: underline;