mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-27 15:01:04 +01:00
co-authored by
DreamySkrell <>
parent
09ff36dc2f
commit
4a488f14b9
@@ -440,16 +440,18 @@ function runByond(uri) {
|
||||
window.location = uri;
|
||||
}
|
||||
|
||||
var cookieNamespace = "nss_aurora_";
|
||||
|
||||
function setCookie(cname, cvalue, exdays) {
|
||||
cvalue = escaper(cvalue);
|
||||
var d = new Date();
|
||||
d.setTime(d.getTime() + (exdays*24*60*60*1000));
|
||||
var expires = 'expires='+d.toUTCString();
|
||||
document.cookie = cname + '=' + cvalue + '; ' + expires + "; path=/";
|
||||
document.cookie = cookieNamespace + cname + '=' + cvalue + '; ' + expires + "; path=/";
|
||||
}
|
||||
|
||||
function getCookie(cname) {
|
||||
var name = cname + '=';
|
||||
var name = cookieNamespace + cname + '=';
|
||||
var ca = document.cookie.split(';');
|
||||
for(var i=0; i < ca.length; i++) {
|
||||
var c = ca[i];
|
||||
|
||||
Reference in New Issue
Block a user