source: extensions/AddInfo/admin/admin.php @ 18358

Last change on this file since 18358 was 9405, checked in by ddtddt, 14 years ago

[extensions] - AddInfo - update

File size: 1.3 KB
RevLine 
[7646]1<?php
2if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!');
3global $template, $conf, $user;
4include_once(PHPWG_ROOT_PATH .'admin/include/tabsheet.class.php');
5load_language('plugin.lang', ADDINFO_PATH);
6$my_base_url = get_admin_plugin_menu_link(__FILE__);
7
8// +-----------------------------------------------------------------------+
9// | Check Access and exit when user status is not ok                      |
10// +-----------------------------------------------------------------------+
11check_status(ACCESS_ADMINISTRATOR);
12
13//-------------------------------------------------------- sections definitions
14
15// Gestion des onglets
16if (!isset($_GET['tab']))
[9405]17    $page['tab'] = 'explication';
[7646]18else
19    $page['tab'] = $_GET['tab'];
20
21$tabsheet = new tabsheet();
22$tabsheet->add('explication',
[7969]23               l10n('addinfo_explication'),
[7646]24               $my_base_url.'&amp;tab=explication');
25$tabsheet->select($page['tab']);
26$tabsheet->assign();
27
28switch ($page['tab'])
29{
[9405]30// tab help
[7646]31  case 'explication':
32  $explication = 'explication';
33$template->assign(
34        $explication,
35        array(
36          'meta'=>l10n('meta_name'),
37          ));
38 
39        break;
40       
41} 
42
43$template->set_filenames(array('plugin_admin_content' => dirname(__FILE__) . '/admin.tpl')); 
44$template->assign_var_from_handle('ADMIN_CONTENT', 'plugin_admin_content');
45?>
Note: See TracBrowser for help on using the repository browser.