home .::

[ active projects ]
FyreChat
Sierra Classics Launcher

[ retired projects ]
FyReBoT
cFx

[ code ]
Assembly
C++
Java
Visual Basic

[ contact ]
Contact Me
"s", "seconds" => "s", "minute" => "m", "minutes" => "m", "hour" => "h", "hours" => "h", "day" => "d", "days" => "d", "week" => "w", "weeks" => "w", "year" => "y", "years" => "y", "separator" => " ", "suffix" => "ago", ); $delimiters = array_merge($defaults, $delimiters); $difference = abs($firstdate - $seconddate); $years = floor(($difference / 86400) / 365); $weeks = ($difference / 604800) % 55; $days = ($difference / 86400) % 7; $hours = ($difference / 3600) % 24; $mins = ($difference / 60) % 60; $secs = ($difference % 60); $units = array(); if ($years > 0) $units[] = $years . $delimiters[($years == 1) ? "year" : "years"]; if ($weeks > 0) $units[] = $weeks . $delimiters[($weeks == 1) ? "week" : "weeks"]; if ($days > 0) $units[] = $days . $delimiters[($days == 1) ? "day" : "days"]; if ($hours > 0) $units[] = $hours . $delimiters[($hours == 1) ? "hour" : "hours"]; if ($mins > 0) $units[] = $mins . $delimiters[($mins == 1) ? "minute" : "minutes"]; if ($secs > 0 || !count($units)) $units[] = $secs . $delimiters[($secs == 1) ? "second" : "seconds"]; if (count($units) > $numunits) $units = array_slice($units, 0, $numunits); $units[] = $delimiters["suffix"]; return join($delimiters["separator"], $units); } // Get the time the file was last uploaded $lastupdated = filemtime($logfile); $lastupdated = datediff($lastupdated, mktime()); // Open the channel_list.txt file, with supression $lines = @file($logfile); $numusers = count($lines); ?>
"Blizzard Representative", "SYSOP" => "System Operator", "OP" => "Channel Operator", "SPKR" => "Speaker", "GLASSES" => "Glasses", "SQUELCH" => "Squelched", "GFOFFICIAL" => "GF Official", "GFPLAYER" => "GF Player", "CHAT" => "Chat User", "DRTL" => "Diablo", "STAR" => "StarCraft", "DSHR" => "Diablo Shareware", "SSHR" => "StarCraft Shareware", "SEXP" => "StarCraft Brood War", "JSTR" => "StarCraft Japan", "D2DV" => "Diablo II", "W2BN" => "Warcraft II Battle.net Edition", "D2XP" => "Diablo II Lord of Destruction", "WAR3" => "Warcraft III", "W3XP" => "Warcraft III The Frozen Throne", ); // Loop through lines in the file foreach ($lines as $line_num => $line) { $icon_start = strPos($line, "[ICON]"); $icon_end = strPos($line, "[/ICON]"); $icon = trim(substr($line, $icon_start, ($icon_end - $icon_start))); $icon = str_replace("[ICON]", "", $icon); $icon = '' . $gameclient[$icon] . ''; $user_start = strPos($line, "[USER]"); $user_end = strPos($line, "[/USER]"); $luser = trim(substr($line, $user_start, ($user_end - $user_start))); $luser = str_replace("[USER]", "", $luser); $ping_start = strPos($line, "[PING]"); $ping_end = strPos($line, "[/PING]"); $ping = trim(substr($line, $ping_start, ($ping_end - $ping_start))); $ping = str_replace("[PING]", "", $ping); $realping = $ping . "ms"; if($ping == 'PLUG') { $ping = 'PLUG'; $realping = 'UDP Plug'; } elseif($ping == 0) { $ping = '0'; } elseif($ping == -1) { $ping = '1b'; } elseif($ping < 200) { $ping = '1g'; } elseif($ping < 300) { $ping = '2g'; } elseif($ping < 400) { $ping = '3y'; } elseif($ping < 500) { $ping = '4y'; } elseif($ping < 600) { $ping = '5r'; } else { $ping = '6r'; } $ping = '' . $ping . ''; ?>

Channel: @

Total Users: - Last Updated:
Game Username Ping
*Note: Channel list is uploaded every seconds from

© OpenFyre Software. All rights reserved.
HTML 4.01 | CSS