time() - 1000); } } } } if (isset($_REQUEST["save"])) { foreach($_POST as $key=>$value) { if (!empty($value)) { setcookie($key, $value, [ "expires" => time() + (86400 * 90), // Sets cookie to expire in 90 days "path" => "/", "domain" => "$domain", "secure" => true, // Prevent client-side JavaScript access to cookies "samesite" => "Strict" // Strict SameSite policy for better protection against CSRF attacks ]); } else { setcookie($key, "", time() - 1000); } } } } if (isset($_REQUEST["save"])) { foreach($_POST as $key=>$value) { if ($type > 1) return; echo "<div class="next-page-button-wrapper">"; if ($page != 0) { print_next_page_button("<<", 0, $query, $type); echo "</div>"; } ?> <title>LibreY - instances</title> </head> <body> <div class="misc-container"> <center> <h2>Libre<span class="Y">Y</span> instances</h2>