/** * Update the whitelist in the proper format * * @param $b array */ private function _setWhitelistOption($b) { $data = $this->_core->getData(); natsort($b); $x = implode("\r\n", $b); $data['lists']['whitelist'] = $x; $this->_core->saveData($data); }
/** * Updates the spam counter */ private function _updateSpamCounter() { $period = date('Ym'); if (array_key_exists($period, $this->_core_data['counters'])) { $this->_core_data['counters'][$period] += 1; } else { $this->_core_data['counters'][$period] = 1; } $this->_core->saveData($this->_core_data); }