- $uid = _IS_GUEST;
- }
- OUTPUT_HTML("<TR>
- <TD align=\"center\" width=\"5%\" class=\"switch_sw".$SW." bottom right\">".$id."</TD>
- <TD align=\"center\" width=\"15%\" class=\"switch_sw".$SW." bottom right\">");
- if ($uid > 0)
- {
- OUTPUT_HTML(ADMIN_USER_PROFILE_LINK($uid));
- }
- else
- {
- OUTPUT_HTML($uid);
- }
- if ($ref > 0)
- {
- $ref = ADMIN_USER_PROFILE_LINK($ref);
- }
- OUTPUT_HTML("</TD>
- <TD align=\"center\" width=\"10%\" class=\"switch_sw".$SW." bottom right\">".$ip."</TD>
- <TD align=\"center\" width=\"5%\" class=\"switch_sw".$SW." bottom right\">".$ref."</TD>
- <TD align=\"center\" width=\"10%\" class=\"switch_sw".$SW." bottom right\">".$mod."</TD>
- <TD align=\"center\" width=\"10%\" class=\"switch_sw".$SW." bottom right\">".$act."</TD>
- <TD align=\"center\" width=\"5%\" class=\"switch_sw".$SW." bottom right\">".$wht."</TD>
- <TD align=\"center\" width=\"10%\" class=\"switch_sw".$SW." bottom\">".MAKE_DATETIME($time, "2")."</TD>
-</TR>");
+ $content['userid'] = getMessage('_IS_GUEST');
+ } elseif ($content['userid'] > 0) {
+ // Add profile link to userid
+ $content['userid'] = generateUserProfileLink($content['userid']);
+ } // END - if
+
+ // Is the refid set?
+ if ($content['refid'] > 0) {
+ // Add profile link to referer id
+ $content['refid'] = generateUserProfileLink($content['refid']);
+ } // END - if
+
+ OUTPUT_HTML("<tr>
+ <td align=\"center\" width=\"5%\" class=\"switch_sw".$SW." bottom right\">".$content['id']."</td>
+ <td align=\"center\" width=\"15%\" class=\"switch_sw".$SW." bottom right\">".$content['userid']."</td>
+ <td align=\"center\" width=\"10%\" class=\"switch_sw".$SW." bottom right\">".$content['ip']."</td>
+ <td align=\"center\" width=\"5%\" class=\"switch_sw".$SW." bottom right\">".$content['refid']."</td>
+ <td align=\"center\" width=\"10%\" class=\"switch_sw".$SW." bottom right\">".$content['module']."</td>
+ <td align=\"center\" width=\"10%\" class=\"switch_sw".$SW." bottom right\">".$content['action']."</td>
+ <td align=\"center\" width=\"5%\" class=\"switch_sw".$SW." bottom right\">".$content['what']."</td>
+ <td align=\"center\" width=\"10%\" class=\"switch_sw".$SW." bottom\">".generateDateTime($content['timestamp'], '2')."</td>
+</tr>");