source: extensions/Ldap_Login/admin.php @ 31932

Revision 27036, 774 bytes checked in by 22decembre, 4 years ago (diff)

version 1.0.1

add main function : ability to add new piwigo users when ldap is successful.
add danish language, must be reviewed

this version is not yet considered stable, as needed to be reviewed and commented by beta-testers

Line 
1<?php
2defined('LDAP_LOGIN_PATH') or die('Hacking attempt!');
3 
4global $template, $page, $conf;
5
6// get current tab
7$page['tab'] = (isset($_GET['tab'])) ? $_GET['tab'] : $page['tab'] = 'configuration';
8
9// tabsheet
10include_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
20include(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?>
Note: See TracBrowser for help on using the repository browser.