Dotclear

source: plugins/private/_admin.php @ 955

Revision 955, 682 bytes checked in by Osku, 15 years ago (diff)

Private mode 1.0 finally

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-2009 Osku and contributors
7## Licensed under the GPL version 2.0 license.
8# A copy of this license is available in LICENSE file or at
9# http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
10#
11# -- END LICENSE BLOCK ------------------------------------
12
13if (!defined('DC_CONTEXT_ADMIN')) { return; }
14
15$_menu['Plugins']->addItem(__('Private mode'),
16          'plugin.php?p=private','index.php?pf=private/icon.png',
17          preg_match('/plugin.php\?p=private(&.*)?$/',$_SERVER['REQUEST_URI']),
18          $core->auth->check('admin',$core->blog->id));
19?>
Note: See TracBrowser for help on using the repository browser.

Sites map