69 lines
1.8 KiB
PHP
69 lines
1.8 KiB
PHP
<?php
|
|
|
|
/**
|
|
* <pre>
|
|
* Invision Power Services
|
|
* IP.Board v3.1.4
|
|
* Virus scanner: Plugin example.
|
|
* The plugin system can be used to extend the virus scanner functionality by checking for arbitrary
|
|
* things to score the virus rating against. See the two links below for more ideas/suggestions.
|
|
* Last Updated: $Date: 2010-01-15 10:18:44 -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
|
|
* @link http://www.invisionpower.com
|
|
* @since Tue. 17th August 2004
|
|
* @version $Rev: 5713 $
|
|
*
|
|
* @link http://forums.invisionpower.com/index.php?autocom=tracker&showissue=8452
|
|
* @link http://forums.invisionpower.com/index.php?autocom=tracker&showissue=8453
|
|
*/
|
|
class virusScannerPlugin_example
|
|
{
|
|
/**#@+
|
|
* Registry Object Shortcuts
|
|
*
|
|
* @access protected
|
|
* @var object
|
|
*/
|
|
protected $registry;
|
|
protected $DB;
|
|
protected $settings;
|
|
protected $lang;
|
|
protected $member;
|
|
protected $cache;
|
|
/**#@-*/
|
|
|
|
/**
|
|
* Constructor
|
|
*
|
|
* @access public
|
|
* @param object ipsRegistry reference
|
|
* @return void
|
|
*/
|
|
public function __construct( ipsRegistry $registry )
|
|
{
|
|
$this->DB = $registry->DB();
|
|
$this->settings = $registry->settings();
|
|
$this->member = $registry->member();
|
|
$this->memberData =& $registry->member()->fetchMemberData();
|
|
$this->cache = $registry->cache();
|
|
$this->caches =& $registry->cache()->fetchCaches();
|
|
$this->request = $registry->request();
|
|
}
|
|
|
|
/**
|
|
* Run scorer
|
|
*
|
|
* @access public
|
|
* @param string This is the full path to the file currently being scanned
|
|
* @return integer Number of points to add to the score.
|
|
*/
|
|
public function run( $filepath )
|
|
{
|
|
return 0;
|
|
}
|
|
} |