source: extensions/autoupdate/branches/1.7/main.inc.php @ 14966

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

Piwigo AutoUpgrade ready for 1.7.x versions.

File size: 720 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
13define('AUTOUPDATE_PATH' , PHPWG_PLUGINS_PATH . basename(dirname(__FILE__)) . '/');
14
15if (script_basename() == 'admin')
16 add_event_handler('get_admin_plugin_menu_links', 'check_for_auto_upgrade');
17
18function 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.