| 1 | <?php |
|---|
| 2 | # -- BEGIN LICENSE BLOCK --------------------------------------- |
|---|
| 3 | # |
|---|
| 4 | # This file is part of Antispam, a plugin for Dotclear 2. |
|---|
| 5 | # |
|---|
| 6 | # Copyright (c) 2003-2011 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 | global $__autoload, $core; |
|---|
| 15 | |
|---|
| 16 | $__autoload['dcSpamFilter'] = dirname(__FILE__).'/inc/class.dc.spamfilter.php'; |
|---|
| 17 | $__autoload['dcSpamFilters'] = dirname(__FILE__).'/inc/class.dc.spamfilters.php'; |
|---|
| 18 | $__autoload['dcAntispam'] = dirname(__FILE__).'/inc/lib.dc.antispam.php'; |
|---|
| 19 | $__autoload['dcAntispamURL'] = dirname(__FILE__).'/inc/lib.dc.antispam.url.php'; |
|---|
| 20 | |
|---|
| 21 | $__autoload['dcFilterIP'] = dirname(__FILE__).'/filters/class.dc.filter.ip.php'; |
|---|
| 22 | $__autoload['dcFilterIpLookup'] = dirname(__FILE__).'/filters/class.dc.filter.iplookup.php'; |
|---|
| 23 | $__autoload['dcFilterLinksLookup'] = dirname(__FILE__).'/filters/class.dc.filter.linkslookup.php'; |
|---|
| 24 | $__autoload['dcFilterWords'] = dirname(__FILE__).'/filters/class.dc.filter.words.php'; |
|---|
| 25 | |
|---|
| 26 | $core->spamfilters = array('dcFilterIP','dcFilterIpLookup','dcFilterWords','dcFilterLinksLookup'); |
|---|
| 27 | |
|---|
| 28 | $core->url->register('spamfeed','spamfeed','^spamfeed/(.+)$',array('dcAntispamURL','spamFeed')); |
|---|
| 29 | $core->url->register('hamfeed','hamfeed','^hamfeed/(.+)$',array('dcAntispamURL','hamFeed')); |
|---|
| 30 | ?> |
|---|