[6779] | 1 | <?php |
---|
| 2 | /**************************************************************************\ |
---|
| 3 | * eGroupWare - Setup * |
---|
| 4 | * http://www.egroupware.org * |
---|
| 5 | * -------------------------------------------- * |
---|
| 6 | * This program is free software; you can redistribute it and/or modify it * |
---|
| 7 | * under the terms of the GNU General Public License as published by the * |
---|
| 8 | * Free Software Foundation; either version 2 of the License, or (at your * |
---|
| 9 | * option) any later version. * |
---|
| 10 | \**************************************************************************/ |
---|
| 11 | |
---|
| 12 | |
---|
| 13 | $GLOBALS['phpgw_info'] = array(); |
---|
| 14 | $GLOBALS['phpgw_info']['flags'] = array( |
---|
| 15 | 'noheader' => True, |
---|
| 16 | 'nonavbar' => True, |
---|
| 17 | 'currentapp' => 'home', |
---|
| 18 | 'noapi' => True |
---|
| 19 | ); |
---|
| 20 | include('./inc/functions.inc.php'); |
---|
| 21 | |
---|
| 22 | // Authorize the user to use setup app and load the database |
---|
| 23 | if (!$GLOBALS['phpgw_setup']->auth('Config')) |
---|
| 24 | { |
---|
| 25 | Header('Location: index.php'); |
---|
| 26 | exit; |
---|
| 27 | } |
---|
| 28 | // Does not return unless user is authorized |
---|
| 29 | |
---|
| 30 | if (get_var('cancel',Array('POST'))) |
---|
| 31 | { |
---|
| 32 | Header('Location: index.php'); |
---|
| 33 | exit; |
---|
| 34 | } |
---|
| 35 | |
---|
| 36 | $tpl_root = $GLOBALS['phpgw_setup']->html->setup_tpl_dir('setup'); |
---|
| 37 | $setup_tpl = CreateObject('setup.Template',$tpl_root); |
---|
| 38 | $setup_tpl->set_file(array( |
---|
| 39 | 'ldap' => 'ldap.tpl', |
---|
| 40 | 'T_head' => 'head.tpl', |
---|
| 41 | 'T_footer' => 'footer.tpl', |
---|
| 42 | 'T_alert_msg' => 'msg_alert_msg.tpl' |
---|
| 43 | )); |
---|
| 44 | |
---|
| 45 | $GLOBALS['phpgw_setup']->html->show_header(lang('LDAP Config'),False,'config',$GLOBALS['phpgw_setup']->ConfigDomain . '(' . $phpgw_domain[$GLOBALS['phpgw_setup']->ConfigDomain]['db_type'] . ')'); |
---|
| 46 | |
---|
| 47 | if ($GLOBALS['error']) |
---|
| 48 | { |
---|
| 49 | //echo '<br><center><b>Error:</b> '.$error.'</center>'; |
---|
| 50 | $GLOBALS['phpgw_setup']->html->show_alert_msg('Error',$GLOBALS['error']); |
---|
| 51 | } |
---|
| 52 | |
---|
| 53 | $setup_tpl->set_block('ldap','header','header'); |
---|
| 54 | $setup_tpl->set_block('ldap','jump','jump'); |
---|
| 55 | $setup_tpl->set_block('ldap','cancel_only','cancel_only'); |
---|
| 56 | $setup_tpl->set_block('ldap','footer','footer'); |
---|
| 57 | |
---|
| 58 | $setup_tpl->set_var('description',lang('LDAP Accounts Configuration')); |
---|
| 59 | $setup_tpl->set_var('lang_ldapmodify',lang('Modify an existing LDAP account store for use with eGroupWare (for a new install using LDAP accounts)')); |
---|
| 60 | $setup_tpl->set_var('lang_ldapimport',lang('Import accounts from LDAP to the eGroupware accounts table (for a new install using SQL accounts)')); |
---|
| 61 | $setup_tpl->set_var('lang_ldapexport',lang('Export eGroupware accounts from SQL to LDAP')); |
---|
| 62 | $setup_tpl->set_var('lang_ldapdummy',lang('Setup Admin account in LDAP')); |
---|
| 63 | $setup_tpl->set_var('ldapmodify','ldapmodify.php'); |
---|
| 64 | $setup_tpl->set_var('ldapimport','ldapimport.php'); |
---|
| 65 | $setup_tpl->set_var('ldapexport','ldapexport.php'); |
---|
| 66 | $setup_tpl->set_var('ldapdummy','setup_demo.php'); |
---|
| 67 | $setup_tpl->set_var('action_url','index.php'); |
---|
| 68 | $setup_tpl->set_var('cancel',lang('Cancel')); |
---|
| 69 | |
---|
| 70 | $setup_tpl->pfp('out','header'); |
---|
| 71 | $setup_tpl->pfp('out','jump'); |
---|
| 72 | $setup_tpl->pfp('out','cancel_only'); |
---|
| 73 | $setup_tpl->pfp('out','footer'); |
---|
| 74 | |
---|
| 75 | $GLOBALS['phpgw_setup']->html->show_footer(); |
---|
| 76 | ?> |
---|