Archived
1
0

Basic Import

This commit is contained in:
spelth
2015-05-02 11:29:52 +02:00
parent 7ec31c09a4
commit 5823772d4b
7 changed files with 371 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
<?php
if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!');
$me = get_plugin_data($plugin_id);
if (isset($_POST['submit']))
{
$me->config['host'] = $_POST['HOST'];
$me->config['basedn'] = $_POST['BASEDN'];
$me->config['pref'] = $_POST['PREF'];
$me->save_config();
}
global $template;
$template->set_filenames( array('plugin_admin_content' => dirname(__FILE__).'/ldap_login_plugin_admin.tpl') );
$template->assign('HOST', $me->config['host']);
$template->assign('BASEDN', $me->config['basedn']);
$template->assign('PREF', $me->config['pref']);
$template->assign_var_from_handle( 'ADMIN_CONTENT', 'plugin_admin_content');
?>