/**
  * @see Form::save()
  */
 public function save()
 {
     parent::save();
     if ($this->action == 'spider_save') {
         AdminTools::saveSpider($this->spiderID, $this->spiderCur);
         $this->spiderCur = AdminTools::getSpider($this->spiderID);
         $this->sucMsg = WCF::getLanguage()->get('wcf.acp.adminTools.success.saved');
     } else {
         if ($this->action == 'spider_delete') {
             AdminTools::deleteSpider($this->spiderID);
             $this->spiderCur = array();
             $this->spiderID = 0;
             $this->sucMsg = WCF::getLanguage()->get('wcf.acp.adminTools.success.deleted');
         } else {
             if ($this->action == 'spider_sync') {
                 AdminTools::syncSpider(true);
             } else {
                 if ($this->action == 'spider_import') {
                     self::importSpider();
                 } else {
                     if ($this->action == 'board') {
                         AdminTools::syncBoard($_POST);
                         $this->sucMsg = WCF::getLanguage()->get('wcf.acp.adminTools.success.saved');
                     } else {
                         if ($this->action == 'prefix') {
                             AdminTools::syncPrefBoard($_POST);
                             $this->sucMsg = WCF::getLanguage()->get('wcf.acp.adminTools.success.saved');
                         } else {
                             if ($this->action == 'ugrps') {
                                 AdminTools::syncUgrps($_POST);
                                 $this->sucMsg = WCF::getLanguage()->get('wcf.acp.adminTools.success.saved');
                             } else {
                                 if ($this->action == 'userOptions') {
                                     AdminTools::saveUserOptions($_POST);
                                     $this->userOptions = AdminTools::getUserOptions();
                                     $this->sucMsg = WCF::getLanguage()->get('wcf.acp.adminTools.success.saved');
                                 } else {
                                     if ($this->action == 'userDefaultOptions') {
                                         AdminTools::saveUserDefaultOptions($_POST);
                                         $this->userOptions = AdminTools::getUserOptions();
                                         $this->sucMsg = WCF::getLanguage()->get('wcf.acp.adminTools.success.saved');
                                     } else {
                                         if ($this->action == 'setLanguage') {
                                             $cnt = AdminTools::setLanguage($_POST);
                                             $this->languages = AdminTools::getLanguages();
                                             $this->setLanguageMsg = WCF::getLanguage()->get('wcf.acp.adminTools.toolBox.setLanguage.msg', array('$cnt' => $cnt));
                                         }
                                     }
                                 }
                             }
                         }
                     }
                 }
             }
         }
     }
 }