| Rev | Line | |
|---|
| [0] | 1 | <?php |
|---|
| 2 | # -- BEGIN LICENSE BLOCK --------------------------------------- |
|---|
| 3 | # |
|---|
| 4 | # This file is part of Antispam, a plugin for Dotclear 2. |
|---|
| 5 | # |
|---|
| [1179] | 6 | # Copyright (c) 2003-2013 Olivier Meunier & Association Dotclear |
|---|
| [0] | 7 | # Licensed under the GPL version 2.0 license. |
|---|
| 8 | # See LICENSE file or |
|---|
| 9 | # http://www.gnu.org/licenses/old-licenses/gpl-2.0.html |
|---|
| 10 | # |
|---|
| 11 | # -- END LICENSE BLOCK ----------------------------------------- |
|---|
| [3730] | 12 | if (!defined('DC_RC_PATH')) {return;} |
|---|
| [0] | 13 | |
|---|
| [3730] | 14 | $__autoload['dcSpamFilter'] = dirname(__FILE__) . '/inc/class.dc.spamfilter.php'; |
|---|
| 15 | $__autoload['dcSpamFilters'] = dirname(__FILE__) . '/inc/class.dc.spamfilters.php'; |
|---|
| 16 | $__autoload['dcAntispam'] = dirname(__FILE__) . '/inc/lib.dc.antispam.php'; |
|---|
| 17 | $__autoload['dcAntispamURL'] = dirname(__FILE__) . '/inc/lib.dc.antispam.url.php'; |
|---|
| [0] | 18 | |
|---|
| [3730] | 19 | $__autoload['dcFilterIP'] = dirname(__FILE__) . '/filters/class.dc.filter.ip.php'; |
|---|
| 20 | $__autoload['dcFilterIpLookup'] = dirname(__FILE__) . '/filters/class.dc.filter.iplookup.php'; |
|---|
| 21 | $__autoload['dcFilterLinksLookup'] = dirname(__FILE__) . '/filters/class.dc.filter.linkslookup.php'; |
|---|
| 22 | $__autoload['dcFilterWords'] = dirname(__FILE__) . '/filters/class.dc.filter.words.php'; |
|---|
| [0] | 23 | |
|---|
| [3730] | 24 | $core->spamfilters = array('dcFilterIP', 'dcFilterIpLookup', 'dcFilterWords', 'dcFilterLinksLookup'); |
|---|
| [0] | 25 | |
|---|
| [3730] | 26 | $core->url->register('spamfeed', 'spamfeed', '^spamfeed/(.+)$', array('dcAntispamURL', 'spamFeed')); |
|---|
| 27 | $core->url->register('hamfeed', 'hamfeed', '^hamfeed/(.+)$', array('dcAntispamURL', 'hamFeed')); |
|---|
Note: See
TracBrowser
for help on using the repository browser.