Revision 2095:1fceb8fc56a6,
1.4 KB
checked in by Denis Jean-Chirstian <contact@…>, 12 years ago
(diff) |
Now load _prepend.php files from dcModules::loadModuleFile(), cleanup officials plugins prepend files, addresses #1471, addresses #1716
|
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 ----------------------------------------- |
---|
| 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 | |
---|
[920] | 24 | $core->spamfilters = array('dcFilterIP','dcFilterIpLookup','dcFilterWords','dcFilterLinksLookup'); |
---|
[0] | 25 | |
---|
| 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.