diff options
Diffstat (limited to 'templates')
-rw-r--r-- | templates/show_ip_history.inc.php | 3 | ||||
-rw-r--r-- | templates/show_preferences.inc | 4 |
2 files changed, 5 insertions, 2 deletions
diff --git a/templates/show_ip_history.inc.php b/templates/show_ip_history.inc.php index dd251a3f..497082f1 100644 --- a/templates/show_ip_history.inc.php +++ b/templates/show_ip_history.inc.php @@ -21,6 +21,9 @@ */ ?> <?php show_box_top($temp_user->fullname . ' ' . _('IP History')); ?> +<div class="text-action"> + <a href="<?php echo conf('web_path')?>/admin/users.php?action=show_ip_history&user_id=<?php echo $temp_user->username?>&all"><?php echo _('Show All'); ?>...</a> +</div> <table border="0"> <tr class="table-header"> <td align="center"> diff --git a/templates/show_preferences.inc b/templates/show_preferences.inc index b9bf1e53..7221c73a 100644 --- a/templates/show_preferences.inc +++ b/templates/show_preferences.inc @@ -66,11 +66,11 @@ if (($GLOBALS['user']->has_access(100)) AND ($user_id == '-1' AND conf('use_auth <li <?php echo $tab_options; ?>> <a href="<?php echo $link; ?>?tab=options&user_id=<?php echo $user_id; ?>" <?php echo $a_options; ?>>Options</a> </li> -<?php if ($user_id != '-1') { ?> +<?php if ($user_id != '-1' && $_SESSION['userdata']['type'] == 'mysql') { ?> <li <?php echo $tab_account; ?>> <a href="<?php echo $link; ?>?tab=account&user_id=<?php echo $user_id; ?>" <?php echo $a_account; ?>>Account</a> </li> -<?php } else { ?> +<?php } elseif ($_SESSION['userdata']['type'] == 'mysql' || $user_id == '-1') { ?> <li <?php echo $tab_system; ?>> <a href="<?php echo $link; ?>?tab=system&user_id=<?php echo $user_id; ?>" <?php echo $a_system; ?>>System</a> </li> |