2018-02-19 18:10:58 +00:00
|
|
|
<?php
|
2021-09-06 22:09:09 +00:00
|
|
|
/**
|
|
|
|
* @brief dcAdvancedCleaner, a plugin for Dotclear 2
|
2021-11-06 15:19:49 +00:00
|
|
|
*
|
2021-09-06 22:09:09 +00:00
|
|
|
* @package Dotclear
|
|
|
|
* @subpackage Plugin
|
2021-11-06 15:19:49 +00:00
|
|
|
*
|
2021-09-06 22:09:09 +00:00
|
|
|
* @author Jean-Christian Denis and Contributors
|
2021-11-06 15:19:49 +00:00
|
|
|
*
|
2021-09-06 22:09:09 +00:00
|
|
|
* @copyright Jean-Christian Denis
|
|
|
|
* @copyright GPL-2.0 https://www.gnu.org/licenses/gpl-2.0.html
|
|
|
|
*/
|
2021-09-06 23:39:52 +00:00
|
|
|
if (!defined('DC_CONTEXT_ADMIN')) {
|
|
|
|
return null;
|
|
|
|
}
|
2018-02-19 18:10:58 +00:00
|
|
|
|
2021-10-28 20:17:38 +00:00
|
|
|
$core->blog->settings->addNamespace('dcAdvancedCleaner');
|
|
|
|
|
2018-02-19 18:10:58 +00:00
|
|
|
$_menu['Plugins']->addItem(
|
2021-09-06 22:09:09 +00:00
|
|
|
__('Advanced cleaner'),
|
2021-09-06 23:39:52 +00:00
|
|
|
$core->adminurl->get('admin.plugin.dcAdvancedCleaner'),
|
|
|
|
dcPage::getPF('dcAdvancedCleaner/icon.png'),
|
|
|
|
preg_match(
|
2021-11-06 15:19:49 +00:00
|
|
|
'/' . preg_quote($core->adminurl->get('admin.plugin.dcAdvancedCleaner')) . '(&.*)?$/',
|
2021-09-06 23:39:52 +00:00
|
|
|
$_SERVER['REQUEST_URI']
|
|
|
|
),
|
2021-09-06 22:09:09 +00:00
|
|
|
$core->auth->isSuperAdmin()
|
2021-11-06 15:19:49 +00:00
|
|
|
);
|