Last change
on this file since 31373 was
30431,
checked in by ddtddt, 10 years ago
|
[extensions] - Photo_add_by - compatibility see photo by user
|
File size:
848 bytes
|
Rev | Line | |
---|
[16859] | 1 | <?php |
---|
| 2 | /* |
---|
[16897] | 3 | Plugin Name: Photo added by |
---|
[16859] | 4 | Version: auto |
---|
[16897] | 5 | Description: Add who added photo on photo page |
---|
[16859] | 6 | Plugin URI: http://piwigo.org/ext/extension_view.php?eid=621 |
---|
| 7 | Author: ddtddt |
---|
| 8 | Author URI: |
---|
| 9 | */ |
---|
| 10 | |
---|
| 11 | if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!'); |
---|
| 12 | |
---|
| 13 | global $prefixeTable; |
---|
| 14 | |
---|
| 15 | define('PAB_DIR' , basename(dirname(__FILE__))); |
---|
| 16 | define('PAB_PATH' , PHPWG_PLUGINS_PATH . PAB_DIR . '/'); |
---|
[30431] | 17 | define('PAB_ADMIN',get_root_url().'admin.php?page=plugin-'.PAB_DIR); |
---|
[16859] | 18 | |
---|
| 19 | // Plugin on picture page |
---|
| 20 | if (script_basename() == 'picture') |
---|
| 21 | { |
---|
| 22 | include_once(dirname(__FILE__).'/initpicture.php'); |
---|
| 23 | } |
---|
| 24 | |
---|
[21222] | 25 | // menu admin |
---|
| 26 | add_event_handler('get_admin_plugin_menu_links', 'PAB_admin_menu'); |
---|
| 27 | function PAB_admin_menu($menu) |
---|
| 28 | { |
---|
[27458] | 29 | load_language('plugin.lang', PAB_PATH); |
---|
[30431] | 30 | |
---|
| 31 | $menu[] = array( |
---|
| 32 | 'NAME' => l10n('Photo added by'), |
---|
| 33 | 'URL' => PAB_ADMIN, |
---|
| 34 | ); |
---|
[21222] | 35 | return $menu; |
---|
| 36 | } |
---|
| 37 | |
---|
[16859] | 38 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.