Last change
on this file since 20032 was
20032,
checked in by julien1311, 12 years ago
|
[piwecard] lots of fixes
|
-
Property svn:eol-style set to
LF
|
File size:
935 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', ECARD_PATH); |
---|
8 | include_once(PHPWG_ROOT_PATH.'admin/include/tabsheet.class.php'); |
---|
9 | |
---|
10 | // +-----------------------------------------------------------------------+ |
---|
11 | // | Tabsheet |
---|
12 | // +-----------------------------------------------------------------------+ |
---|
13 | if (empty($conf['Ecard_tabs'])) { |
---|
14 | $conf['Ecard_tabs'] = array('authorizations', 'configuration', 'management'); |
---|
15 | } |
---|
16 | |
---|
17 | $page['tab'] = isset($_GET['tab']) ? $_GET['tab'] : $conf['Ecard_tabs'][0]; |
---|
18 | |
---|
19 | if (!in_array($page['tab'], $conf['Ecard_tabs'])) die('Hacking attempt!'); |
---|
20 | |
---|
21 | $tabsheet = new tabsheet(); |
---|
22 | foreach ($conf['Ecard_tabs'] as $tab) { |
---|
23 | $tabsheet->add($tab, l10n('ecard_admin_'.$tab), ECARD_ADMIN.'-'.$tab); |
---|
24 | } |
---|
25 | $tabsheet->select($page['tab']); |
---|
26 | $tabsheet->assign(); |
---|
27 | |
---|
28 | include_once(ECARD_PATH.'/admin/admin_'.$page['tab'].'.php'); |
---|
29 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.