This commit is contained in:
rsgrinko committed 2021-12-09 14:11:35 +03:00
1 parent 5d62842e54
commit c04de865d5
1 file changed
+19
+19
View File
@@ -82,6 +82,25 @@ if(!CUser::is_user() and $_SERVER['REQUEST_URI'] !== '/login.php') {
<link rel="stylesheet" id="css-app-custom" href="assets/css/custom.css" />
<script>
$(document).ready(function () {
setInterval(function () {
$.ajax({
url: "ajax/getDallasData.php",
data: {
userId: "<?php echo $USER['id']; ?>",
},
success: function (data) {
if(data.status !== 'ok') {
document.location.href = "login.php";
}
},
dataType: "json"
});
}, 5000);
});
</script>
</head>
<body class="app-ui layout-has-drawer layout-has-fixed-header">