diff options
author | Meik Sievertsen <acydburn@phpbb.com> | 2005-11-20 18:58:34 +0000 |
---|---|---|
committer | Meik Sievertsen <acydburn@phpbb.com> | 2005-11-20 18:58:34 +0000 |
commit | 0202eb8a66920b43d37582bbd205a25f68523150 (patch) | |
tree | b3a4305900778053b729f15bcca1b244d2d510f8 /phpBB/includes/auth | |
parent | 9f1f945d5d78f049bf44e0c6afb7eefeb549f406 (diff) | |
download | forums-0202eb8a66920b43d37582bbd205a25f68523150.tar forums-0202eb8a66920b43d37582bbd205a25f68523150.tar.gz forums-0202eb8a66920b43d37582bbd205a25f68523150.tar.bz2 forums-0202eb8a66920b43d37582bbd205a25f68523150.tar.xz forums-0202eb8a66920b43d37582bbd205a25f68523150.zip |
- more acp additions and changes...
git-svn-id: file:///svn/phpbb/trunk@5310 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/auth')
-rw-r--r-- | phpBB/includes/auth/auth_ldap.php | 39 |
1 files changed, 23 insertions, 16 deletions
diff --git a/phpBB/includes/auth/auth_ldap.php b/phpBB/includes/auth/auth_ldap.php index 4a3293648e..b1150658bd 100644 --- a/phpBB/includes/auth/auth_ldap.php +++ b/phpBB/includes/auth/auth_ldap.php @@ -71,24 +71,31 @@ function admin_ldap(&$new) { global $user; -?> - <tr> - <td class="row1"><?php echo $user->lang['LDAP_SERVER']; ?>:<br /><span class="gensmall"><?php echo $user->lang['LDAP_SERVER_EXPLAIN']; ?></span></td> - <td class="row2"><input type="text" size="40" name="ldap_server" value="<?php echo $new['ldap_server']; ?>" /></td> - </tr> - <tr> - <td class="row1"><?php echo $user->lang['LDAP_DN']; ?>:<br /><span class="gensmall"><?php echo $user->lang['LDAP_DN_EXPLAIN']; ?></span></td> - <td class="row2"><input type="text" size="40" name="ldap_base_dn" value="<?php echo $new['ldap_base_dn']; ?>" /></td> - </tr> - <tr> - <td class="row1"><?php echo $user->lang['LDAP_UID']; ?>:<br /><span class="gensmall"><?php echo $user->lang['LDAP_UID_EXPLAIN']; ?></span></td> - <td class="row2"><input type="text" size="40" name="ldap_uid" value="<?php echo $new['ldap_uid']; ?>" /></td> - </tr> -<?php + /** + * @todo Using same approach with cfg_build_template? + */ + + $tpl = ' + + <dl> + <dt><label for="ldap_server">' . $user->lang['LDAP_SERVER'] . ':</label><br /><span>' . $user->lang['LDAP_SERVER_EXPLAIN'] . '</span></dt> + <dd><input type="text" id="ldap_server" size="40" name="ldap_server" value="' . $new['ldap_server'] . '" /></dd> + </dl> + <dl> + <dt><label for="ldap_dn">' . $user->lang['LDAP_DN'] . ':</label><br /><span>' . $user->lang['LDAP_DN_EXPLAIN'] . '</span></dt> + <dd><input type="text" id="ldap_dn" size="40" name="ldap_base_dn" value="' . $new['ldap_base_dn'] . '" /></dd> + </dl> + <dl> + <dt><label for="ldap_uid">' . $user->lang['LDAP_UID'] . ':</label><br /><span>' . $user->lang['LDAP_UID_EXPLAIN'] . '</span></dt> + <dd><input type="text" id="ldap_uid" size="40" name="ldap_uid" value="' . $new['ldap_uid'] . '" /></dd> + </dl> + '; // These are fields required in the config table - return array('ldap_server', 'ldap_base_dn', 'ldap_uid'); - + return array( + 'tpl' => $tpl, + 'config' => array('ldap_server', 'ldap_base_dn', 'ldap_uid') + ); } /** |