[2235] | 1 | <?php |
---|
| 2 | /* |
---|
| 3 | Plugin Name: LocalFiles Editor |
---|
[2243] | 4 | Version: 1.8 |
---|
| 5 | Description: Edit local files from administration panel / Editeur de fichiers locaux |
---|
| 6 | Plugin URI: http://phpwebgallery.net/ext/extension_view.php?eid=144 |
---|
[2235] | 7 | Author: PhpWebGallery team |
---|
| 8 | Author URI: http://www.phpwebgallery.net |
---|
| 9 | */ |
---|
| 10 | // +-----------------------------------------------------------------------+ |
---|
| 11 | // | PhpWebGallery - a PHP based picture gallery | |
---|
| 12 | // | Copyright (C) 2002-2003 Pierrick LE GALL - pierrick@phpwebgallery.net | |
---|
| 13 | // | Copyright (C) 2003-2007 PhpWebGallery Team - http://phpwebgallery.net | |
---|
| 14 | // +-----------------------------------------------------------------------+ |
---|
| 15 | // | file : $Id: main.inc.php 2291 2008-03-25 23:30:23Z patdenice $ |
---|
| 16 | // | last update : $Date: 2008-03-25 23:30:23 +0000 (Tue, 25 Mar 2008) $ |
---|
| 17 | // | last modifier : $Author: patdenice $ |
---|
| 18 | // | revision : $Revision: 2291 $ |
---|
| 19 | // +-----------------------------------------------------------------------+ |
---|
| 20 | // | This program is free software; you can redistribute it and/or modify | |
---|
| 21 | // | it under the terms of the GNU General Public License as published by | |
---|
| 22 | // | the Free Software Foundation | |
---|
| 23 | // | | |
---|
| 24 | // | This program is distributed in the hope that it will be useful, but | |
---|
| 25 | // | WITHOUT ANY WARRANTY; without even the implied warranty of | |
---|
| 26 | // | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
---|
| 27 | // | General Public License for more details. | |
---|
| 28 | // | | |
---|
| 29 | // | You should have received a copy of the GNU General Public License | |
---|
| 30 | // | along with this program; if not, write to the Free Software | |
---|
| 31 | // | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, | |
---|
| 32 | // | USA. | |
---|
| 33 | // +-----------------------------------------------------------------------+ |
---|
| 34 | |
---|
| 35 | if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!'); |
---|
| 36 | define('LOCALEDIT_PATH' , PHPWG_PLUGINS_PATH . basename(dirname(__FILE__)) . '/'); |
---|
| 37 | |
---|
| 38 | function localfiles_admin_menu($menu) |
---|
| 39 | { |
---|
[2291] | 40 | array_push($menu, array( |
---|
| 41 | 'NAME' => 'LocalFiles Editor', |
---|
| 42 | 'URL' => get_admin_plugin_menu_link(LOCALEDIT_PATH . 'admin.php'))); |
---|
[2235] | 43 | return $menu; |
---|
| 44 | } |
---|
| 45 | |
---|
| 46 | add_event_handler('get_admin_plugin_menu_links', 'localfiles_admin_menu'); |
---|
| 47 | |
---|
| 48 | ?> |
---|