source: extensions/Piwecard/admin.php @ 28625

Revision 28625, 944 bytes checked in by mistic100, 5 years ago (diff)

prevent errors by removing all PHP closing tags

  • Property svn:eol-style set to LF
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');
Note: See TracBrowser for help on using the repository browser.