1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-06 22:57:14 +02:00

Show user ip address as IPV4 when it is

This commit is contained in:
e107steved
2008-12-21 16:19:29 +00:00
parent ab5a18d4f0
commit 64b024a80f

View File

@@ -9,8 +9,8 @@
* Administration Area - Users * Administration Area - Users
* *
* $Source: /cvs_backup/e107_0.8/e107_admin/users.php,v $ * $Source: /cvs_backup/e107_0.8/e107_admin/users.php,v $
* $Revision: 1.18 $ * $Revision: 1.19 $
* $Date: 2008-12-21 11:07:58 $ * $Date: 2008-12-21 16:19:29 $
* $Author: e107steved $ * $Author: e107steved $
* *
*/ */
@@ -592,7 +592,7 @@ class users
function show_existing_users($action, $sub_action, $id, $from, $amount) function show_existing_users($action, $sub_action, $id, $from, $amount)
{ {
global $sql, $rs, $ns, $tp, $mySQLdefaultdb,$pref,$unverified, $userMethods; global $sql, $rs, $ns, $tp, $mySQLdefaultdb,$pref,$unverified, $userMethods, $e107;
// save the display choices. // save the display choices.
if(isset($_POST['searchdisp'])) if(isset($_POST['searchdisp']))
{ {
@@ -714,7 +714,7 @@ class users
foreach($search_display as $disp) foreach($search_display as $disp)
{ {
$text .= "<td style='white-space:nowrap' class='forumheader3'>"; $text .= "<td style='white-space:nowrap' class='forumheader3'>";
if($disp == "user_class") if($disp == 'user_class')
{ {
if ($user_class) if ($user_class)
{ {
@@ -729,6 +729,10 @@ class users
$text .= "&nbsp;"; $text .= "&nbsp;";
} }
} }
elseif($disp == 'user_ip')
{
$text .= $e107->ipDecode($user_ip);
}
elseif (in_array($disp,$boleanfields)) elseif (in_array($disp,$boleanfields))
{ {
$text .= ($row[$disp]) ? ADMIN_TRUE_ICON : ""; $text .= ($row[$disp]) ? ADMIN_TRUE_ICON : "";