mirror of
https://github.com/hnhx/librex.git
synced 2025-04-29 14:09:27 -04:00
fixed the cookie settings
This commit is contained in:
parent
0405992309
commit
8964d4bfce
1 changed files with 5 additions and 5 deletions
10
settings.php
10
settings.php
|
@ -71,19 +71,19 @@
|
||||||
if (isset($_REQUEST["save"]))
|
if (isset($_REQUEST["save"]))
|
||||||
{
|
{
|
||||||
if (!empty($_REQUEST["invidious"]))
|
if (!empty($_REQUEST["invidious"]))
|
||||||
setcookie("invidious", $_REQUEST["invidious"]);
|
setcookie("invidious", $_REQUEST["invidious"], time() + (86400 * 90));
|
||||||
|
|
||||||
if (!empty($_REQUEST["bibliogram"]))
|
if (!empty($_REQUEST["bibliogram"]))
|
||||||
setcookie("bibliogram", $_REQUEST["bibliogram"]);
|
setcookie("bibliogram", $_REQUEST["bibliogram"], time() + (86400 * 90));
|
||||||
|
|
||||||
if (!empty($_REQUEST["nitter"]))
|
if (!empty($_REQUEST["nitter"]))
|
||||||
setcookie("nitter", $_REQUEST["nitter"]);
|
setcookie("nitter", $_REQUEST["nitter"], time() + (86400 * 90));
|
||||||
|
|
||||||
if (!empty($_REQUEST["libreddit"]))
|
if (!empty($_REQUEST["libreddit"]))
|
||||||
setcookie("libreddit", $_REQUEST["libreddit"]);
|
setcookie("libreddit", $_REQUEST["libreddit"], time() + (86400 * 90));
|
||||||
|
|
||||||
|
|
||||||
setcookie("theme", $_REQUEST["theme"]);
|
setcookie("theme", $_REQUEST["theme"], time() + (86400 * 90));
|
||||||
|
|
||||||
header("Location: /settings.php");
|
header("Location: /settings.php");
|
||||||
die();
|
die();
|
||||||
|
|
Loading…
Add table
Reference in a new issue