Line | |
---|
1 | <?php |
---|
2 | /* |
---|
3 | Plugin Name: Piwigo AutoUpgrade |
---|
4 | Version: auto |
---|
5 | Description: Upgrade your gallery automatically. |
---|
6 | Plugin URI: http://piwigo.org/ext/extension_view.php?eid=302 |
---|
7 | Author: P@t |
---|
8 | Author URI: http://www.gauchon.com |
---|
9 | */ |
---|
10 | |
---|
11 | if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!'); |
---|
12 | |
---|
13 | define('AUTOUPDATE_PATH' , PHPWG_PLUGINS_PATH . basename(dirname(__FILE__)) . '/'); |
---|
14 | |
---|
15 | if (script_basename() == 'admin') |
---|
16 | add_event_handler('get_admin_plugin_menu_links', 'check_for_auto_upgrade'); |
---|
17 | |
---|
18 | function check_for_auto_upgrade($plugin_menu_links) |
---|
19 | { |
---|
20 | array_push($plugin_menu_links, array( |
---|
21 | 'NAME' => 'Piwigo AutoUpgrade', |
---|
22 | 'URL' => get_admin_plugin_menu_link(AUTOUPDATE_PATH . '/autoupdate.php'))); |
---|
23 | |
---|
24 | return $plugin_menu_links; |
---|
25 | } |
---|
26 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.