source: extensions/Piwecard/admin.php @ 20088

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

[piwecard] rename some variables to be coherent with core naming (authorization => permission)

  • Property svn:eol-style set to LF
File size: 909 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// +-----------------------------------------------------------------------+
13$piwecard_tabs = array('permissions', 'configuration', 'management');
14
15if (isset($_GET['tab']))
16        $page['tab'] = $_GET['tab'];
17else
18        $page['tab'] = $piwecard_tabs[0];
19
20if (!in_array($page['tab'], $piwecard_tabs)
21        die('Hacking attempt!');
22
23$tabsheet = new tabsheet();
24foreach ($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
30include_once(PIWECARD_PATH.'/admin/admin_'.$page['tab'].'.php');
31?>
Note: See TracBrowser for help on using the repository browser.