case 'activateservermodule': $sm = ServerModule::getInstance(); //$sm->name = $_POST['modulename']; $sm->Create($_POST); Page::ManageServerModules(); exit; break; case 'disactivateservermodule': $sm = ServerModule::getInstance(); try { $sm->Delete($_REQUEST['moduleid']); } catch (Exception $e) { Page::$messages[] = array('type' => 'attention', 'message' => 'Fatal error catched while creating new customer: ' . $e); Page::message(); } Page::ManageServerModules(); exit; break; case 'addservergroup': $sg = new ServerGroups(); try { $sg->Create($_POST); } catch (Exception $e) { Page::$messages[] = array('type' => 'attention', 'message' => 'Fatal error catched during group creation. Error dump: ' . nl2br($e)); Page::message(); } Page::ManageServerGroups(); break; case 'addserverstep2': Page::AddServerStep2($_POST['servergroup']); break;