source: extensions/Media_Icon/admin/admin.php @ 19324

Revision 19324, 1.1 KB checked in by julien1311, 7 years ago (diff)

new options : position and opacity

  • Property svn:eol-style set to LF
Line 
1<?php
2//Chech whether we are indeed included by Piwigo.
3if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!');
4
5//Load globals
6global $conf, $page;
7
8//Library for tabs
9include_once(PHPWG_ROOT_PATH .'admin/include/tabsheet.class.php');
10
11//Load translation files
12load_language('plugin.lang', MEDIA_ICON_PATH);
13
14//Check access and exit when user status is not ok
15check_status(ACCESS_ADMINISTRATOR);
16
17//Initialization
18$my_base_url = get_admin_plugin_menu_link(__FILE__);
19
20//Tab management
21if (!isset($_GET['tab']))
22    $page['tab'] = 'general';
23else
24    $page['tab'] = $_GET['tab'];
25
26$tabsheet = new tabsheet();
27$tabsheet->add('general',
28               l10n('General'),
29               $my_base_url.'&amp;tab=general');
30$tabsheet->add('advanced',
31               l10n('Advanced options'),
32               $my_base_url.'&amp;tab=advanced');
33$tabsheet->select($page['tab']);
34$tabsheet->assign();
35
36switch ($page['tab']) {
37        case 'advanced':
38                include_once(dirname(__FILE__).'/admin_advanced.php');
39                break;
40        default:
41                include_once(dirname(__FILE__).'/admin_general.php');
42                break;
43}
44?>
Note: See TracBrowser for help on using the repository browser.