Rev | Line | |
---|
[19261] | 1 | <?php |
---|
| 2 | if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!'); |
---|
| 3 | |
---|
| 4 | $me = get_plugin_data($plugin_id); |
---|
| 5 | |
---|
| 6 | if (isset($_POST['submit'])) |
---|
| 7 | { |
---|
| 8 | $me->config['host'] = $_POST['HOST']; |
---|
| 9 | $me->config['basedn'] = $_POST['BASEDN']; |
---|
| 10 | $me->config['pref'] = $_POST['PREF']; |
---|
| 11 | $me->save_config(); |
---|
| 12 | } |
---|
| 13 | |
---|
| 14 | global $template; |
---|
| 15 | $template->set_filenames( array('plugin_admin_content' => dirname(__FILE__).'/ldap_login_plugin_admin.tpl') ); |
---|
| 16 | |
---|
| 17 | $template->assign('HOST', $me->config['host']); |
---|
| 18 | $template->assign('BASEDN', $me->config['basedn']); |
---|
| 19 | $template->assign('PREF', $me->config['pref']); |
---|
| 20 | |
---|
| 21 | $template->assign_var_from_handle( 'ADMIN_CONTENT', 'plugin_admin_content'); |
---|
| 22 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.