require_once dirname(__FILE__).'/include/config.inc.php';
require_once dirname(__FILE__).'/include/graphs.inc.php';
require_once dirname(__FILE__).'/include/screens.inc.php';
require_once dirname(__FILE__).'/include/blocks.inc.php';
$page['title'] = _('Host screens');
$page['file'] = 'screens.php';
$page['scripts'] = ['effects.js', 'dragdrop.js', 'class.calendar.js', 'gtlc.js', 'flickerfreescreen.js',
$page['type'] = detect_page_type(PAGE_TYPE_HTML);
$page['web_layout_mode'] = CViewHelper::loadLayoutMode();
define('ZBX_PAGE_DO_JS_REFRESH', 1);
require_once dirname(__FILE__).'/include/page_header.php';
'hostid' => [T_ZBX_INT, O_OPT, P_SYS, DB_ID, null],
'tr_groupid' => [T_ZBX_INT, O_OPT, P_SYS, DB_ID, null],
'tr_hostid' => [T_ZBX_INT, O_OPT, P_SYS, DB_ID, null],
'screenid' => [T_ZBX_INT, O_OPT, P_SYS|P_NZERO, DB_ID, null],
'step' => [T_ZBX_INT, O_OPT, P_SYS, BETWEEN(0, 65535), null],
'from' => [T_ZBX_RANGE_TIME, O_OPT, P_SYS, null, null],
'to' => [T_ZBX_RANGE_TIME, O_OPT, P_SYS, null, null],
'reset' => [T_ZBX_STR, O_OPT, P_SYS, IN('"reset"'), null]
validateTimeSelectorPeriod(getRequest('from'), getRequest('to'));
if ($page['type'] == PAGE_TYPE_JS || $page['type'] == PAGE_TYPE_HTML_BLOCK) {
require_once dirname(__FILE__).'/include/page_footer.php';
'hostid' => getRequest('hostid', 0),
'screenid' => getRequest('screenid', CProfile::get('web.hostscreen.screenid', null)),