Last change
on this file since 20234 was
20180,
checked in by julien1311, 12 years ago
|
[piwecard] several improvements
|
-
Property svn:eol-style set to
LF
|
File size:
946 bytes
|
Line | |
---|
1 | <?php |
---|
2 | |
---|
3 | if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!'); |
---|
4 | check_status(ACCESS_ADMINISTRATOR); |
---|
5 | |
---|
6 | global $template, $conf, $user; |
---|
7 | |
---|
8 | load_language('plugin.lang', PIWECARD_PATH); |
---|
9 | include_once(PHPWG_ROOT_PATH.'admin/include/tabsheet.class.php'); |
---|
10 | |
---|
11 | // +-----------------------------------------------------------------------+ |
---|
12 | // | Tabsheet |
---|
13 | // +-----------------------------------------------------------------------+ |
---|
14 | $piwecard_tabs = array('permissions', 'configuration', 'management'); |
---|
15 | |
---|
16 | if (isset($_GET['tab'])) |
---|
17 | $page['tab'] = $_GET['tab']; |
---|
18 | else |
---|
19 | $page['tab'] = $piwecard_tabs[0]; |
---|
20 | |
---|
21 | if (!in_array($page['tab'], $piwecard_tabs)) |
---|
22 | die('Hacking attempt!'); |
---|
23 | |
---|
24 | $tabsheet = new tabsheet(); |
---|
25 | foreach ($piwecard_tabs as $tab) { |
---|
26 | $tabsheet->add($tab, l10n('piwecard_admin_'.$tab), PIWECARD_ADMIN.'-'.$tab); |
---|
27 | } |
---|
28 | $tabsheet->select($page['tab']); |
---|
29 | $tabsheet->assign(); |
---|
30 | |
---|
31 | include_once(PIWECARD_PATH.'/admin/admin_'.$page['tab'].'.php'); |
---|
32 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.