1 | <?php |
---|
2 | # -- BEGIN LICENSE BLOCK --------------------------------------- |
---|
3 | # |
---|
4 | # This file is part of Antispam, a plugin for Dotclear 2. |
---|
5 | # |
---|
6 | # Copyright (c) 2003-2013 Olivier Meunier & Association Dotclear |
---|
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 ----------------------------------------- |
---|
12 | if (!defined('DC_RC_PATH')) {return;} |
---|
13 | |
---|
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'; |
---|
18 | |
---|
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'; |
---|
23 | |
---|
24 | $core->spamfilters = array('dcFilterIP', 'dcFilterIpLookup', 'dcFilterWords', 'dcFilterLinksLookup'); |
---|
25 | |
---|
26 | $core->url->register('spamfeed', 'spamfeed', '^spamfeed/(.+)$', array('dcAntispamURL', 'spamFeed')); |
---|
27 | $core->url->register('hamfeed', 'hamfeed', '^hamfeed/(.+)$', array('dcAntispamURL', 'hamFeed')); |
---|