XOOPS  2.6.0
text.php
Go to the documentation of this file.
1 <?php
19 class XcaptchaText extends Xcaptcha
20 {
21  public $config = array();
22 
23  public $plugin;
24 
25  function __construct()
26  {
27  $this->xcaptcha_handler = Xcaptcha::getInstance();
28  $this->config = $this->xcaptcha_handler->loadConfig('text');
29  $this->plugin = 'text';
30  }
31 
32  function VerifyData()
33  {
35  $config = array();
36  $_POST['num_chars'] = $system->cleanVars($_POST, 'num_chars', 6, 'int');
37  foreach (array_keys($this->config) as $key) {
38  $config[$key] = $_POST[$key];
39  }
40  return $config;
41  }
42 }
static getInstance()
Definition: system.php:46
VerifyData()
Definition: text.php:32
static getInstance()
Definition: xcaptcha.php:40
__construct()
Definition: text.php:25