registry = $registry; $this->DB = $this->registry->DB(); $this->settings =& $this->registry->fetchSettings(); $this->request =& $this->registry->fetchRequest(); $this->lang = $this->registry->getClass('class_localization'); $this->member = $this->registry->member(); $this->memberData =& $this->registry->member()->fetchMemberData(); $plugin = $this->settings['bot_antispam_type']; if ( ! file_exists( IPS_KERNEL_PATH . 'classCaptchaPlugin/' . $plugin . '.php' ) ) { $plugin = 'default'; } require_once( IPS_KERNEL_PATH . 'classCaptchaPlugin/' . $plugin . '.php' ); $this->_plugInClass = new captchaPlugIn( $registry ); } /** * Magic Call method * * @param string Method Name * @param mixed Method arguments * @return mixed */ public function __call( $method, $arguments ) { if ( method_exists( $this->_plugInClass, $method ) ) { return $this->_plugInClass->$method( $arguments ); } else { trigger_error( $method . " не существует", E_USER_ERROR ); } } /** * Magic __get method * * @access public * @param mixed * @return mixed */ public function __get( $name ) { if ( property_exists( $this->_plugInClass, $name ) ) { return $this->_plugInClass->$name; } else { trigger_error( $name . " не существует", E_USER_ERROR ); } } }