Changeset 459 for plugins/blocNotes
- Timestamp:
- 06/27/08 10:30:18 (15 years ago)
- Location:
- plugins/blocNotes
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
plugins/blocNotes/_admin.php
r455 r459 21 21 # 22 22 # ***** END LICENSE BLOCK ***** 23 if (!defined('DC_CONTEXT_ADMIN')) { return; } 23 24 24 25 require_once(dirname(__FILE__).'/lib.blocNotes.php'); 25 26 26 # dashboard 27 if ($core->auth->check('usage,contentadmin',$core->blog->id)) 28 { 29 # <= 2.0-beta7 30 if (isset($__dashboard_icons)) { 31 $__dashboard_icons[] = array(__('Notebook'),'plugin.php?p=blocNotes','index.php?pf=blocNotes/icon-big.png'); 32 } 33 # > 2.0-beta7 34 $core->addBehavior('adminDashboardIcons',array('blocNotes','adminDashboardIcons')); 27 # dashboard 28 if ($core->auth->check('usage,contentadmin',$core->blog->id)) 29 { 30 # <= 2.0-beta7 31 if (isset($__dashboard_icons)) { 32 $__dashboard_icons[] = array(__('Notebook'),'plugin.php?p=blocNotes','index.php?pf=blocNotes/icon-big.png'); 35 33 } 34 # > 2.0-beta7 35 $core->addBehavior('adminDashboardIcons',array('blocNotes','adminDashboardIcons')); 36 } 36 37 37 38 39 40 41 38 # post 39 $core->addBehavior('adminPostForm',array('blocNotes','form')); 40 $core->addBehavior('adminAfterPostCreate',array('blocNotes','putSettings')); 41 $core->addBehavior('adminAfterPostUpdate',array('blocNotes','putSettings')); 42 $core->addBehavior('adminPostHeaders',array('blocNotes','adminPostHeaders')); 42 43 43 44 45 46 47 44 $_menu['Plugins']->addItem(__('Notebook'), 45 'plugin.php?p=blocNotes', 46 'index.php?pf=blocNotes/icon.png', 47 preg_match('/plugin.php\?p=blocNotes(&.*)?$/',$_SERVER['REQUEST_URI']), 48 $core->auth->check('usage,contentadmin',$core->blog->id)); 48 49 ?> -
plugins/blocNotes/_define.php
r455 r459 21 21 # 22 22 # ***** END LICENSE BLOCK ***** 23 if (!defined('DC_RC_PATH')) { return; } 23 24 24 25 $this->registerModule( -
plugins/blocNotes/index.php
r455 r459 21 21 # 22 22 # ***** END LICENSE BLOCK ***** 23 24 if (!defined('DC_CONTEXT_ADMIN')) { exit; } 23 if (!defined('DC_CONTEXT_ADMIN')) { return; } 25 24 26 25 try
Note: See TracChangeset
for help on using the changeset viewer.