diff --git a/include/staff/header.inc.php b/include/staff/header.inc.php index b0a7c4efef46bfa5ce923ac251beb101c3125293..1aba15ca8608009d25d7f495918ca1f7be6dfdc9 100644 --- a/include/staff/header.inc.php +++ b/include/staff/header.inc.php @@ -2,11 +2,6 @@ <html> <head> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> - <?php - if(defined('AUTO_REFRESH') && is_numeric(AUTO_REFRESH_RATE) && AUTO_REFRESH_RATE>0){ //Refresh rate - echo '<meta http-equiv="refresh" content="'.AUTO_REFRESH_RATE.'" />'; - } - ?> <title>osTicket Staff Control Panel</title> <!--[if IE]> <style type="text/css"> @@ -21,6 +16,11 @@ <script type="text/javascript" src="./js/scp.js"></script> <link rel="stylesheet" href="./css/scp.css" media="screen"> <link rel="stylesheet" href="./css/typeahead.css" media="screen"> + <?php + if($ost && ($headers=$ost->getExtraHeaders())) { + echo "\n\t".implode("\n\t", $headers)."\n"; + } + ?> </head> <body> <div id="container"> diff --git a/scp/tickets.php b/scp/tickets.php index 567c3f69755525aca1146ce8433a44e2485c6fc3..bd5bebac2abe359de5c2a89b62945abbe599fc46 100644 --- a/scp/tickets.php +++ b/scp/tickets.php @@ -483,9 +483,11 @@ if($ticket) { if($_REQUEST['a']=='search' && !$_REQUEST['status']) $nav->setActiveSubMenu(-1); + //$ost->addExtraHeader('<meta http-equiv="refresh" content="'.$min*60.'" />'); + //set refresh rate if the user has it configured if(!$_POST && $_REQUEST['a']!='search' && ($min=$thisstaff->getRefreshRate())) - define('AUTO_REFRESH', $min*60); + $ost->addExtraHeader('<meta http-equiv="refresh" content="'.($min*60).'" />'); } require_once(STAFFINC_DIR.'header.inc.php');