protected function load() { switch ($this->Params->get("stdcaptchatype", "")) { case 1: $captcha = new FMathCaptchaDrawer($this->Params); break; default: $captcha = new FStandardCaptchaDrawer($this->Params); } $captcha->Shuffle(); $captcha->Draw(); }
$this->Log->Write(JText::_("Error loading module. " . $db->getErrorMsg())); } */ $params = new JRegistry(); if (is_object($module)) { $params->loadJSON($module->params); } } switch ($params->get("stdcaptchatype", "")) { case 1: $Captcha = new FMathCaptchaDrawer($cid, $mid, $params); break; default: $Captcha = new FStandardCaptchaDrawer($cid, $mid, $params); } $Captcha->Shuffle(); $Captcha->Draw(); abstract class FCaptchaDrawer { protected $Params; protected $Namespace; protected $Charset; protected $Question; protected $Answer; protected $Image = array(); protected $Font = array(); protected $Background = array(); protected $Colors = array(); protected $DebugLog; public abstract function Shuffle(); public function __construct($cid, $mid, &$params)