protected function processValid() { global $cfg; //$groupModifyPath = array('Administration', 'Authentication', 'Groups', 'Modify'); //Load class variable groupToEdit if (isset($this->fieldData['groupToEdit'])) { $this->groupToEdit = $this->fieldData['groupToEdit']; //The is_numeric call protects against sql injection on this variable if (!is_numeric($this->fieldData['groupToEdit'])) { $badgid = $this->fieldData['groupToEdit']; throw new LoggedException("An invalid group id was passed ({$badgid})", 0, self::module, 'error'); } } if ($this->formName == 'groupRealmForm') { AuthUtil::requireRealm(30); //Groups - Modify //If groupToEdit, rguid, and task are specified then conduct the task //It is not possible to conduct a task without this information if (isset($this->fieldData['groupToEdit']) && $this->fieldData['groupToEdit'] != "" && isset($this->fieldData['rguid']) && $this->fieldData['rguid'] != "" && isset($this->fieldData['task']) && $this->fieldData['task'] != "") { $this->conductMainFormTask(); } } elseif ($this->formName == 'groupDetailsForm' || $this->formName == 'addGroupForm') { AuthUtil::requireRealm(30); //Group - modify //Save the details if the detailsForm is submitted if (!isset($this->fieldData['groupToEdit']) || $this->fieldData['groupToEdit'] == "") { $createNew = true; } else { $createNew = false; } $this->saveDetails($createNew); if ($createNew) { $this->fieldData['newGroupID'] = $this->groupToEdit; } } elseif ($this->formName == 'groupDeleteForm') { $this->deleteGroup($this->fieldData['groupToEdit']); } }