Compare commits
17 Commits
be59098abd
...
7f5950a5ff
Author | SHA1 | Date |
---|---|---|
Fijxu | 7f5950a5ff | |
Fijxu | 2f87e05d6e | |
Fijxu | d4e467c9a1 | |
Michele | d2eb12c96f | |
Michele | 0738ecab20 | |
davidovski | b783acb506 | |
davidovski | 3f2cd3fdb3 | |
davidovski | 7214e4e729 | |
davidovski | 4349ef54ea | |
davidovski | feef1f4525 | |
davidovski | eecaae4a03 | |
davidovski | b0f449671d | |
davidovski | ff1db195d1 | |
Fijxu | e18baedc45 | |
Fijxu | 7c9977fa3f | |
Fijxu | eb5f6c0f32 | |
Fijxu | ffc5e556bc |
|
@ -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>
|
||||
|
|
21
settings.php
21
settings.php
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue