Line | |
---|
1 | <?php |
---|
2 | |
---|
3 | if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!'); |
---|
4 | |
---|
5 | include_once(PHPWG_ROOT_PATH.'admin/include/tabsheet.class.php'); |
---|
6 | |
---|
7 | load_language('plugin.lang', AUTOUPDATE_PATH); |
---|
8 | |
---|
9 | $my_base_url = get_root_url().'admin.php?page=plugin-'.basename(dirname(__FILE__)); |
---|
10 | |
---|
11 | if (isset($_GET['tab'])) |
---|
12 | $page['tab'] = $_GET['tab']; |
---|
13 | else |
---|
14 | $page['tab'] = 'pwg'; |
---|
15 | |
---|
16 | $tabsheet = new tabsheet(); |
---|
17 | $tabsheet->add('pwg', l10n('Piwigo Upgrade'), $my_base_url.'-pwg'); |
---|
18 | $tabsheet->add('ext', l10n('Extensions Upgrade'), $my_base_url.'-ext'); |
---|
19 | $tabsheet->select($page['tab']); |
---|
20 | $tabsheet->assign(); |
---|
21 | |
---|
22 | include(AUTOUPDATE_PATH.'/update_'.$page['tab'].'.inc.php'); |
---|
23 | |
---|
24 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.