forked from 22decembre/ldap_login
-
Notifications
You must be signed in to change notification settings - Fork 15
/
admin.php
31 lines (22 loc) · 945 Bytes
/
admin.php
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
<?php
if (! defined('PHPWG_ROOT_PATH')) {
exit('Hacking attempt!');
}
check_status(ACCESS_ADMINISTRATOR);
global $template, $page, $conf;
// get current tab
$page['tab'] = (isset($_GET['tab'])) ? $_GET['tab'] : $page['tab'] = 'configuration';
// tabsheet
include_once PHPWG_ROOT_PATH . 'admin/include/tabsheet.class.php';
$tabsheet = new tabsheet();
$tabsheet->set_id(LDAP_LOGIN_ID);
$tabsheet->add('configuration', l10n('Configuration'), LDAP_LOGIN_ADMIN . '-configuration');
$tabsheet->add('newusers', l10n('New user management'), LDAP_LOGIN_ADMIN . '-newusers');
$tabsheet->add('test', l10n('Test Login'), LDAP_LOGIN_ADMIN . '-test');
$tabsheet->add('support', l10n('Support'), LDAP_LOGIN_ADMIN . '-support');
$tabsheet->select($page['tab']);
$tabsheet->assign();
// include page
include LDAP_LOGIN_PATH . 'admin/' . $page['tab'] . '.php';
// template vars
$template->assign('LDAP_LOGIN_PATH', get_root_url() . LDAP_LOGIN_PATH);