Source
case (bool) preg_match('/web.dashboard.widget.navtree.item-\d+.toggle/', $this->getInput('idx')):
<?php
/*
** Zabbix
** Copyright (C) 2001-2024 Zabbix SIA
**
** This program is free software; you can redistribute it and/or modify
** it under the terms of the GNU General Public License as published by
** the Free Software Foundation; either version 2 of the License, or
** (at your option) any later version.
**
** This program is distributed in the hope that it will be useful,
** but WITHOUT ANY WARRANTY; without even the implied warranty of
** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
** GNU General Public License for more details.
**
** You should have received a copy of the GNU General Public License
** along with this program; if not, write to the Free Software
** Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
**/
class CControllerProfileUpdate extends CController {
protected function checkInput() {
$fields = [
'idx' => 'required|string',
'value_int' => 'int32',
'value_str' => 'string',
'idx2' => 'array_id'
];
$ret = $this->validateInput($fields);
if ($ret) {
switch ($this->getInput('idx')) {
case 'web.actionconf.filter.active':
case 'web.auditacts.filter.active':
case 'web.auditlog.filter.active':
case 'web.avail_report.filter.active':
case 'web.charts.filter.active':
case 'web.correlation.filter.active':
case 'web.dashboard.filter.active':
case 'web.dashboard.hostid':
case 'web.discovery.filter.active':
case 'web.discoveryconf.filter.active':
case 'web.groups.filter.active':
case 'web.hostinventories.filter.active':
case 'web.hostinventoriesoverview.filter.active':
case 'web.hosts.filter.active':
case 'web.hosts.graphs.filter.active':
case 'web.hosts.host_discovery.filter.active':
case 'web.hosts.httpconf.filter.active':
case 'web.hosts.items.filter.active':
case 'web.hosts.triggers.filter.active':
case 'web.hostsmon.filter.active':
case 'web.httpdetails.filter.active':
case 'web.item.graph.filter.active':
case 'web.layout.mode':
case 'web.maintenance.filter.active':
case 'web.media_types.filter.active':
case 'web.modules.filter.active':
case 'web.problem.filter.active':
case 'web.proxies.filter.active':