Last change
on this file since 5913 was
4711,
checked in by patdenice, 15 years ago
|
[Plugin][Piwigo Auto Upgrade]
If gallery and plugins are up to date, display note on admin homepage only one time for each session.
Allow to disable notification for plugins you don't want to update.
|
File size:
718 bytes
|
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 | if (script_basename() == 'admin') add_event_handler('get_admin_plugin_menu_links', 'check_for_auto_upgrade'); |
---|
14 | |
---|
15 | function check_for_auto_upgrade($plugin_menu_links) |
---|
16 | { |
---|
17 | global $template, $page, $conf, $header_notes; |
---|
18 | |
---|
19 | if ($page['page'] == 'intro') |
---|
20 | { |
---|
21 | include(dirname(__FILE__).'/autoupdate.php'); |
---|
22 | } |
---|
23 | |
---|
24 | if ($page['page'] == 'plugins_update') |
---|
25 | { |
---|
26 | include(dirname(__FILE__).'/plugins_update.php'); |
---|
27 | } |
---|
28 | |
---|
29 | return $plugin_menu_links; |
---|
30 | } |
---|
31 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.