Compare commits

...

17 Commits

Author SHA1 Message Date
Fijxu 7f5950a5ff Merge remote-tracking branch 'librey/main' into librey 2023-08-18 01:47:22 -04:00
Fijxu 2f87e05d6e Merge branch 'librex_fallback' 2023-08-11 01:33:04 -04:00
Fijxu d4e467c9a1 Merge branch 'mmatteini-fix-save-settings' 2023-08-11 01:25:45 -04:00
Michele d2eb12c96f Fixed additional issues with checkboxes and reset. 2023-08-09 17:58:48 +02:00
Michele 0738ecab20 Fixed a bug causing settings page to stop working after saving once. 2023-08-09 15:27:54 +02:00
davidovski b783acb506 Filter reqests to self on fallback 2023-08-07 18:27:54 +01:00
davidovski 3f2cd3fdb3 Copy settings cookies when making a call to other instance 2023-08-07 17:01:12 +01:00
davidovski 7214e4e729 Don't accept a fallback instance with a single result 2023-08-07 15:33:57 +01:00
davidovski 4349ef54ea Remove automtic redirection setting 2023-08-07 15:13:29 +01:00
davidovski feef1f4525 Try different instance if fallback fails 2023-08-07 15:05:41 +01:00
davidovski eecaae4a03 Use librex as fallback search engine 2023-08-07 14:54:25 +01:00
davidovski b0f449671d Fix checkboxes not unchecking when saving 2023-08-06 13:27:40 +01:00
davidovski ff1db195d1 Add disable automatic redirection setting 2023-08-06 13:09:06 +01:00
Fijxu e18baedc45 Merge remote-tracking branch 'upstream/main' 2023-06-29 22:15:16 -04:00
Fijxu 7c9977fa3f Merge remote-tracking branch 'upstream/main' 2023-06-01 23:54:56 -04:00
Fijxu eb5f6c0f32 Merge remote-tracking branch 'upstream/main' 2023-05-05 12:21:44 -04:00
Fijxu ffc5e556bc Add donation link 2023-03-17 15:09:46 -03:00
2 changed files with 12 additions and 14 deletions

View File

@ -4,12 +4,13 @@
<a href="./instances.php" target="_blank">Instances</a>
<a href="./settings.php">Settings</a>
<a href="./api.php" target="_blank">API</a>
<a href="./donate.php">Donate ❤️</a>
<a href="https://zzls.xyz/donate">Donate to the hoster (the one hosting this)</a>
<a href="./donate.php">Donate to the developer (hnhx)</a>
</div>
<div class="git-container">
<?php
$hash = file_get_contents(".git/refs/heads/main");
echo "<a href=\"https://github.com/Ahwxorg/librey/commit/$hash\" target=\"_blank\">Latest commit: $hash</a>";
echo "<a href=\"https://git.zzls.xyz/fijxu/librex/commit/$hash\" target=\"_blank\">Latest commit: $hash</a>";
?>
</div>
</body>

View File

@ -11,33 +11,30 @@
{
$parts = explode("=", $cookie);
$name = trim($parts[0]);
setcookie($name, "", time() - 1000);
setcookie($name, "", time() - 1000, '/');
}
}
}
// save new cookies
if (isset($_REQUEST["save"]))
{
foreach($_POST as $key=>$value)
{
if (!empty($value))
{
setcookie($key, $value, time() + (86400 * 90), '/');
}
else
{
setcookie($key, "", time() - 1000);
}
if (empty($value) || $key === "save")
continue;
setcookie($key, $value, time() + (86400 * 90), '/');
}
}
if (isset($_REQUEST["save"]) || isset($_REQUEST["reset"]))
{
header("Location: ./");
die();
}
require "misc/header.php";
require "misc/header.php";
?>
<title>LibreY - Settings</title>