Dotclear

source: plugins/shareOn/_admin.php @ 1941

Revision 1941, 770 bytes checked in by JcDenis, 14 years ago (diff)

shareOn 0.1:

  • First lab release (closes #260)
Line 
1<?php
2# -- BEGIN LICENSE BLOCK ----------------------------------
3# This file is part of shareOn, a plugin for Dotclear 2.
4#
5# Copyright (c) 2009 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
15require_once dirname(__FILE__).'/_widgets.php';
16
17# Admin menu
18$_menu['Plugins']->addItem(
19     __('Share on'),
20     'plugin.php?p=shareOn','index.php?pf=shareOn/icon.png',
21     preg_match('/plugin.php\?p=shareOn(&.*)?$/',$_SERVER['REQUEST_URI']),
22     $core->auth->check('content',$core->blog->id));
23?>
Note: See TracBrowser for help on using the repository browser.

Sites map