source: extensions/autoupdate/trunk/admin.php @ 31941

Revision 9712, 639 bytes checked in by patdenice, 8 years ago (diff)

Clean code.
Rename files.

Line 
1<?php
2
3if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!');
4
5include_once(PHPWG_ROOT_PATH.'admin/include/tabsheet.class.php');
6
7load_language('plugin.lang', AUTOUPDATE_PATH);
8
9$my_base_url = get_root_url().'admin.php?page=plugin-'.basename(dirname(__FILE__));
10
11if (isset($_GET['tab']))
12  $page['tab'] = $_GET['tab'];
13else
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
22include(AUTOUPDATE_PATH.'/update_'.$page['tab'].'.inc.php');
23
24?>
Note: See TracBrowser for help on using the repository browser.