Skip to content

Instantly share code, notes, and snippets.

@davist11
Created December 28, 2010 17:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save davist11/757426 to your computer and use it in GitHub Desktop.
Save davist11/757426 to your computer and use it in GitHub Desktop.
var $settings = array();
var $settings_default = array(
'honeepot_field' => 'honeepot',
'honeepot_error' => 'Sorry, but we think you might be a robot.'
);
// Setup with the default settings
function settings()
{
$settings['honeepot_field'] = $this->settings_default['honeepot_field'];
$settings['honeepot_error'] = $this->settings_default['honeepot_error'];
return $settings;
}
function Honeepot_ext($settings='')
{
$this->settings = $settings;
$this->EE =& get_instance();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment