Changeset 840:f7157873644c for plugins/importExport/_admin.php
- Timestamp:
- 07/09/12 14:44:20 (13 years ago)
- Branch:
- default
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
plugins/importExport/_admin.php
r324 r840 2 2 # -- BEGIN LICENSE BLOCK --------------------------------------- 3 3 # 4 # This file is part of Dotclear2.4 # This file is part of importExport, a plugin for DotClear2. 5 5 # 6 # Copyright (c) 2003-201 1Olivier Meunier & Association Dotclear6 # Copyright (c) 2003-2012 Olivier Meunier & Association Dotclear 7 7 # Licensed under the GPL version 2.0 license. 8 8 # See LICENSE file or … … 12 12 if (!defined('DC_CONTEXT_ADMIN')) { return; } 13 13 14 $_menu['Plugins']->addItem(__('Import/Export'),'plugin.php?p=importExport','index.php?pf=importExport/icon.png', 15 preg_match('/plugin.php\?p=importExport(&.*)?$/',$_SERVER['REQUEST_URI']), 16 $core->auth->check('admin',$core->blog->id)); 17 18 # Files needed by flat files import / export 19 $__autoload['backupFile'] = dirname(__FILE__).'/inc/flat/class.backupFile.php'; 20 $__autoload['dcImport'] = dirname(__FILE__).'/inc/flat/class.dc.import.php'; 21 $__autoload['dbExport'] = dirname(__FILE__).'/inc/flat/class.db.export.php'; 14 $_menu['Plugins']->addItem( 15 __('Import/Export'), 16 'plugin.php?p=importExport', 17 'index.php?pf=importExport/icon.png', 18 preg_match('/plugin.php\?p=importExport(&.*)?$/',$_SERVER['REQUEST_URI']), 19 $core->auth->check('admin',$core->blog->id) 20 ); 22 21 23 22 $core->addBehavior('adminDashboardFavs','importExportDashboardFavs'); … … 25 24 function importExportDashboardFavs($core,$favs) 26 25 { 27 $favs['importExport'] = new ArrayObject(array('importExport','Import/Export','plugin.php?p=importExport', 28 'index.php?pf=importExport/icon.png','index.php?pf=importExport/icon-big.png', 29 'admin',null,null)); 26 $favs['importExport'] = new ArrayObject(array( 27 'importExport', 28 __('Import/Export'), 29 'plugin.php?p=importExport', 30 'index.php?pf=importExport/icon.png', 31 'index.php?pf=importExport/icon-big.png', 32 'admin',null,null 33 )); 30 34 } 31 35 ?>
Note: See TracChangeset
for help on using the changeset viewer.