dcAdvancedCleaner/_prepend.php

51 lines
1.4 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
if (!defined('DC_RC_PATH')) return;
global $__autoload, $core;
$core->blog->settings->addNamespace('dcAdvancedCleaner');
# Main class
$__autoload['dcAdvancedCleaner'] =
2021-09-06 22:09:09 +00:00
dirname(__FILE__).'/inc/class.dc.advanced.cleaner.php';
2018-02-19 18:10:58 +00:00
# Behaviors class
$__autoload['behaviorsDcAdvancedCleaner'] =
2021-09-06 22:09:09 +00:00
dirname(__FILE__).'/inc/lib.dc.advanced.cleaner.behaviors.php';
2018-02-19 18:10:58 +00:00
# Unsintaller class
$__autoload['dcUninstaller'] =
2021-09-06 22:09:09 +00:00
dirname(__FILE__).'/inc/class.dc.uninstaller.php';
2018-02-19 18:10:58 +00:00
# Add tab on plugin admin page
$core->addBehavior('pluginsToolsTabs',
2021-09-06 22:09:09 +00:00
array('behaviorsDcAdvancedCleaner','pluginsToolsTabs'));
2018-02-19 18:10:58 +00:00
# Action on plugin deletion
$core->addBehavior('pluginsBeforeDelete',
2021-09-06 22:09:09 +00:00
array('behaviorsDcAdvancedCleaner','pluginsBeforeDelete'));
2018-02-19 18:10:58 +00:00
# Action on theme deletion
$core->addBehavior('themeBeforeDelete',
2021-09-06 22:09:09 +00:00
array('behaviorsDcAdvancedCleaner','themeBeforeDelete'));
2018-02-19 18:10:58 +00:00
# Tabs of dcAvdancedCleaner admin page
$core->addBehavior('dcAdvancedCleanerAdminTabs',
2021-09-06 22:09:09 +00:00
array('behaviorsDcAdvancedCleaner','dcAdvancedCleanerAdminTabs'));
2018-02-19 18:10:58 +00:00
# Add dcac events on plugin activityReport
if (defined('ACTIVITY_REPORT'))
{
2021-09-06 22:09:09 +00:00
require_once dirname(__FILE__).'/inc/lib.dc.advanced.cleaner.activityreport.php';
2018-02-19 18:10:58 +00:00
}