source: extensions/Piwecard/admin.php @ 26532

Last change on this file since 26532 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
3if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!');
4check_status(ACCESS_ADMINISTRATOR);
5
6global $template, $conf, $user;
7
8load_language('plugin.lang', PIWECARD_PATH);
9include_once(PHPWG_ROOT_PATH.'admin/include/tabsheet.class.php');
10
11// +-----------------------------------------------------------------------+
12// |                            Tabsheet
13// +-----------------------------------------------------------------------+
14$piwecard_tabs = array('permissions', 'configuration', 'management');
15
16if (isset($_GET['tab']))
17        $page['tab'] = $_GET['tab'];
18else
19        $page['tab'] = $piwecard_tabs[0];
20
21if (!in_array($page['tab'], $piwecard_tabs))
22        die('Hacking attempt!');
23
24$tabsheet = new tabsheet();
25foreach ($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
31include_once(PIWECARD_PATH.'/admin/admin_'.$page['tab'].'.php');
32?>
Note: See TracBrowser for help on using the repository browser.