registry = $registry; $this->settings =& $this->registry->fetchSettings(); $plugin = $this->settings['bot_antispam_type']; if ( ! is_file( IPS_KERNEL_PATH . 'classCaptchaPlugin/' . $plugin . '.php' ) ) { $plugin = 'default'; } require_once( IPS_KERNEL_PATH . 'classCaptchaPlugin/' . $plugin . '.php' );/*noLibHook*/ $this->_plugInClass = new captchaPlugIn( $registry ); } /** * Magic __call method * * @param string $method Method name * @param mixed $arguments Method arguments * @return @e 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 * * @param string $name Property name * @return @e mixed */ public function __get( $name ) { if ( property_exists( $this->_plugInClass, $name ) ) { return $this->_plugInClass->$name; } else { trigger_error( $name . " не существует", E_USER_ERROR ); } } }