mirror of
https://github.com/hnhx/librex.git
synced 2025-01-25 02:03:04 -03:00
underline active category, disable icon for torrent/tor if the host disabled it, removed a dead instance
This commit is contained in:
parent
9fad27104b
commit
5f7d81a7d6
5 changed files with 20 additions and 13 deletions
|
@ -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>
|
||||
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
<div class="footer-container">
|
||||
<a href="./">LibreX</a>
|
||||
<a href="https://github.com/hnhx/librex/" target="_blank">Source & Instance list</a>
|
||||
<a href="https://github.com/hnhx/librex/" target="_blank">Source & Instances</a>
|
||||
<a href="./settings.php">Settings</a>
|
||||
<a href="./api.php" target="_blank">API</a>
|
||||
<a href="./donate.php">Donate ❤️</a>
|
||||
|
|
19
search.php
19
search.php
|
@ -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;
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue