-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathadmin.php
More file actions
34 lines (23 loc) · 747 Bytes
/
admin.php
File metadata and controls
34 lines (23 loc) · 747 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
<?php
defined('OKTA_PATH') or die('Hacking attempt!');
global $template, $page, $conf;
include_once(PHPWG_ROOT_PATH.'admin/include/tabsheet.class.php');
define('OKTA_BASE_URL', get_root_url().'admin.php?page=plugin-okta');
// get current tab
$page['tab'] = isset($_GET['tab']) ? $_GET['tab'] : $page['tab'] = 'config';
//tabsheet
$tabsheet = new tabsheet();
$tabsheet->set_id('okta');
$tabsheet->add('config', l10n('Configuration'), OKTA_ADMIN . '_connect');
$tabsheet->select($page['tab']);
$tabsheet->assign();
$template->assign(
array(
'ADMIN_PAGE_TITLE' => 'Okta',
)
);
// include page
include(OKTA_PATH . 'admin/' . $page['tab'] . '.php');
// send page content
$template->assign_var_from_handle('ADMIN_CONTENT', 'okta');
?>