Last change
on this file since 28829 was
27458,
checked in by ddtddt, 11 years ago
|
[extensions] - Photo_add_by - if plugin see photo by user is actif - can show link on user on picture page with parameter plugin see photo by user
|
File size:
818 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 . '/'); |
---|
| 17 | |
---|
| 18 | // Plugin on picture page |
---|
| 19 | if (script_basename() == 'picture') |
---|
| 20 | { |
---|
| 21 | include_once(dirname(__FILE__).'/initpicture.php'); |
---|
| 22 | } |
---|
| 23 | |
---|
[21222] | 24 | // menu admin |
---|
| 25 | add_event_handler('get_admin_plugin_menu_links', 'PAB_admin_menu'); |
---|
| 26 | function PAB_admin_menu($menu) |
---|
| 27 | { |
---|
[27458] | 28 | load_language('plugin.lang', PAB_PATH); |
---|
[21222] | 29 | array_push($menu, array( |
---|
[27458] | 30 | 'NAME' => l10n('Photo added by'), |
---|
[21222] | 31 | 'URL' => get_admin_plugin_menu_link(PAB_PATH . 'admin/admin.php'))); |
---|
| 32 | return $menu; |
---|
| 33 | } |
---|
| 34 | |
---|
| 35 | |
---|
[16859] | 36 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.