コード例 #1
0
 /**
  * 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);
 }
 /**
  * PHP5 Constructor
  */
 public function __construct()
 {
     // Get The Registry
     $this->_settings = AVH_FDAS_Settings::getInstance();
     $this->_classes = AVH_FDAS_Classes::getInstance();
     // Initialize the plugin
     $this->_core = $this->_classes->load_class('Core', 'plugin', true);
     $this->_ipcachedb = $this->_classes->load_class('DB', 'plugin', true);
     $this->_visiting_ip = AVH_Visitor::getUserIp();
     $this->_visiting_email = '';
     $this->_core_options = $this->_core->getOptions();
     $this->_core_data = $this->_core->getData();
     $this->_spaminfo = null;
     $this->_spammer_detected = false;
     $this->_ip_in_white_list = false;
     $this->_ip_in_cache = false;
     $this->_spamcheck_functions_array[00] = 'Blacklist';
     $this->_spamcheck_functions_array[02] = 'IpCache';
     $this->_spamcheck_functions_array[05] = 'StopForumSpam';
     $this->_spamcheck_functions_array[10] = 'ProjectHoneyPot';
     $this->_spamcheck_functions_array[11] = 'Spamhaus';
 }