Revision 1567,
786 bytes
checked in by JcDenis, 14 years ago
(diff) |
dcAdvancedCleaner 0.2:
- Fixed delete_all settings
- Fixed typo
- Added license
|
Line | |
---|
1 | <?php |
---|
2 | # -- BEGIN LICENSE BLOCK ---------------------------------- |
---|
3 | # This file is part of dcAdvancedCleaner, a plugin for Dotclear 2. |
---|
4 | # |
---|
5 | # Copyright (c) 2009 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_CONTEXT_ADMIN')){return;} |
---|
14 | |
---|
15 | if (!$core->auth->isSuperAdmin()){return;} |
---|
16 | |
---|
17 | $_menu['Plugins']->addItem( |
---|
18 | __('Advanced cleaner'), |
---|
19 | 'plugin.php?p=dcAdvancedCleaner', |
---|
20 | 'index.php?pf=dcAdvancedCleaner/icon.png', |
---|
21 | preg_match('/plugin.php\?p=dcAdvancedCleaner(&.*)?$/',$_SERVER['REQUEST_URI']), |
---|
22 | $core->auth->isSuperAdmin() |
---|
23 | ); |
---|
24 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.