RELEASE 0.9.2
This commit is contained in:
39
templates/modification/user.php
Normal file
39
templates/modification/user.php
Normal file
@@ -0,0 +1,39 @@
|
||||
<?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>
|
||||
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&dn=$encoded_dn&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>
|
Reference in New Issue
Block a user