/** * @see Form::save() */ public function save() { parent::save(); if ($this->action == 'modify') { $tmp = AdminTools::saveLink($this->menuItemID, $_POST); if (!empty($tmp) && !headers_sent()) { header('Location: index.php?form=AdminToolsLinkSettings' . SID_ARG_2ND_NOT_ENCODED); exit; } } else { if ($this->action == 'delete' && !empty($this->menuItemID)) { AdminTools::deleteLink($this->menuItemID); if (!headers_sent()) { header('Location: index.php?form=AdminToolsLinkSettings' . SID_ARG_2ND_NOT_ENCODED); exit; } } else { if ($this->action == 'iFrame') { AdminTools::saveIframeSettings($_POST); } } } }