source: extensions/user_delete_photo/main.inc.php @ 21968

Revision 21964, 801 bytes checked in by ddtddt, 7 years ago (diff)

[extensions] - user_delete_photo - First release

RevLine 
[21964]1<?php
2/*
3Plugin Name: user delete photo
4Version: auto
5Description: Users can delete their photos (option on the photo page)
6Plugin URI: http://piwigo.org/ext/extension_view.php?eid=690
7Author: ddtddt
8Author URI:
9*/
10
11if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!');
12
13global $prefixeTable;
14
15define('UDP_DIR' , basename(dirname(__FILE__)));
16define('UDP_PATH' , PHPWG_PLUGINS_PATH . UDP_DIR . '/');
17
18
19 // Plugin on picture page
20if (script_basename() == 'picture') 
21{ 
22  include_once(dirname(__FILE__).'/initpicture.php');
23}
24
25// menu admin
26add_event_handler('get_admin_plugin_menu_links', 'UDP_admin_menu');
27function 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.