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