dcAdvancedCleaner/_prepend.php

36 lines
1.1 KiB
PHP
Raw Normal View History

2018-02-19 18:10:58 +00:00
<?php
2021-09-06 22:09:09 +00:00
/**
* @brief dcAdvancedCleaner, a plugin for Dotclear 2
*
* @package Dotclear
* @subpackage Plugin
*
* @author Jean-Christian Denis and Contributors
*
* @copyright Jean-Christian Denis
* @copyright GPL-2.0 https://www.gnu.org/licenses/gpl-2.0.html
*/
2018-02-19 18:10:58 +00:00
2021-09-06 23:39:52 +00:00
if (!defined('DC_RC_PATH')) {
return null;
}
2018-02-19 18:10:58 +00:00
2021-09-06 23:39:52 +00:00
$d = dirname(__FILE__) . '/inc/';
2018-02-19 18:10:58 +00:00
2021-09-06 23:39:52 +00:00
$core->blog->settings->addNamespace('dcAdvancedCleaner');
2018-02-19 18:10:58 +00:00
2021-09-06 23:39:52 +00:00
$__autoload['dcAdvancedCleaner'] = $d . 'class.dc.advanced.cleaner.php';
$__autoload['behaviorsDcAdvancedCleaner'] = $d . 'lib.dc.advanced.cleaner.behaviors.php';
$__autoload['dcUninstaller'] = $d . 'class.dc.uninstaller.php';
$__autoload['dcAdvancedCleanerActivityReportBehaviors'] = $d . 'lib.dc.advanced.cleaner.activityreport.php';
2018-02-19 18:10:58 +00:00
$core->addBehavior('pluginsToolsTabs',
2021-09-06 23:39:52 +00:00
['behaviorsDcAdvancedCleaner', 'pluginsToolsTabs']);
2018-02-19 18:10:58 +00:00
$core->addBehavior('pluginsBeforeDelete',
2021-09-06 23:39:52 +00:00
['behaviorsDcAdvancedCleaner', 'pluginsBeforeDelete']);
2018-02-19 18:10:58 +00:00
$core->addBehavior('themeBeforeDelete',
2021-09-06 23:39:52 +00:00
['behaviorsDcAdvancedCleaner', 'themeBeforeDelete']);
2018-02-19 18:10:58 +00:00
2021-09-06 23:39:52 +00:00
if (defined('ACTIVITY_REPORT')) {
dcAdvancedCleanerActivityReportBehaviors::add($core);
2018-02-19 18:10:58 +00:00
}