File: D:/HostingSpaces/SBogers10/tops.komma.pro/wwwroot/lib/form/types/field_type_bot_check.class.php
<?php
/**
* field_type_text.class.php
* Created by Komma Mediadesign.
* Author: mike
* Date: 13/12/13
*/
class Field_Type_Bot_Check extends Form_Field
{
public function __construct()
{
parent::__construct();
}
/*
* Create output
* @return string
*/
public function generate()
{
return '';
}
/**
* A bot would probably fill the hidden birthday field
* a human can't see the field so it would be empty
*
* @return bool
*/
public function isHuman()
{
return isset($_POST['secretCode']) && $_POST['secretCode'] == 'isHuman';
}
}