".$namef."'s Data

"; if($guid == 2000343) { echo "

TWM2 LEAD DEVELOPER

"; } else if($guid == 2130825 || $guid == 2001245) { echo "

TWM2 CO-DEVELOPER

"; } //stuff echo "
"; echo "
"; echo ""; echo ""; echo ""; // echo "
"; //exp // $mEXPStart = strpos($theData, "millionxp = \"") + 13; $mexpEnd = strpos($theData,"\";",$mEXPStart); $mexpLen = $mexpEnd - $mEXPStart; $mexp = substr($theData, $mEXPStart, $mexpLen); if($mEXPStart <= 13) { $mexp = 0; } //exp $expStart = strpos($theData, "xp = \"", $mexpEnd) + 6; $expEnd = strpos($theData,"\";",$expStart); $expLen = $expEnd - $expStart; if($expStart == false || $expLen <= 0) { $exp = 0; } else { $exp = substr($theData, $expStart, $expLen); if($exp <= 0) { $expStart = strpos($theData, "xp = \"") + 6; $expEnd = strpos($theData,"\";",$expStart); $expLen = $expEnd - $expStart; $exp = substr($theData, $expStart, $expLen); } } // $f = $exp + (1000000*$mexp); // $exp += ($mexp*1000000); // $pStart = strpos($theData, "officer = \""); if($pStart <= 0) { $prestige = 0; } else { $pStart += 11; $pEnd = strpos($theData,"\";",$pStart); $pLen = $pEnd - $pStart; $prest = substr($theData, $pStart, $pLen); $prestige = $prest; } // echo "

EXP: ".number_format($exp)."

"; echo "

Lifetime EXP: ".number_format($exp + ($prestige * 3000000))."

"; //rank $rankStart = strpos($theData, "rank = \"") + 8; $rankEnd = strpos($theData,"\";",$rankStart); $rankLen = $rankEnd - $rankStart; $rank = substr($theData, $rankStart, $rankLen); $rankf = str_replace("\"","",$rank); // $output = "".str_Replace("Grade", "", $rankf).".png"; $output2 = "".str_Replace("IV", "4", $output).".png"; $output3 = "".str_Replace("III", "3", $output2).".png"; $output4 = "".str_Replace("II", "2", $output3).".png"; $output5 = "".str_Replace("I", "1", $output4).".png"; $output6 = "".str_Replace(" ", "", $output5).".png"; $output7 = "".str_Replace(".png", "", $output6).".png"; // if($prestige > 0) { echo "

Officer Level: ".$prestige."

"; $output7 = "Officer".$prestige.".png"; switch($prestige) { case 1: $rankf = "Instructive ".$rankf.""; break; case 2: $rankf = "Excelling ".$rankf.""; break; case 3: $rankf = "Champion ".$rankf.""; break; case 4: $rankf = "Prestigious ".$rankf.""; break; case 5: $rankf = "Supreme ".$rankf.""; break; case 6: $rankf = "Glorious ".$rankf.""; break; case 7: $rankf = "Ultimate ".$rankf.""; break; case 8: $rankf = "Shadowing ".$rankf.""; break; case 9: $rankf = "Phantom ".$rankf.""; break; case 10: $rankf = "(*) Phantom ".$rankf.""; break; } } // echo "

Current Rank:

"; echo "\"Image

"; //Global arrays global $RanksMinPoints; global $RanksNewRank; global $RankRankCount; global $PrestigeName; // $NextRankFound = 0; // if($rankf != "Master Commander" && ($exp < 3000000)) { for($rnk = 0; $rnk < $RankRankCount; $rnk = $rnk + 1) { if($NextRankFound == 0) { if($exp >= $RanksMinPoints[$rnk +1]) { $rname = $RanksNewRank[$rnk +1]; } else { //ladies and gentlemen, we have reached our next rank $NextRankFound = 1; $NextRank = $PrestigeName[$prestige].$RanksNewRank[$rnk +1]; $rexp = $RanksMinPoints[$rnk+1]; $pexp = $RanksMinPoints[$rnk]; $NextEXP = $rexp - $exp; $next = ($exp - $pexp) / ($rexp - $pexp); $perc = $next * 100; } } } } else { if($rankf != "Phantom Master Commander" && $rankf != "(*) Phantom Master Commander") { $NextRank = "Officer Promotion"; $NextEXP = 0; $rexp = $exp; $pexp = $RanksMinPoints[$rnk]; $next = 1; $perc = 100; } else { //$NextRank = ""; $NextEXP = 0; $rexp = $exp; $pexp = $RanksMinPoints[$rnk]; $next = 1; $perc = 100; } } //$exp = current, $rexp = next rank, $pexp = previous rank if(isSet($NextRank)) { echo "Next Rank: ".$NextRank."

"; } echo "

"; echo "
"; echo "
"; echo "(".number_format($exp)."/".number_format($rexp)."(".number_format($perc)."%)

"; echo "EXP Needed: ".$NextEXP."

"; //name $phraseStart = strpos($theData, "phrase = \"") + 10; if($phraseStart <= 0) { echo "Phrase: None Set.

"; } else { $phraseEnd = strpos($theData,"\";",$phraseStart); $phraseLen = $phraseEnd - $phraseStart; $phrase = substr($theData, $phraseStart , $phraseLen); $phrasef = str_replace("\"","",$phrase); if($phrasef != "") { echo "Phrase: ".$phrasef."

"; } else { echo "Phrase: None Set.

"; } } // echo "

"; echo "

Current Rank Progression

"; echo "
"; echo "

"; GetCompletedRanks($guid); echo "

"; echo "
"; echo "

Current Officer Ranks Progression

"; echo "
"; echo "

"; GetCompletedPrestige($guid); echo "

"; echo "
"; echo "

Other

"; echo "
"; echo "

"; //handle other icons here :P GetOtherIcons($guid); echo "
"; } else { echo "GUID: ".$guid." Does not have any universally saved data.

"; } ?>