rendered paste body<table class="xfire_lastseen"> <tr> <th>Nickname</th> <th>Status</th> <th>Last Online</th> </tr><?phpinclude( "xfireparser.class.php" );$xf = new xfire_data( "phpj0ck", true );$friends = $xf->GetFriends();$timenow = date( "U" );foreach( $friends as $k => $v ){ $nickname = base64_decode( $v["nickname_base64" ] ); if( empty( $nickname ) ) { $nickname = $v["username"]; } if( $v["status"] == "online" ) { $statustext = "<span style=\"color: #00AA00\">Online</span>"; $diff_text = "n/a"; } else { $statustext = "<span style=\"color: #AA0000\">Offline</span>"; $lastlogoff = $v["last_logoff_ts"]; $diff = (int)(($timenow - $lastlogoff)/86400); if( $diff < 1 ) { $diff_text = "Less than a day ago"; } else { $diff_text = $diff . " days"; } } echo "\n\t<tr>\n\t\t<td><a href=\"http://xfire.com/profile/" . $v["username"] . "/\">" . $nickname . "</a></td>\n\t\t<td>$statustext</td>\n\t\t<td>$diff_text</td>\n\t</tr>";}?></table>