-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathadmin.php
More file actions
29 lines (22 loc) · 1.05 KB
/
admin.php
File metadata and controls
29 lines (22 loc) · 1.05 KB
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
<?php
if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!');
// +-----------------------------------------------------------------------+
// | Check Access and exit when user status is not ok |
// +-----------------------------------------------------------------------+
check_status(ACCESS_WEBMASTER);
global $page, $conf;
$page['tab'] = 'config';
// Create tabsheet
include_once(PHPWG_ROOT_PATH . 'admin/include/tabsheet.class.php');
$tabsheet = new tabsheet();
$tabsheet->set_id('two_factor_tab');
$tabsheet->add('config', '<span class="icon-cog"></span>'.l10n('Configuration'), TF_ADMIN . '-config');
$tabsheet->select($page['tab']);
$tabsheet->assign();
$template->assign(array(
'ADMIN_PAGE_TITLE' => l10n('Two Factor Authentication')
));
include_once(TF_REALPATH . '/admin/config.php');
// include_once(TF_REALPATH . 'admin/' . $page['tab'] . '.php');
$template->set_filename('two_factor_plugin_content', TF_REALPATH . '/admin/template/configuration.tpl');
$template->assign_var_from_handle('ADMIN_CONTENT', 'two_factor_plugin_content');