Basic Import
This commit is contained in:
25
admin.php
Normal file
25
admin.php
Normal file
@@ -0,0 +1,25 @@
|
||||
<?php
|
||||
defined('LDAP_LOGIN_PATH') or die('Hacking attempt!');
|
||||
|
||||
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');
|
||||
|
||||
$tabsheet->add('configuration', l10n('Configuration'), LDAP_LOGIN_ADMIN . '-configuration');
|
||||
$tabsheet->add('newusers', l10n('New users when ldap auth is successfull'), LDAP_LOGIN_ADMIN . '-newusers');
|
||||
$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 );
|
||||
|
||||
?>
|
||||
Reference in New Issue
Block a user