source: extensions/autoupdate/main.inc.php @ 4699

Last change on this file since 4699 was 4699, checked in by patdenice, 14 years ago

[Plugin][Piwigo Auto Upgrade]
Check upgrade with ajax (avoid timeout)
Check also plugins upgrades

File size: 614 bytes
Line 
1<?php
2/*
3Plugin Name: Piwigo AutoUpgrade
4Version: auto
5Description: Upgrade your gallery automatically.
6Plugin URI: http://piwigo.org/ext/extension_view.php?eid=302
7Author: P@t
8Author URI: http://www.gauchon.com
9*/
10
11if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!');
12
13if (script_basename() == 'admin') add_event_handler('get_admin_plugin_menu_links', 'check_for_auto_upgrade');
14
15function 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  return $plugin_menu_links;
25}
26?>
Note: See TracBrowser for help on using the repository browser.