source: extensions/hotlink_compatibility/main.inc.php @ 31012

Last change on this file since 31012 was 16274, checked in by mistic100, 12 years ago

create Hotlink Compatibility plugin

File size: 704 bytes
Line 
1<?php
2/*
3Plugin Name: Hotlink Compatibility
4Version: auto
5Description: Update your .htaccess file to resolve your old hotlinks, useless for new users in Piwigo 2.4 or above.
6Plugin URI: http://piwigo.org/ext/extension_view.php?eid=613
7Author: Piwigo Team
8Author URI: http://www.piwigo.org
9*/
10
11if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!');
12
13if (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.