Last Seen - Friend List Cleaner

Enter your username:

Filter Out Online UsersShow all friends - Only show users inactive for more than 60 days

GetFriends(); $timenow = date( "U" ); foreach( $friends as $k => $v ) { $nickname = base64_decode( $v["nickname_base64" ] ); $filteronline = (bool)$_GET["filteronline"]; if( empty( $nickname ) ) { $nickname = $v["username"]; } if( $v["status"] == "online" ) { $statustext = "Online"; $diff_text = "n/a"; $diff = 0; } else { $statustext = "Offline"; $lastlogoff = $v["last_logoff_ts"]; $diff = (($timenow - $lastlogoff)/86400); if( $diff < 1 ) { $diff_text = "Less than a day ago"; } else { if( (int)$diff < 2 ) { $diff_text = "1 day ago"; } else { $diff_text = (int)$diff . " days ago"; } } } if( ( $filteronline == true && $v["status" ] == "online" ) || ( !empty($_GET["daysfilter" ]) && $diff < $_GET["daysfilter" ] ) ) { echo "\n"; $hiddenfriends++; } else { echo "\n\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t"; $shownfriends++; } $total++; } ?>
Nickname Status Last Online
" . htmlentities( utf8_decode( $nickname ) ) . "$statustext$diff_text
out of friends shown 0 ) { ?> ( hidden).

© 2008 Stephen Swires. Original idea by BennyRom