// Eventlog Parser by -z- | Last Updated 02/23/08 // ---------------------------------------------- // www.nexuizninjaz.com // ---------------------------------------------- // // This Class Parses all possible outputs as denoted // by eventlog.txt // $s_join_player = ":join:10:player:-z-"; $s_join_bot = ":join:5:bot:[BOT]Acidic"; $s_part = ":part:5"; ?>
function isJoin($string) { // Is it a join? $isJoin = (substr($string,1,4) == "join") ? TRUE : FALSE; // Yes, parse the Type, ID and Nickname if ($isJoin) { $joinData = explode(":",substr($string,6)); } return ($isJoin) ? $joinData : FALSE; } ?>