RELEASE 0.9.8
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
<?php
|
||||
// $Header: /cvsroot/phpldapadmin/phpldapadmin/htdocs/login_form.php,v 1.25 2005/07/22 05:47:44 wurley Exp $
|
||||
// $Header: /cvsroot/phpldapadmin/phpldapadmin/htdocs/login_form.php,v 1.25.4.2 2005/12/11 09:03:07 wurley Exp $
|
||||
|
||||
/**
|
||||
* Displays the login form for a server for users who specify 'cookie' or 'session' for their auth_type.
|
||||
@@ -17,15 +17,17 @@
|
||||
require './common.php';
|
||||
|
||||
if (! $ldapserver->auth_type)
|
||||
pla_error($lang['error_auth_type_config']);
|
||||
pla_error(_('Error: You have an error in your config file. The only three allowed values
|
||||
for auth_type in the $servers section are \'session\', \'cookie\', and \'config\'. You entered \'%s\',
|
||||
which is not allowed. '));
|
||||
if (! in_array($ldapserver->auth_type, array('cookie','session')))
|
||||
pla_error(sprintf($lang['unknown_auth_type'],htmlspecialchars($ldapserver->auth_type)));
|
||||
pla_error(sprintf(_('Unknown auth_type: %s'),htmlspecialchars($ldapserver->auth_type)));
|
||||
|
||||
include './header.php'; ?>
|
||||
|
||||
<body>
|
||||
<?php if( $ldapserver->isAnonBindAllowed() ) { ?>
|
||||
<script language="javascript">
|
||||
<script type="text/javascript" language="javascript">
|
||||
<!--
|
||||
function toggle_disable_login_fields( anon_checkbox )
|
||||
{
|
||||
@@ -41,14 +43,14 @@ include './header.php'; ?>
|
||||
</script>
|
||||
<?php } ?>
|
||||
|
||||
<h3 class="title"><?php printf($lang['authenticate_to_server'],$ldapserver->name); ?></h3>
|
||||
<h3 class="title"><?php printf(_('Authenticate to server %s'),$ldapserver->name); ?></h3>
|
||||
<br />
|
||||
|
||||
<?php if (! isset($_SERVER['HTTPS']) || $_SERVER['HTTPS'] != 'on') { ?>
|
||||
<center>
|
||||
<span style="color:red">
|
||||
<acronym title="<?php echo $lang['not_using_https']; ?>">
|
||||
<?php echo $lang['warning_this_web_connection_is_unencrypted']; ?>
|
||||
<acronym title="<?php echo _('You are not using \'https\'. Web browser will transmit login information in clear text.'); ?>">
|
||||
<?php echo _('Warning: This web connection is unencrypted.'); ?>
|
||||
</acronym>
|
||||
</span>
|
||||
<br />
|
||||
@@ -69,7 +71,7 @@ include './header.php'; ?>
|
||||
|
||||
<?php if( $ldapserver->isAnonBindAllowed() ) { ?>
|
||||
<tr>
|
||||
<td colspan="2"><small><label for="anonymous_bind_checkbox"><?php echo $lang['anonymous_bind']; ?></label></small> <input type="checkbox" name="anonymous_bind" onclick="toggle_disable_login_fields(this)" id="anonymous_bind_checkbox"/></td>
|
||||
<td colspan="2"><small><label for="anonymous_bind_checkbox"><?php echo _('Anonymous Bind'); ?></label></small> <input type="checkbox" name="anonymous_bind" onclick="toggle_disable_login_fields(this)" id="anonymous_bind_checkbox"/></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
|
||||
@@ -77,9 +79,9 @@ include './header.php'; ?>
|
||||
<td><small>
|
||||
<?php
|
||||
if ($ldapserver->isLoginAttrEnabled())
|
||||
echo $lang['user_name'];
|
||||
echo _('User name');
|
||||
else
|
||||
echo $lang['login_dn'];
|
||||
echo _('Login DN');
|
||||
?>
|
||||
</small></td>
|
||||
|
||||
@@ -87,12 +89,12 @@ else
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><small><?php echo $lang['password']; ?></small></td>
|
||||
<td><small><?php echo _('Password'); ?></small></td>
|
||||
<td><input type="password" size="40" value="" name="login_pass" /></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td colspan="2"><center><input type="submit" name="submit" value="<?php echo $lang['authenticate']; ?>" /></center></td>
|
||||
<td colspan="2"><center><input type="submit" name="submit" value="<?php echo _('Authenticate'); ?>" /></center></td>
|
||||
</tr>
|
||||
</table>
|
||||
</center>
|
||||
|
Reference in New Issue
Block a user