Skip to content
Permalink
Browse files

Add some more information to view_user_page

Fixes #25042
  • Loading branch information...
atrol committed Dec 9, 2018
1 parent ca8b1e1 commit 62f6c18e4e8fa77b928faf3ac837d3029a521e9b
Showing with 52 additions and 7 deletions.
  1. +52 −7 view_user_page.php
@@ -73,6 +73,8 @@
$u_email = user_get_email( $u_id );
$u_realname = user_get_realname( $u_id );
$t_date_format = config_get( 'normal_date_format' );
layout_page_header();
layout_page_begin();
@@ -100,6 +102,17 @@
<?php echo string_display_line( $u_username ) ?>
</td>
</tr>
<?php
if( $t_can_see_realname ) { ?>
<tr>
<th class="category">
<?php echo lang_get( 'realname' ) ?>
</th>
<td>
<?php echo string_display_line( $u_realname ); ?>
</td>
</tr>
<?php } ?>
<?php
if( $t_can_see_email ) { ?>
<tr>
@@ -116,14 +129,46 @@
</tr>
<?php } ?>
<?php
if( $t_can_see_realname ) { ?>
if( $t_can_manage ) { ?>
<tr>
<th class="category">
<?php echo lang_get( 'access_level' ) ?>
</th>
<td>
<?php echo string_display_line( get_enum_element( 'access_levels', $u_access_level ) ); ?>
</td>
</tr>
<tr>
<th class="category">
<?php echo lang_get( 'realname' ) ?>
</th>
<td>
<?php echo string_display_line( $u_realname ); ?>
</td>
<th class="category">
<?php echo lang_get( 'enabled' ) ?>
</th>
<td>
<?php echo $u_enabled ? lang_get( 'yes' ) : lang_get( 'no' ); ?>
</td>
</tr>
<tr>
<th class="category">
<?php echo lang_get( 'protected' ) ?>
</th>
<td>
<?php echo $u_protected ? lang_get( 'yes' ) : lang_get( 'no' ); ?>
</td>
</tr>
<tr>
<th class="category">
<?php echo lang_get( 'date_created' ) ?>
</th>
<td>
<?php echo date( $t_date_format, $u_date_created ); ?>
</td>
</tr>
<tr>
<th class="category">
<?php echo lang_get( 'last_visit' ) ?>
</th>
<td>
<?php echo date( $t_date_format, $u_last_visit ); ?>
</td>
</tr>
<?php } ?>
</fieldset>

0 comments on commit 62f6c18

Please sign in to comment.
You can’t perform that action at this time.