Session timeout feature works now.

This commit is contained in:
Marat Fayzullin
2023-01-04 22:52:41 -05:00
parent d5e64e2dc0
commit d6e25e08b6
6 changed files with 32 additions and 4 deletions

View File

@ -19,7 +19,7 @@
var path = window.location.pathname;
var page = path.split("/").pop();
document.getElementById("pstt").innerHTML =
(page==="") && (${session_timeout}>0)?
((page==="") && (${session_timeout}>0))?
"<meta http-equiv=\"refresh\" content=\"${session_timeout}; url=${usage_policy_url}\">" : "";
</script>
</section>

19
htdocs/policy.html Normal file
View File

@ -0,0 +1,19 @@
<!DOCTYPE HTML>
<html>
<head>
<title>OpenWebRX+ Usage Policy</title>
<link rel="shortcut icon" type="image/x-icon" href="static/favicon.ico" />
<link rel="stylesheet" href="static/css/bootstrap.min.css" />
<link rel="stylesheet" type="text/css" href="static/css/admin.css" />
<meta charset="utf-8">
</head>
<body style="background-color:#000000;">
${header}
<div style="margin: 20% 20% 20% 20%;">
<h1 style="color:#ff0000;">OpenWebRX+ Usage Policy</h1>
<h2 style="text-align:justify;">
Please, do not leave the receiver unattended for prolonged time. The receiver
will stop after a while to allow other users to connect.
</h2>
</div>
</body>

View File

@ -1,7 +1,7 @@
<!DOCTYPE HTML>
<html>
<head>
<title>OpenWebRX Settings</title>
<title>OpenWebRX+ Settings</title>
<link rel="shortcut icon" type="image/x-icon" href="static/favicon.ico" />
<link rel="stylesheet" href="static/css/bootstrap.min.css" />
<link rel="stylesheet" type="text/css" href="static/css/admin.css" />
@ -38,4 +38,4 @@ ${header}
</div>
</div>
</div>
</body>
</body>