phpldapadmin/templates/modification/user.php
2009-06-30 18:09:20 +10:00

40 lines
1.2 KiB
PHP

<?php
/*
* User modification template. All phpLDAPadmin templates can assume that the following
* variables are defined externally for them:
* $server_id
* $dn
* Other variables will need to be manually extracted from the $_GET or $_POST arrays.
* It may also be assumed that all functions in functions.php and schema_functions.php
* are available for use.
*/
$rdn = get_rdn( $dn );
$user_name = explode( '=', $rdn );
$user_name = $user_name[1];
$encoded_dn = rawurlencode( $dn );
$server_name = $servers[$server_id]['name'];
include 'header.php';
?>
<body>
<h3 class="title">Editing User: <b><?php echo htmlspecialchars( utf8_decode( $user_name ) ); ?></b></h3>
<h3 class="subtitle">
Server: <b><?php echo $server_name; ?></b> &nbsp;&nbsp;&nbsp;
LDAP <acronym title="Distinguished Name">DN</acronym>:
<b><?php echo htmlspecialchars( utf8_decode( $dn ) ); ?></b>
</h3>
<?php $default_href = "edit.php?server_id=$server_id&amp;dn=$encoded_dn&amp;use_default_template=true"; ?>
<center><small>
Using the <b>user</b> template.
You may switch to the <a href="<?php echo $default_href; ?>">default template</a>
</small></center>
<center><h1><tt>TODO: FinishMe</tt></h1></center>