Dotclear

source: plugins/myDashboard/_admin.php @ 1451

Revision 1451, 1.3 KB checked in by Moe, 14 years ago (diff)

added new plugin My Dashboard 0.1 (they said release early, release often)

  • Property svn:executable set to *
Line 
1<?php
2# ***** BEGIN LICENSE BLOCK *****
3#
4# This file is part of My Dashboard, a plugin for Dotclear 2
5# Copyright (C) 2009 Moe (http://gniark.net/)
6#
7# My Dashboard is free software; you can redistribute it and/or
8# modify it under the terms of the GNU General Public License v2.0
9# as published by the Free Software Foundation.
10#
11# My Dashboard is distributed in the hope that it will be useful,
12# but WITHOUT ANY WARRANTY; without even the implied warranty of
13# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14# GNU General Public License for more details.
15#
16# You should have received a copy of the GNU General Public License
17# along with this program; if not, write to the Free Software Foundation,
18# Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
19#
20# Icon (icon.png) is from Silk Icons : http://www.famfamfam.com/lab/icons/silk/
21#
22# ***** END LICENSE BLOCK *****
23
24if (!defined('DC_CONTEXT_ADMIN')) {return;}
25
26require_once(dirname(__FILE__).'/inc/lib.myDashboard.php');
27
28$_menu['Plugins']->addItem(__('My Dashboard'),'plugin.php?p=myDashboard',
29     'index.php?pf=myDashboard/icon.png',
30     preg_match('/plugin.php\?p=myDashboard(&.*)?$/',$_SERVER['REQUEST_URI']),
31     $core->auth->isSuperAdmin());
32
33# dashboard
34$core->addBehavior('adminDashboardIcons',
35     array('myDashboard','adminDashboardIcons'));
36
37?>
Note: See TracBrowser for help on using the repository browser.

Sites map