mirror of
https://github.com/ACSPRI/queXS
synced 2024-04-02 12:12:16 +00:00
Added note to display if logged off due to inactivity
This commit is contained in:
13
endwork.php
13
endwork.php
@@ -42,21 +42,16 @@ include_once("lang.inc.php");
|
|||||||
*/
|
*/
|
||||||
include_once("functions/functions.xhtml.php");
|
include_once("functions/functions.xhtml.php");
|
||||||
|
|
||||||
xhtml_head(T_("End of work"),false);
|
xhtml_head(T_("End of work"));
|
||||||
|
|
||||||
print "<script type='text/javascript'>
|
if (isset($_GET['auto']))
|
||||||
function unhide()
|
|
||||||
{
|
{
|
||||||
document.getElementById('cati').style.visibility = 'visible';
|
print "<h1>" . T_("You have been automatically logged out of work due to inactivity") . "</h1>";
|
||||||
top.location = 'news://turnoffvoip';
|
|
||||||
}
|
}
|
||||||
</script>
|
|
||||||
</head>
|
|
||||||
<body>";
|
|
||||||
|
|
||||||
print "<h1>" . T_("Work has ended. That is it") . "</h1>";
|
print "<h1>" . T_("Work has ended. That is it") . "</h1>";
|
||||||
|
|
||||||
print "<p id='cati'><a href='index.php'>" . T_("Go back to work") . "</a></p>";
|
print "<p><a href='index.php'>" . T_("Go back to work") . "</a></p>";
|
||||||
|
|
||||||
xhtml_foot();
|
xhtml_foot();
|
||||||
|
|
||||||
|
|||||||
@@ -100,7 +100,7 @@ if (AUTO_LOGOUT_MINUTES !== false)
|
|||||||
$script = "<script type='text/javascript'>
|
$script = "<script type='text/javascript'>
|
||||||
$(document).nap(
|
$(document).nap(
|
||||||
function() {
|
function() {
|
||||||
location.replace('" . QUEXS_URL . "?endwork=endwork');
|
location.replace('" . QUEXS_URL . "?endwork=endwork&auto=auto');
|
||||||
},
|
},
|
||||||
function() {
|
function() {
|
||||||
//do nothing if woken up as shouldn't get here
|
//do nothing if woken up as shouldn't get here
|
||||||
|
|||||||
Reference in New Issue
Block a user