Dotclear


Ignore:
Timestamp:
07/09/12 14:44:20 (13 years ago)
Author:
JcDenis
Branch:
default
Message:

Clean up structure, added (un)zip to flat import/export, fixes #1319

File:
1 edited

Legend:

Unmodified
Added
Removed
  • plugins/importExport/_admin.php

    r324 r840  
    22# -- BEGIN LICENSE BLOCK --------------------------------------- 
    33# 
    4 # This file is part of Dotclear 2. 
     4# This file is part of importExport, a plugin for DotClear2. 
    55# 
    6 # Copyright (c) 2003-2011 Olivier Meunier & Association Dotclear 
     6# Copyright (c) 2003-2012 Olivier Meunier & Association Dotclear 
    77# Licensed under the GPL version 2.0 license. 
    88# See LICENSE file or 
     
    1212if (!defined('DC_CONTEXT_ADMIN')) { return; } 
    1313 
    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); 
    2221 
    2322$core->addBehavior('adminDashboardFavs','importExportDashboardFavs'); 
     
    2524function importExportDashboardFavs($core,$favs) 
    2625{ 
    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     )); 
    3034} 
    3135?> 
Note: See TracChangeset for help on using the changeset viewer.

Sites map