mirror of
https://github.com/hnhx/librex.git
synced 2025-04-29 14:09:27 -04: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.pufe.org](https://librex.pufe.org/) | ❌ | ❌ | :new_zealand: NZ |
|
||||||
| [librex.ratakor.com](https://librex.ratakor.com/) | ❌ | ❌ | 🇫🇷 FR |
|
| [librex.ratakor.com](https://librex.ratakor.com/) | ❌ | ❌ | 🇫🇷 FR |
|
||||||
| [search.tildevarsh.in](https://search.tildevarsh.in/) | ❌ | ❌ | 🇮🇳 IN |
|
| [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 |
|
| [librex.myroware.eu](https://librex.myroware.eu/) | ❌ | ❌ | 🇩🇪 DE |
|
||||||
<br>
|
<br>
|
||||||
|
|
||||||
|
|
|
@ -90,12 +90,6 @@
|
||||||
"i2p": null,
|
"i2p": null,
|
||||||
"country": "IN"
|
"country": "IN"
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"clearnet": "https://librex.yogeshlamichhane.com.np/",
|
|
||||||
"tor": null,
|
|
||||||
"i2p": null,
|
|
||||||
"country": "GB"
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"clearnet": "https://librex.myroware.eu",
|
"clearnet": "https://librex.myroware.eu",
|
||||||
"tor": null,
|
"tor": null,
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<div class="footer-container">
|
<div class="footer-container">
|
||||||
<a href="./">LibreX</a>
|
<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="./settings.php">Settings</a>
|
||||||
<a href="./api.php" target="_blank">API</a>
|
<a href="./api.php" target="_blank">API</a>
|
||||||
<a href="./donate.php">Donate ❤️</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>
|
<title>
|
||||||
<?php
|
<?php
|
||||||
|
@ -44,7 +49,14 @@
|
||||||
foreach ($categories as $category)
|
foreach ($categories as $category)
|
||||||
{
|
{
|
||||||
$category_index = array_search($category, $categories);
|
$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>
|
</div>
|
||||||
|
@ -52,9 +64,6 @@
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
$config = require "config.php";
|
|
||||||
require "misc/tools.php";
|
|
||||||
|
|
||||||
|
|
||||||
$page = isset($_REQUEST["p"]) ? (int) $_REQUEST["p"] : 0;
|
$page = isset($_REQUEST["p"]) ? (int) $_REQUEST["p"] : 0;
|
||||||
|
|
||||||
|
|
|
@ -35,6 +35,11 @@ a,
|
||||||
color: #bd93f9;
|
color: #bd93f9;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.sub-search-button-wrapper .active {
|
||||||
|
border-bottom: 2px #bd93f9 solid;
|
||||||
|
padding-bottom: 6px;
|
||||||
|
}
|
||||||
|
|
||||||
a:hover,
|
a:hover,
|
||||||
.text-result-wrapper h2:hover {
|
.text-result-wrapper h2:hover {
|
||||||
text-decoration: underline;
|
text-decoration: underline;
|
||||||
|
|
Loading…
Add table
Reference in a new issue