1 | <?php |
---|
2 | # ***** BEGIN LICENSE BLOCK ***** |
---|
3 | # |
---|
4 | # This file is part of Contribute, a plugin for Dotclear 2 |
---|
5 | # Copyright (C) 2008,2009,2010 Moe (http://gniark.net/) |
---|
6 | # |
---|
7 | # Contribute is free software; you can redistribute it and/or |
---|
8 | # modify it under the terms of the GNU General Public License v2.0 |
---|
9 | # as published by the Free Software Foundation. |
---|
10 | # |
---|
11 | # Contribute is distributed in the hope that it will be useful, |
---|
12 | # but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
13 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
---|
14 | # GNU General Public License for more details. |
---|
15 | # |
---|
16 | # You should have received a copy of the GNU General Public License |
---|
17 | # along with this program; if not, see <http://www.gnu.org/licenses/>. |
---|
18 | # |
---|
19 | # Icon (icon.png) is from Silk Icons : |
---|
20 | # <http://www.famfamfam.com/lab/icons/silk/> |
---|
21 | # |
---|
22 | # ***** END LICENSE BLOCK ***** |
---|
23 | |
---|
24 | if (!defined('DC_RC_PATH')) {return;} |
---|
25 | |
---|
26 | $__autoload['contribute'] = |
---|
27 | dirname(__FILE__).'/inc/lib.contribute.php'; |
---|
28 | $__autoload['contributeAntispam'] = |
---|
29 | dirname(__FILE__).'/inc/lib.antispam.contribute.php'; |
---|
30 | $__autoload['contributeDocument'] = |
---|
31 | dirname(__FILE__).'/inc/lib.contribute.document.php'; |
---|
32 | |
---|
33 | # inspired by contactMe/_public.php |
---|
34 | $core->url->register('contribute','contribute', |
---|
35 | '^contribute(?:/(.+))?$',array('contributeDocument','page')); |
---|
36 | |
---|
37 | require_once(dirname(__FILE__).'/_widget.php'); |
---|
38 | |
---|
39 | ?> |
---|