-
Notifications
You must be signed in to change notification settings - Fork 0
/
_admin.php
42 lines (38 loc) · 1.44 KB
/
_admin.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
<?php
# ***** BEGIN LICENSE BLOCK *****
#
# This file is part of Informations, a plugin for Dotclear 2
# Copyright 2007-2017 Moe (http://gniark.net/)
#
# Informations is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License v2.0
# as published by the Free Software Foundation.
#
# Informations is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public
# License along with this program. If not, see
# <http://www.gnu.org/licenses/>.
#
# Icon (icon.png) and images are from Silk Icons :
# <http://www.famfamfam.com/lab/icons/silk/>
#
# ***** END LICENSE BLOCK *****
if (!defined('DC_CONTEXT_ADMIN')) {return;}
$_menu['Plugins']->addItem(__('Informations'),'plugin.php?p=info','index.php?pf=info/icon.png',
preg_match('/plugin.php\?p=info(&.*)?$/',$_SERVER['REQUEST_URI']),
$core->auth->check('admin',$core->blog->id));
$core->addBehavior('adminDashboardFavorites','infoDashboardFavorites');
function infoDashboardFavorites($core,$favs)
{
$favs->register('info', array(
'title' => __('Informations'),
'url' => 'plugin.php?p=info',
'small-icon' => 'index.php?pf=info/icon.png',
'large-icon' => 'index.php?pf=info/icon-big.png',
'permissions' => 'usage,contentadmin'
));
}