Dotclear

source: plugins/notifications/_admin.php @ 1091

Revision 1091, 763 bytes checked in by Tomtom33, 4 years ago (diff)

notification 0.5 :

  • Hidden display of plugin page of non superadmin user
  • Just because i didn't committed enough :p
Line 
1<?php 
2# -- BEGIN LICENSE BLOCK ----------------------------------
3# This file is part of notifications, a plugin for Dotclear.
4#
5# Copyright (c) 2009 Tomtom
6# http://blog.zenstyle.fr/
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
13if (!defined('DC_CONTEXT_ADMIN')) { return; }
14
15if (!$core->auth->isSuperAdmin()) { return; }
16
17$_menu['Plugins']->addItem(__('Notifications'),'plugin.php?p=notifications','index.php?pf=notifications/icon.png',
18          preg_match('/plugin.php\?p=notifications(&.*)?$/',$_SERVER['REQUEST_URI']),
19          $core->auth->check('usage,contentadmin',$core->blog->id));
20
21?>
Note: See TracBrowser for help on using the repository browser.

Sites map