Pos = $position; $this->Name=$nam; $this->Rank=$rnk; $this->Money = $mon; // convert money from string to number by removing alphanum chars $this->MoneyAsNumber = eregi_replace(",", "", str_replace("\$","", $mon )); $this->KillsAsNumber = eregi_replace(",", "", $kil); $this->Kills = $kil; $this->TimeOnline = $time; // convert time to a comparable time format $timeparts = explode(":",$time); $tmp = 0; $this->TimeOnlineSecs = ($timeparts[0]*3600 + $timeparts[1]*60 + $timeparts[2]); $timeparts = NULL; $this->MissionsAsNumber = eregi_replace(",", "", $miss); $this->Missions = $miss; $this->Systems = $syst; $this->Bases = $bas; $this->Holes = $hol; $this->LastLogin = $last; $this->LastLoginComparable = NULL; } function setLastLoginComparable( $newVal) { $this->LastLoginComparable = $newVal; } function printTableRow( $linenr=' ', $fgcolor='black', $bgcolor='white' ) { echo "\t
| - Last updated on Sat Jul 23 02:00:27 2005 - Generated by FLstat v1.4, in 25 secs - | */ if ( $Pilots ) { $aLine=trim(fgets($source)); // get creationTimestamp $fields = explode(" ",trim(str_replace("-"," ",strip_tags($aLine)))); switch($fields[4]) { case "Jan": $mon="1"; break; case "Feb": $mon="2"; break; case "Mar": $mon="3"; break; case "Apr": $mon="4"; break; case "May": $mon="5"; break; case "Jun": $mon="6"; break; case "Jul": $mon="7"; break; case "Aug": $mon="8"; break; case "Sep": $mon="9"; break; case "Oct": $mon="10"; break; case "Nov": $mon="11"; break; case "Dec": $mon="12"; break; } $creationTimestamp = mktime(2,0,0,$mon,$fields[5],$fields[7]); } break; } else { // new record $column = 1; } } if (eregi("updateLastLoginComparable($creationTimestamp); } return $Pilots; } else { return NULL; } } // if ($Pilots==NULL) else return $Pilots; } //default sort Rank/Cash function sortByRank($a,$b) { if ($a->Pos == $b->Pos) return 0; return ($a->Pos < $b->Pos) ? -1 : 1; } function sortByName($a,$b) { $aU = strtoupper($a->Name); $bU = strtoupper($b->Name); if (!strcmp($aU,$bU)) return 0; return (strcmp($aU,$bU) < 0) ? -1 : 1; } function sortByCash($a,$b) { if ($a->MoneyAsNumber == $b->MoneyAsNumber) return 0; return ($a->MoneyAsNumber > $b->MoneyAsNumber) ? -1 : 1; } function sortByKills($a,$b) { if ($a->KillsAsNumber == $b->KillsAsNumber) return 0; return ($a->KillsAsNumber > $b->KillsAsNumber) ? -1 : 1; } function sortByTime($a,$b) { if ($a->TimeOnlineSecs == $b->TimeOnlineSecs) return 0; return ($a->TimeOnlineSecs > $b->TimeOnlineSecs) ? -1 : 1; } function sortByMissions($a,$b) { if ($a->MissionsAsNumber == $b->MissionsAsNumber) return 0; return ($a->MissionsAsNumber > $b->MissionsAsNumber) ? -1 : 1; } function sortByLastLogin($a,$b) { if ($a->LastLoginComparable == $b->LastLoginComparable) return 0; return ($a->LastLoginComparable > $b->LastLoginComparable) ? -1 : 1; } function printResultTableHeader() { global $header; echo "||||
| "; switch($cName){ case "Name": echo "$cName"; break; case "Rank": echo "$cName"; break; case "Money": echo "$cName"; break; case "Time Online": echo "$cName"; break; case "Kills": echo "$cName"; break; case "Missions": echo "$cName"; break; case "Last Login": echo "$cName"; break; default: echo $cName; } // switch echo " | \n"; } echo "\t
| Main Menu |
|---|
Show Sortable Pilot Rankings
|
Show Faction Overview
|
| "; echo " | "; echo " | Totals | "; echo ""; echo " | Averages | "; echo "
|---|---|---|---|---|
| Rank: | "; echo ""; echo " | ".$ResultSetTotals["Rank"]." | "; echo ""; echo " | ".$ResultSetTotals["AVRank"]." | "; echo "
| Cash: | "; echo ""; echo " | ".$ResultSetTotals["Money"]." | "; echo ""; echo " | ".$ResultSetTotals["AVMoney"]." | "; echo "
| Kills: | "; echo ""; echo " | ".$ResultSetTotals["Kills"]." | "; echo ""; echo " | ".$ResultSetTotals["AVKills"]." | "; echo "
| Missions: | "; echo ""; echo " | ".$ResultSetTotals["Missions"]." | "; echo ""; echo " | ".$ResultSetTotals["AVMissions"]." | "; echo "
| Time Online: | "; echo ""; echo " | ".$ResultSetTotals["Time"]." | "; echo ""; echo " | ".$ResultSetTotals["AVTime"]." | "; echo "
| *) math. rounded value **) fractions of seconds are not regarded | ||||
Top 250 Players showed in rankings
Main menu
Forum
";
print_r ($_GET);
echo "