Dotclear

source: plugins/importExport/_admin.php @ 270:48858be15bda

Revision 270:48858be15bda, 1.2 KB checked in by Franck <carnet.franck.paul@…>, 14 years ago (diff)

Changement d'année

Line 
1<?php
2# -- BEGIN LICENSE BLOCK ---------------------------------------
3#
4# This file is part of Dotclear 2.
5#
6# Copyright (c) 2003-2011 Olivier Meunier & Association Dotclear
7# Licensed under the GPL version 2.0 license.
8# See LICENSE file or
9# http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
10#
11# -- END LICENSE BLOCK -----------------------------------------
12if (!defined('DC_CONTEXT_ADMIN')) { return; }
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';
22
23$core->addBehavior('adminDashboardFavs','importExportDashboardFavs');
24
25function importExportDashboardFavs($core,$favs)
26{
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));
30}
31?>
Note: See TracBrowser for help on using the repository browser.

Sites map