*/ // +-----------------------------------------------------------------------+ // | Piwigo - a PHP based picture gallery | // +-----------------------------------------------------------------------+ // | Copyright(C) 2008-2009 Piwigo Team http://piwigo.org | // | Copyright(C) 2003-2008 PhpWebGallery Team http://phpwebgallery.net | // | 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. | // +-----------------------------------------------------------------------+ if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!'); define('E_AUTHOR_PATH', PHPWG_PLUGINS_PATH.basename(dirname(__FILE__)) . '/'); // The plugin path define('E_AUTHOR_WEB_PATH', get_root_url().'admin.php?page=plugin-Extended_author'); // The path used in admin.php global $prefixeTable; define('AUTHORS', $prefixeTable.'author_extended'); // The db define('IMAGES', $prefixeTable.'images'); // The db //define('EA_COPYRIGHTS_MEDIA', $prefixeTable.'copyrights_media'); // The db //define('EA_COPYRIGHTS_ADMIN', $prefixeTable.'copyrights_admin'); // The db include_once(E_AUTHOR_PATH . 'include/functions.inc.php'); /* +-----------------------------------------------------------------------+ * | Plugin admin | * +-----------------------------------------------------------------------+ */ // Add an entry to the plugins menu add_event_handler('get_admin_plugin_menu_links', 'e_author_admin_menu'); function e_author_admin_menu($menu) { array_push( $menu, array( 'NAME' => 'Extended author', 'URL' => get_admin_plugin_menu_link(dirname(__FILE__)).'/admin.php' ) ); return $menu; } /* +-----------------------------------------------------------------------+ * | Plugin image | * +-----------------------------------------------------------------------+ */ // Add the author information to the picture's description include_once(dirname(__FILE__).'/image.php'); /* +-----------------------------------------------------------------------+ * | Plugin batchmanager | * +-----------------------------------------------------------------------+ */ // With the batchmanager, authors can be assigned to photos. There are two // modes: Global mode, for mass assignment; Unit mode, for one by one // assignment to the photos. // Global mode include_once(dirname(__FILE__).'/batch_global.php'); // Unit mode include_once(dirname(__FILE__).'/batch_single.php'); /* +-----------------------------------------------------------------------+ * | Plugin picture_modify | * +-----------------------------------------------------------------------+ */ // Add the author dropdown menu to picture_modify include_once(dirname(__FILE__).'/modify.php'); ?>