Revision 1573,
732 bytes
checked in by JcDenis, 14 years ago
(diff) |
databasespy 0.4:
|
Line | |
---|
1 | <?php |
---|
2 | # -- BEGIN LICENSE BLOCK ---------------------------------- |
---|
3 | # This file is part of databasespy, 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 | # Admin menu |
---|
16 | $_menu['Plugins']->addItem( |
---|
17 | __('Database spy'), |
---|
18 | 'plugin.php?p=databasespy', |
---|
19 | 'index.php?pf=databasespy/icon.png', |
---|
20 | preg_match('/plugin.php\?p=databasespy(&.*)?$/',$_SERVER['REQUEST_URI']), |
---|
21 | $core->auth->isSuperAdmin() |
---|
22 | ); |
---|
23 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.