source: extensions/Piwecard/admin.php @ 19745

Last change on this file since 19745 was 19738, checked in by julien1311, 12 years ago

move admin.php

  • Property svn:eol-style set to LF
File size: 911 bytes
Line 
1<?php
2
3if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!');
4
5global $template, $conf, $user;
6
7load_language('plugin.lang', ECARD_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('manage', 'params', 'consult');
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('ecard_admin_'.$tab), ECARD_ADMIN.'-'.$tab);
24}
25$tabsheet->select($page['tab']);
26$tabsheet->assign();
27
28include_once(ECARD_PATH.'/admin/'.$page['tab'].'.php');
29?>
Note: See TracBrowser for help on using the repository browser.