Revision 2475,
1.0 KB
checked in by Osku, 13 years ago
(diff) |
private mode : update to last current version
|
Line | |
---|
1 | <?php |
---|
2 | # -- BEGIN LICENSE BLOCK ---------------------------------- |
---|
3 | # |
---|
4 | # This file is part of Private mode, a plugin for Dotclear 2. |
---|
5 | # |
---|
6 | # Copyright (c) 2008-2010 Osku and contributors |
---|
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 | # |
---|
12 | # -- END LICENSE BLOCK ------------------------------------ |
---|
13 | |
---|
14 | if (!defined('DC_CONTEXT_ADMIN')) { return; } |
---|
15 | |
---|
16 | $menu_class = ''; |
---|
17 | |
---|
18 | $s = privateSettings($core); |
---|
19 | |
---|
20 | if ($s->private_flag) |
---|
21 | { |
---|
22 | $core->addBehavior('adminPageHTMLHead','privateadminPageHTMLHead'); |
---|
23 | $menu_class = 'private-blog'; |
---|
24 | } |
---|
25 | |
---|
26 | $_menu['Plugins']->addItem(__('Private mode'), |
---|
27 | 'plugin.php?p=private','index.php?pf=private/icon.png', |
---|
28 | preg_match('/plugin.php\?p=private(&.*)?$/',$_SERVER['REQUEST_URI']), |
---|
29 | $core->auth->check('admin',$core->blog->id), |
---|
30 | $menu_class |
---|
31 | ); |
---|
32 | |
---|
33 | function privateadminPageHTMLHead() |
---|
34 | { |
---|
35 | echo '<link rel="stylesheet" href="index.php?pf=private/style/admin.css"type="text/css" media="screen" />'."\n"; |
---|
36 | } |
---|
37 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.