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->store(); } } flash_error($handler->errormsg); flash_info($handler->infomsg); header ("Location: " . $formconf['listview']); exit; /* vim: set expandtab softtabstop=4 tabstop=4 shiftwidth=4: */ ?>