2008-03-01 14:49:11 +00:00
|
|
|
<?php
|
2008-04-04 22:57:23 +00:00
|
|
|
// +-----------------------------------------------------------------------+
|
|
|
|
// | Piwigo - a PHP based picture gallery |
|
|
|
|
// +-----------------------------------------------------------------------+
|
2010-03-19 22:37:10 +00:00
|
|
|
// | Copyright(C) 2008-2010 Piwigo Team http://piwigo.org |
|
2009-02-12 23:20:40 +00:00
|
|
|
// | Copyright(C) 2003-2008 PhpWebGallery team http://phpwebgallery.net |
|
2008-04-04 22:57:23 +00:00
|
|
|
// | Copyright(C) 2002-2003 Pierrick LE GALL http://le-gall.net/pierrick |
|
|
|
|
// +-----------------------------------------------------------------------+
|
|
|
|
// | This program is free software; you can redistribute it and/or modify |
|
|
|
|
// | it under the terms of the GNU General Public License as published by |
|
|
|
|
// | the Free Software Foundation |
|
|
|
|
// | |
|
|
|
|
// | This program is distributed in the hope that it will be useful, but |
|
|
|
|
// | WITHOUT ANY WARRANTY; without even the implied warranty of |
|
|
|
|
// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
|
|
|
|
// | General Public License for more details. |
|
|
|
|
// | |
|
|
|
|
// | You should have received a copy of the GNU General Public License |
|
|
|
|
// | along with this program; if not, write to the Free Software |
|
|
|
|
// | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, |
|
|
|
|
// | USA. |
|
|
|
|
// +-----------------------------------------------------------------------+
|
2008-04-16 20:09:23 +00:00
|
|
|
|
2008-03-01 14:49:11 +00:00
|
|
|
/*
|
|
|
|
Plugin Name: LocalFiles Editor
|
2010-03-17 15:27:14 +00:00
|
|
|
Version: 2.1.0
|
2009-08-01 13:04:22 +00:00
|
|
|
Description: Edit local files from administration panel
|
2009-02-12 23:20:40 +00:00
|
|
|
Plugin URI: http://piwigo.org/ext/extension_view.php?eid=144
|
2008-05-15 18:43:33 +00:00
|
|
|
Author: Piwigo team
|
|
|
|
Author URI: http://piwigo.org
|
2008-03-01 14:49:11 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!');
|
|
|
|
define('LOCALEDIT_PATH' , PHPWG_PLUGINS_PATH . basename(dirname(__FILE__)) . '/');
|
|
|
|
|
|
|
|
function localfiles_admin_menu($menu)
|
|
|
|
{
|
2008-09-25 17:46:27 +00:00
|
|
|
array_push($menu, array(
|
|
|
|
'NAME' => 'LocalFiles Editor',
|
|
|
|
'URL' => get_admin_plugin_menu_link(LOCALEDIT_PATH . 'admin.php')));
|
|
|
|
return $menu;
|
2008-03-01 14:49:11 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
add_event_handler('get_admin_plugin_menu_links', 'localfiles_admin_menu');
|
|
|
|
|
|
|
|
?>
|