Commit a4831b3b90bf1a828563b972ab4b8ef74787f7d6
1 parent
64767af6
Basic Import
Showing
1 changed file
with
25 additions
and
0 deletions
admin.php
0 → 100644
1 | +<?php | ||
2 | +defined('LDAP_LOGIN_PATH') or die('Hacking attempt!'); | ||
3 | + | ||
4 | +global $template, $page, $conf; | ||
5 | + | ||
6 | +// get current tab | ||
7 | +$page['tab'] = (isset($_GET['tab'])) ? $_GET['tab'] : $page['tab'] = 'configuration'; | ||
8 | + | ||
9 | +// tabsheet | ||
10 | +include_once(PHPWG_ROOT_PATH.'admin/include/tabsheet.class.php'); | ||
11 | +$tabsheet = new tabsheet(); | ||
12 | +$tabsheet->set_id('ldap_login'); | ||
13 | + | ||
14 | +$tabsheet->add('configuration', l10n('Configuration'), LDAP_LOGIN_ADMIN . '-configuration'); | ||
15 | +$tabsheet->add('newusers', l10n('New users when ldap auth is successfull'), LDAP_LOGIN_ADMIN . '-newusers'); | ||
16 | +$tabsheet->select($page['tab']); | ||
17 | +$tabsheet->assign(); | ||
18 | + | ||
19 | +// include page | ||
20 | +include(LDAP_LOGIN_PATH . 'admin/' . $page['tab'] . '.php'); | ||
21 | + | ||
22 | +// template vars | ||
23 | +$template->assign('LDAP_LOGIN_PATH', get_root_url() . LDAP_LOGIN_PATH ); | ||
24 | + | ||
25 | +?> | ||
0 | \ No newline at end of file | 26 | \ No newline at end of file |