Dotclear

source: plugins/pacKman/_admin.php @ 2298

Revision 2298, 1011 bytes checked in by JcDenis, 13 years ago (diff)

pacKman 0.5

  • Switched to DC 2.2
  • Changed admin interface (easy, light, fast)
  • Added direct download button on repository (closes #449)
Line 
1<?php
2# -- BEGIN LICENSE BLOCK ----------------------------------
3# This file is part of pacKman, a plugin for Dotclear 2.
4#
5# Copyright (c) 2009-2010 JC Denis and contributors
6# jcdenis@gdwd.com
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
15# Admin menu
16$_menu['Plugins']->addItem(
17     __('pacKman'),
18     'plugin.php?p=pacKman',
19     'index.php?pf=pacKman/icon.png',
20     preg_match('/plugin.php\?p=pacKman(&.*)?$/',$_SERVER['REQUEST_URI']),
21     $core->auth->isSuperAdmin()
22);
23
24# Plugins tab
25if ($core->blog->settings->pacKman->packman_menu_plugins && $core->auth->isSuperAdmin())
26{
27     $core->addBehavior('pluginsToolsTabs','packmanPluginsToolsTabs');
28}
29function packmanPluginsToolsTabs($core)
30{
31     libPackman::tab($core->plugins->getModules(),'plugins','plugins.php');
32}
33?>
Note: See TracBrowser for help on using the repository browser.

Sites map