1 | <?php |
---|
2 | # -- BEGIN LICENSE BLOCK ---------------------------------- |
---|
3 | # This file is part of dcAdvancedCleaner, a plugin for Dotclear 2. |
---|
4 | # |
---|
5 | # Copyright (c) 2009-2010 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 | # -- END LICENSE BLOCK ------------------------------------ |
---|
12 | |
---|
13 | if (!defined('DC_RC_PATH')) return; |
---|
14 | |
---|
15 | global $__autoload, $core; |
---|
16 | $core->blog->settings->addNamespace('dcAdvancedCleaner'); |
---|
17 | |
---|
18 | # Main class |
---|
19 | $__autoload['dcAdvancedCleaner'] = |
---|
20 | dirname(__FILE__).'/inc/class.dc.advanced.cleaner.php'; |
---|
21 | |
---|
22 | # Behaviors class |
---|
23 | $__autoload['behaviorsDcAdvancedCleaner'] = |
---|
24 | dirname(__FILE__).'/inc/lib.dc.advanced.cleaner.behaviors.php'; |
---|
25 | |
---|
26 | # Unsintaller class |
---|
27 | $__autoload['dcUninstaller'] = |
---|
28 | dirname(__FILE__).'/inc/class.dc.uninstaller.php'; |
---|
29 | |
---|
30 | # Add tab on plugin admin page |
---|
31 | $core->addBehavior('pluginsToolsTabs', |
---|
32 | array('behaviorsDcAdvancedCleaner','pluginsToolsTabs')); |
---|
33 | |
---|
34 | # Action on plugin deletion |
---|
35 | $core->addBehavior('pluginsBeforeDelete', |
---|
36 | array('behaviorsDcAdvancedCleaner','pluginsBeforeDelete')); |
---|
37 | |
---|
38 | # Action on theme deletion |
---|
39 | $core->addBehavior('themeBeforeDelete', |
---|
40 | array('behaviorsDcAdvancedCleaner','themeBeforeDelete')); |
---|
41 | |
---|
42 | # Tabs of dcAvdancedCleaner admin page |
---|
43 | $core->addBehavior('dcAdvancedCleanerAdminTabs', |
---|
44 | array('behaviorsDcAdvancedCleaner','dcAdvancedCleanerAdminTabs')); |
---|
45 | |
---|
46 | # Add dcac events on plugin activityReport |
---|
47 | if (defined('ACTIVITY_REPORT')) |
---|
48 | { |
---|
49 | require_once dirname(__FILE__).'/inc/lib.dc.advanced.cleaner.activityreport.php'; |
---|
50 | } |
---|
51 | ?> |
---|