Version 3.2.3
This commit is contained in:
1 parent
ae5c01cc78
commit
78706903a2
2641 files changed
+228363
-201264
No files matched your search
@@ -1,123 +1,69 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* <pre>
|
||||
* Invision Power Services
|
||||
* IP.Board v3.1.4
|
||||
* CAPTCHA abstraction - easily create, check and display CAPTHCA images
|
||||
* Last Updated: $Date: 2010-01-15 10:18:25 -0500 (Fri, 15 Jan 2010) $
|
||||
* </pre>
|
||||
*
|
||||
* @author $Author: bfarber $
|
||||
* @copyright (c) 2001 - 2009 Invision Power Services, Inc.
|
||||
* @license http://www.invisionpower.com/community/board/license.html
|
||||
* @package IP.Board
|
||||
* @subpackage Kernel
|
||||
* @link http://www.invisionpower.com
|
||||
* @file classCaptcha.php Provides methods to handle CAPTCHA abstraction - easily create, check and display CAPTHCA images
|
||||
*~TERABYTE_DOC_READY~
|
||||
* $Copyright: (c) 2001 - 2011 Invision Power Services, Inc.$
|
||||
* $License: This is NULLED!
|
||||
* $Author: ips_terabyte $
|
||||
* @since Friday 19th May 2006 17:33
|
||||
* @version $Revision: 370 $
|
||||
* $LastChangedDate: 2011-03-11 12:41:48 -0500 (Fri, 11 Mar 2011) $
|
||||
* @version v3.2.3
|
||||
* $Revision: 8042 $
|
||||
*/
|
||||
|
||||
/**
|
||||
*
|
||||
* @class classCaptcha
|
||||
* @brief Provides methods to handle CAPTCHA abstraction - easily create, check and display CAPTHCA images
|
||||
*
|
||||
*/
|
||||
class classCaptcha
|
||||
{
|
||||
/**
|
||||
* Registry object
|
||||
* Registry Object Shortcuts
|
||||
*
|
||||
* @access protected
|
||||
* @var object
|
||||
* @var $registry
|
||||
* @var $settings
|
||||
*/
|
||||
protected $registry;
|
||||
public $registry;
|
||||
public $settings;
|
||||
|
||||
/**
|
||||
* Database object
|
||||
* Object that stored the plug in class
|
||||
*
|
||||
* @access protected
|
||||
* @var object
|
||||
* @var $_plugInClass
|
||||
*/
|
||||
protected $DB;
|
||||
|
||||
/**
|
||||
* Settings object
|
||||
*
|
||||
* @access protected
|
||||
* @var object
|
||||
*/
|
||||
protected $settings;
|
||||
|
||||
/**
|
||||
* Request object
|
||||
*
|
||||
* @access protected
|
||||
* @var object
|
||||
*/
|
||||
protected $request;
|
||||
|
||||
/**
|
||||
* Language object
|
||||
*
|
||||
* @access protected
|
||||
* @var object
|
||||
*/
|
||||
protected $lang;
|
||||
|
||||
/**
|
||||
* Member object
|
||||
*
|
||||
* @access protected
|
||||
* @var object
|
||||
*/
|
||||
protected $member;
|
||||
|
||||
/**
|
||||
* Member data object
|
||||
*
|
||||
* @access protected
|
||||
* @var object
|
||||
*/
|
||||
protected $memberData;
|
||||
|
||||
/**
|
||||
* Plug in class
|
||||
*
|
||||
* @access private
|
||||
* @var object
|
||||
*/
|
||||
private $_plugInClass;
|
||||
protected $_plugInClass;
|
||||
|
||||
/**
|
||||
* Constructor
|
||||
*
|
||||
* @access public
|
||||
* @param object ipsRegistry
|
||||
* @return void
|
||||
* @param object $registry Registry Object
|
||||
* @return @e void
|
||||
*/
|
||||
public function __construct( ipsRegistry $registry )
|
||||
{
|
||||
$this->registry = $registry;
|
||||
$this->DB = $this->registry->DB();
|
||||
$this->registry = $registry;
|
||||
$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' ) )
|
||||
if ( ! is_file( IPS_KERNEL_PATH . 'classCaptchaPlugin/' . $plugin . '.php' ) )
|
||||
{
|
||||
$plugin = 'default';
|
||||
}
|
||||
|
||||
require_once( IPS_KERNEL_PATH . 'classCaptchaPlugin/' . $plugin . '.php' );
|
||||
require_once( IPS_KERNEL_PATH . 'classCaptchaPlugin/' . $plugin . '.php' );/*noLibHook*/
|
||||
$this->_plugInClass = new captchaPlugIn( $registry );
|
||||
}
|
||||
|
||||
/**
|
||||
* Magic Call method
|
||||
* Magic __call method
|
||||
*
|
||||
* @param string Method Name
|
||||
* @param mixed Method arguments
|
||||
* @return mixed
|
||||
* @param string $method Method name
|
||||
* @param mixed $arguments Method arguments
|
||||
* @return @e mixed
|
||||
*/
|
||||
public function __call( $method, $arguments )
|
||||
{
|
||||
@@ -134,9 +80,8 @@ class classCaptcha
|
||||
/**
|
||||
* Magic __get method
|
||||
*
|
||||
* @access public
|
||||
* @param mixed
|
||||
* @return mixed
|
||||
* @param string $name Property name
|
||||
* @return @e mixed
|
||||
*/
|
||||
public function __get( $name )
|
||||
{
|
||||
@@ -149,5 +94,4 @@ class classCaptcha
|
||||
trigger_error( $name . " не существует", E_USER_ERROR );
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user