webformConfig(); authentication_require_role($formconf['required_role']); if ($handler->init($id)) { # errors will be displayed as last step anyway, no need for duplicated code ;-) if ($active != '0' && $active != '1') { die(Config::Lang('invalid_parameter')); } if ($handler->set(array('active' => $active))) { $handler->save(); } } flash_error($handler->errormsg); flash_info($handler->infomsg); if ($formconf['listview'] == 'list-virtual.php') { $bits = []; $bits['domain'] = $_SESSION['list-virtual:domain'] ?? null; $bits['limit'] = $_SESSION['list-virtual:limit'] ?? null; header("Location: " . $formconf['listview'] . '?' . http_build_query(array_filter($bits))); exit(0); } header("Location: " . $formconf['listview']); exit; /* vim: set expandtab softtabstop=4 tabstop=4 shiftwidth=4: */