Dotclear

source: plugins/blocNotes/_admin.php @ 1183

Revision 1183, 1.7 KB checked in by Moe, 15 years ago (diff)

Bloc-Notes 1.0.2 :

  • fixed bug with line breaks broken when using about:config, the strings are now encoded
  • removed legacy code for Dotclear beta versions
  • moved library to inc/ directory
  • replaced <div class="message"> by <p class="message">
Line 
1<?php
2# ***** BEGIN LICENSE BLOCK *****
3#
4# This file is part of Bloc-Notes.
5# Copyright 2008,2009 Moe (http://gniark.net/)
6#
7# Bloc-Notes is free software; you can redistribute it and/or modify
8# it under the terms of the GNU General Public License as published by
9# the Free Software Foundation; either version 3 of the License, or
10# (at your option) any later version.
11#
12# Bloc-Notes is distributed in the hope that it will be useful,
13# but WITHOUT ANY WARRANTY; without even the implied warranty of
14# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15# GNU General Public License for more details.
16#
17# You should have received a copy of the GNU General Public License
18# along with this program.  If not, see <http://www.gnu.org/licenses/>.
19#
20# Icons (*.png) are from Tango Icon theme :
21#    http://tango.freedesktop.org/Tango_Icon_Gallery
22#
23# ***** END LICENSE BLOCK *****
24
25if (!defined('DC_CONTEXT_ADMIN')) {return;}
26
27$__autoload['blocNotes'] =
28     dirname(__FILE__).'/inc/lib.blocNotes.php';
29
30# dashboard
31if ($core->auth->check('usage,contentadmin',$core->blog->id))
32{
33     $core->addBehavior('adminDashboardIcons',
34          array('blocNotes','adminDashboardIcons'));
35}
36
37# post
38$core->addBehavior('adminPostForm',array('blocNotes','form'));
39$core->addBehavior('adminAfterPostCreate',
40     array('blocNotes','putSettings'));
41$core->addBehavior('adminAfterPostUpdate',
42     array('blocNotes','putSettings'));
43$core->addBehavior('adminPostHeaders',
44     array('blocNotes','adminPostHeaders'));
45
46$_menu['Plugins']->addItem(__('Notebook'),
47     'plugin.php?p=blocNotes',
48     'index.php?pf=blocNotes/icon.png',
49     preg_match('/plugin.php\?p=blocNotes(&.*)?$/',
50     $_SERVER['REQUEST_URI']),
51     $core->auth->check('usage,contentadmin',$core->blog->id));
52     
53?>
Note: See TracBrowser for help on using the repository browser.

Sites map