You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Mods-for-HESK-Netsyms/js/autorefresh.php

7 lines
269 B
PHP

<?php
define('MINIMUM_REFRESH_THRESHOLD_IN_MILLISECONDS', 1000);
if ($_SESSION['autorefresh'] > MINIMUM_REFRESH_THRESHOLD_IN_MILLISECONDS) { ?>
(function(){
setTimeout("location.reload(true);",<?php echo $_SESSION['autorefresh']/1000; ?>);
})();
<?php } ?>