Last change
on this file since 30790 was
21964,
checked in by ddtddt, 12 years ago
|
[extensions] - user_delete_photo - First release
|
File size:
801 bytes
|
Line | |
---|
1 | <?php |
---|
2 | /* |
---|
3 | Plugin Name: user delete photo |
---|
4 | Version: auto |
---|
5 | Description: Users can delete their photos (option on the photo page) |
---|
6 | Plugin URI: http://piwigo.org/ext/extension_view.php?eid=690 |
---|
7 | Author: ddtddt |
---|
8 | Author URI: |
---|
9 | */ |
---|
10 | |
---|
11 | if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!'); |
---|
12 | |
---|
13 | global $prefixeTable; |
---|
14 | |
---|
15 | define('UDP_DIR' , basename(dirname(__FILE__))); |
---|
16 | define('UDP_PATH' , PHPWG_PLUGINS_PATH . UDP_DIR . '/'); |
---|
17 | |
---|
18 | |
---|
19 | // Plugin on picture page |
---|
20 | if (script_basename() == 'picture') |
---|
21 | { |
---|
22 | include_once(dirname(__FILE__).'/initpicture.php'); |
---|
23 | } |
---|
24 | |
---|
25 | // menu admin |
---|
26 | add_event_handler('get_admin_plugin_menu_links', 'UDP_admin_menu'); |
---|
27 | function UDP_admin_menu($menu) |
---|
28 | { |
---|
29 | array_push($menu, array( |
---|
30 | 'NAME' => 'user delete photo', |
---|
31 | 'URL' => get_admin_plugin_menu_link(UDP_PATH . 'admin/admin.php'))); |
---|
32 | return $menu; |
---|
33 | } |
---|
34 | |
---|
35 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.