source: extensions/Piwecard/admin.php @ 20080

Last change on this file since 20080 was 20059, checked in by julien1311, 11 years ago

[piwecard] some updates (almost 2.4.a.b2)

  • Property svn:eol-style set to LF
File size: 947 bytes
Line 
1<?php
2
3if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!');
4
5global $template, $conf, $user;
6
7load_language('plugin.lang', PIWECARD_PATH);
8include_once(PHPWG_ROOT_PATH.'admin/include/tabsheet.class.php');
9
10// +-----------------------------------------------------------------------+
11// |                            Tabsheet
12// +-----------------------------------------------------------------------+
13if (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
19if (!in_array($page['tab'], $conf['Ecard_tabs'])) die('Hacking attempt!');     
20
21$tabsheet = new tabsheet();
22foreach ($conf['Ecard_tabs'] as $tab) {
23        $tabsheet->add($tab, l10n('piwecard_admin_'.$tab), PIWECARD_ADMIN.'-'.$tab);
24}
25$tabsheet->select($page['tab']);
26$tabsheet->assign();
27
28include_once(PIWECARD_PATH.'/admin/admin_'.$page['tab'].'.php');
29?>
Note: See TracBrowser for help on using the repository browser.