1 | <?php |
---|
2 | # -- BEGIN LICENSE BLOCK ---------------------------------- |
---|
3 | # This file is part of rateIt, a plugin for Dotclear 2. |
---|
4 | # |
---|
5 | # Copyright (c) 2009 JC Denis and contributors |
---|
6 | # jcdenis@gdwd.com |
---|
7 | # |
---|
8 | # Licensed under the GPL version 2.0 license. |
---|
9 | # A copy of this license is available in LICENSE file or at |
---|
10 | # http://www.gnu.org/licenses/old-licenses/gpl-2.0.html |
---|
11 | # |
---|
12 | # -- END LICENSE BLOCK ------------------------------------ |
---|
13 | |
---|
14 | if (!defined('DC_RC_PATH')){return;} |
---|
15 | |
---|
16 | global $__autoload, $core; |
---|
17 | |
---|
18 | # Class |
---|
19 | $__autoload['rateIt'] = dirname(__FILE__).'/inc/class.rateit.php'; |
---|
20 | $__autoload['rateItRest'] = dirname(__FILE__).'/inc/class.rateit.rest.php'; |
---|
21 | |
---|
22 | # Public urls |
---|
23 | $core->url->register('rateItmodule', |
---|
24 | 'rateit','^rateit/(.+)$',array('urlRateIt','files')); |
---|
25 | $core->url->register('rateItpostform', |
---|
26 | 'rateitpost','^rateitpost/(.+)$',array('urlRateIt','postform')); |
---|
27 | $core->url->register('rateItservice', |
---|
28 | 'rateitservice','^rateitservice/$',array('urlRateIt','service')); |
---|
29 | |
---|
30 | # Generic class (Used on several plugins) |
---|
31 | if (!is_callable(array('libImagePath','getArray'))) |
---|
32 | require dirname(__FILE__).'/inc/lib.image.path.php'; |
---|
33 | |
---|
34 | # Add rateIt report on plugin activityReport |
---|
35 | if ($core->activityReport instanceof activityReport) |
---|
36 | { |
---|
37 | require_once dirname(__FILE__).'/inc/lib.rateit.activityreport.php'; |
---|
38 | } |
---|
39 | ?> |
---|