Changeset 2117 for plugins/private/_admin.php
- Timestamp:
- 03/10/10 08:58:31 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
plugins/private/_admin.php
r1768 r2117 4 4 # This file is part of Private mode, a plugin for Dotclear 2. 5 5 # 6 # Copyright (c) 2008-2009 Osku and contributors 7 ## Licensed under the GPL version 2.0 license. 6 # Copyright (c) 2008-2010 Osku and contributors 7 # 8 # Licensed under the GPL version 2.0 license. 8 9 # A copy of this license is available in LICENSE file or at 9 10 # http://www.gnu.org/licenses/old-licenses/gpl-2.0.html … … 17 18 preg_match('/plugin.php\?p=private(&.*)?$/',$_SERVER['REQUEST_URI']), 18 19 $core->auth->check('admin',$core->blog->id)); 20 21 if ($core->blog->settings->private_flag) 22 { 23 $core->addBehavior('adminPageHTMLHead','privateadminPageHTMLHead'); 24 $core->addBehavior('adminDashboardItems', 'privateDashboardItems'); 25 } 26 27 function privateDashboardItems($core,$__dashboard_items) 28 { 29 $__dashboard_items[1][] = '<p class="private-msg">'.__('Private blog').'.</p>'; 30 } 31 32 function privateadminPageHTMLHead() 33 { 34 echo ' <style type="text/css">'."\n".' @import "index.php?pf=private/css/admin.css";'."\n".' </style>'."\n"; 35 } 19 36 ?>
Note: See TracChangeset
for help on using the changeset viewer.