Files
oav/dotclear._no/plugins/dcReCaptcha/_prepend.php
2023-03-20 12:18:38 +01:00

23 lines
714 B
PHP
Executable File

<?php
# -- BEGIN LICENSE BLOCK ----------------------------------
#
# This file is part of dcReCaptcha, a plugin for Dotclear 2.
#
# Copyright (c) 2013 Benoit de Marne and contributors
# benoit.de.marne@gmail.com
# Many thanks to Association Dotclear
#
# Licensed under the GPL version 2.0 license.
# A copy of this license is available in LICENSE file or at
# http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
#
# -- END LICENSE BLOCK ------------------------------------
if (!defined('DC_RC_PATH')) { return; }
# autoload classes
$__autoload['dcFilterReCaptcha'] = dirname(__FILE__).'/inc/class.dc.filter.recaptcha.php';
# add spam filter
$core->spamfilters[] = 'dcFilterReCaptcha';