Session timeout feature works now.
This commit is contained in:
@ -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
19
htdocs/policy.html
Normal 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>
|
@ -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>
|
||||
|
Reference in New Issue
Block a user