Commit e602c1d2 authored by Thomas Bella's avatar Thomas Bella

Add automatic page reload

Fixes #17
parent 70c6ac77
......@@ -35,3 +35,6 @@ define("EMAIL_NOTIFICATION_INTERVAL", json_encode([-3, 0, 1, 3, 7, 14, 29]));
// Enable or disable export of database (default: true)
define("EXPORT", true);
// Define interval for automatic page reload in minutes (default: false)
define("RELOAD", false);
......@@ -155,6 +155,13 @@ if (isset($_SESSION["active"]) && isset($_GET["ajax"])) {
<meta name="twitter:title" content="Certificate Monitor" />
<link rel="shortcut icon" type="image/x-icon" href="favicon.ico">
<?php
if (defined("RELOAD") && RELOAD != false && is_numeric(RELOAD) && !isset($_GET["manage"])) {
?>
<meta http-equiv="refresh" content="<?php echo RELOAD*60; ?>" />
<?php
}
?>
</head>
<body>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment