Last change
on this file since 17379 was
16274,
checked in by mistic100, 12 years ago
|
create Hotlink Compatibility plugin
|
File size:
704 bytes
|
Line | |
---|
1 | <?php |
---|
2 | /* |
---|
3 | Plugin Name: Hotlink Compatibility |
---|
4 | Version: auto |
---|
5 | Description: Update your .htaccess file to resolve your old hotlinks, useless for new users in Piwigo 2.4 or above. |
---|
6 | Plugin URI: http://piwigo.org/ext/extension_view.php?eid=613 |
---|
7 | Author: Piwigo Team |
---|
8 | Author URI: http://www.piwigo.org |
---|
9 | */ |
---|
10 | |
---|
11 | if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!'); |
---|
12 | |
---|
13 | if (script_basename() == 'admin') |
---|
14 | { |
---|
15 | add_event_handler('get_admin_plugin_menu_links', 'addht_plugin_admin_menu'); |
---|
16 | |
---|
17 | function addht_plugin_admin_menu($menu) |
---|
18 | { |
---|
19 | array_push($menu, array( |
---|
20 | 'NAME' => 'Hotlink Compatibility', |
---|
21 | 'URL' => get_root_url().'admin.php?page=plugin-'.basename(dirname(__FILE__)) |
---|
22 | )); |
---|
23 | return $menu; |
---|
24 | } |
---|
25 | } |
---|
26 | |
---|
27 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.