Dotclear

source: plugins/private/_admin.php @ 611

Revision 611, 1.2 KB checked in by Osku, 15 years ago (diff)

Private : almost final shot :)

Line 
1<?php /* -*- tab-width: 5; indent-tabs-mode: t; c-basic-offset: 5 -*- */
2/***************************************************************\
3 *  This is 'Private', a plugin for Dotclear 2                 *
4 *                                                             *
5 *  Copyright (c) 2008                                         *
6 *  Osku and contributors.                                     *
7 *                                                             *
8 *  This is an open source software, distributed under the GNU *
9 *  General Public License (version 2) terms and  conditions.  *
10 *                                                             *
11 *  You should have received a copy of the GNU General Public  *
12 *  License along with 'Private blog' (see LICENSE);           *
13 *  if not, write to the Free Software Foundation, Inc.,       *
14 *  59 Temple Place, Suite 330, Boston, MA  02111-1307  USA    *
15\***************************************************************/
16if (!defined('DC_CONTEXT_ADMIN')) { return; }
17
18$_menu['Plugins']->addItem(__('Private mode'),
19          'plugin.php?p=private','index.php?pf=private/icon.png',
20          preg_match('/plugin.php\?p=private(&.*)?$/',$_SERVER['REQUEST_URI']),
21          $core->auth->check('admin',$core->blog->id));
22?>
Note: See TracBrowser for help on using the repository browser.

Sites map