<?php
defined('_VALID') or die('Restricted Access!');
class VCaptcha
{
protected $cfg;
public function __construct()
{
$this->cfg = VF::cfg('library.captcha');
}
public function getDriver()
{
VF::load('framework.captcha.'.$this->cfg['driver']);
$captcha_class = 'VCaptcha_Driver_'.$this->cfg['driver'];
return $captcha = new $captcha_class();
}
}
?>