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
|
|
|
|
2022-11-15 10:34:45 +00:00
|
|
|
dcCore::app()->blog->settings->addNamespace('dcAdvancedCleaner');
|
2021-10-28 20:17:38 +00:00
|
|
|
|
2022-11-15 10:34:45 +00:00
|
|
|
dcCore::app()->menu[dcAdmin::MENU_PLUGINS]->addItem(
|
2021-09-06 22:09:09 +00:00
|
|
|
__('Advanced cleaner'),
|
2022-11-15 10:34:45 +00:00
|
|
|
dcCore::app()->adminurl->get('admin.plugin.dcAdvancedCleaner'),
|
2021-09-06 23:39:52 +00:00
|
|
|
dcPage::getPF('dcAdvancedCleaner/icon.png'),
|
|
|
|
preg_match(
|
2022-11-15 10:34:45 +00:00
|
|
|
'/' . preg_quote(dcCore::app()->adminurl->get('admin.plugin.dcAdvancedCleaner')) . '(&.*)?$/',
|
2021-09-06 23:39:52 +00:00
|
|
|
$_SERVER['REQUEST_URI']
|
|
|
|
),
|
2022-11-15 10:34:45 +00:00
|
|
|
dcCore::app()->auth->isSuperAdmin()
|
2021-11-06 15:19:49 +00:00
|
|
|
);
|