'; $name = $stats->get('player', 'name'); // Rankinfo $rankicon = $stats->get('player', 'rank', Array('rankicon', 'rank', 'medium')); $rankinfo = $stats->get('player', 'rank', Array('rankicon', 'progress_detail')); // Kit-Image $result = $stats->format('kits', 'favs'); $kittip = $result['tip']; $kitimage = $path.'stylesheets/images/kits/'.strtolower($result['raw']).'.png'; // Template-Ausgabe eval ("\$tpl_detail = \"".$tpl->template("detail")."\";"); $tpl_detail = phpQuery::newDocumentHTML($tpl_detail); } ### KITS ### if (true) { // Allgemeine Stats $time = $stats->get('global', 'time', Array('time', 0, 'date')); $spm = $stats->get('scores', 'score', Array('ratio', ($stats->get('global', 'time')) / 60, 0, '', 'spm')); $spm_rank = create_ranking_info("spm", $spm['format']); $skill = $stats->get('global', 'elo', Array('number', 0, "", "skill")); $skill_rank = create_ranking_info("elo", $skill['format']); $rounds = $stats->get('global', 'rounds', Array('number', 0)); $rounds_rank = create_ranking_info("roundsplayed", $rounds['format']); $frounds = $stats->get('global', 'elo_games', Array('number', 0)); $quits = $stats->form(($rounds['raw']-$frounds['raw'])/$rounds['raw'], Array('number', 0, "%")); $quits_rank = create_ranking_info("roundsfinishedperc", $quits['format']); $wins = $stats->get('global', 'wins', Array('number', 0, "", "wins")); $loss = $stats->get('global', 'losses', Array('number', 0, "", "loss")); $wlr = $stats->get('global', 'wins', Array('ratio', ($stats->get('global', 'losses')), 2, '', 'wlr')); $wlr_rank = create_ranking_info("wlr", $wlr['format']); $wlr_color = ($wlr['raw'] >= 1) ? "positive" : "negative"; eval ("\$tpl_kits = \"".$tpl->template("detail_kits")."\";"); $tpl_kits = phpQuery::newDocumentHTML($tpl_kits); // Kit Stats $kits = $stats->get('kits'); $time_sum = 0; $kit_score = 0; foreach ($kits as $kit) { // Ermitteln der Gesamtspielzeit mit allen Kits, sowie der Gesamtpunktzahl if (isset($kit->score)) { $time_sum = $time_sum + $kit->time; $kit_score = $kit_score + $kit->score; } } foreach ($kits as $kit) { // Erstellen des HTML-Codes fr die Kits if (isset($kit->score)) { $score = $stats->form($kit->score, Array('number', 0, "", "score")); $time = $stats->form($kit->time, Array('time', 0, 'date')); $kitimage = $path.'stylesheets/images/'.$kit->img_bk; $count = $kit->star->count; $starimage = $count ? $path.'stylesheets/images/misc/servicestar.png' : $path.'stylesheets/images/misc/servicestar_trans.png'; $points = $kit->star->needed - $kit->star->curr; $tip = $tpl->phrase('star_desc_score'); eval ( "\$tip = \"$tip\";" ); $value = $stats->form($kit->time, Array('ratio', $time_sum, 0, "%")); $value = $value['format']; $tip_time = $tpl->phrase('kit_time'); eval ( "\$tip_time = \"$tip_time\";" ); $tip_spm = $stats->form($kit->score, Array('ratio',($kit->time / 60), 0, "")); $tip_spm = $tip_spm['format']; $time_us = $stats->form($kit->timeu, Array('ratio', $kit->time, 0, "%")); $time_us = $time_us['format']; $time_ru = $stats->form($kit->timer, Array('ratio', $kit->time, 0, "%")); $time_ru = $time_ru['format']; $tip_side = $tpl->phrase('kit_side'); eval ( "\$tip_side = \"$tip_side\";" ); eval ("\$kitdetail = \"".$tpl->template("detail_kits_detail")."\";"); pq('[name=kitdetail]')->append($kitdetail); } } } ### SCORES ### if (true) { $kit_score = $stats->format($kit_score, Array('number', 0)); $vehicle_score = $stats->get('scores', 'vehicleall', Array('number', 0)); $vehicle_score_rank = create_ranking_info("vehiclescorepvm", $vehicle_score['format']); $award_score = $stats->get('scores', 'award', Array('number', 0)); $unlock_score = $stats->get('scores', 'unlock', Array('number', 0)); $overall_score = $stats->get('scores', 'score', Array('number', 0)); $overall_score_rank = create_ranking_info("score", $overall_score['format']); $bonus_score = $stats->get('scores', 'bonus', Array('number', 0)); $objective_score = $stats->get('scores', 'objective', Array('number', 0)); $objective_score_rank = create_ranking_info("ospm", $objective_score['format']); $squad_score = $stats->get('scores', 'squad', Array('number', 0)); $team_score = $stats->get('scores', 'team', Array('number', 0)); $revives = $stats->get('global', 'revives', Array('number', 0)); $revives_rank = create_ranking_info("revivespam", $revives['format']); $resupplies = $stats->get('global', 'resupplies', Array('number', 0)); $resupplies_rank = create_ranking_info("resuppliespsm", $resupplies['format']); $heals = $stats->get('global', 'heals', Array('number', 0)); $heals_rank = create_ranking_info("healspam", $heals['format']); $repairs = $stats->get('global', 'repairs', Array('number', 0)); $repairs_rank = create_ranking_info("repairspem", $repairs['format']); $mcomdest = $stats->get('global', 'mcomdest', Array('number', 0)); $mcomdefkills = $stats->get('global', 'mcomdefkills', Array('number', 0)); $flagcaps = $stats->get('global', 'flagcaps', Array('number', 0)); $flagdef = $stats->get('global', 'flagdef', Array('number', 0)); $kills = $stats->get('global', 'kills', Array('number', 0)); $kills_rank = create_ranking_info("kpm", $kills['format']); $deaths = $stats->get('global', 'deaths', Array('number', 0)); $kdr = $stats->form($kills['raw'], Array('ratio', $deaths['raw'], 2, '')); $kdr_rank = create_ranking_info("kdr", $kdr['format']); $kdr_color = ($kdr['raw'] >= 1) ? "positive" : "negative"; $vehicledestroyed = $stats->get('global', 'vehicledestroyed', Array('number', 0)); $vehicledestroyed_rank = create_ranking_info("disvehpr", $vehicledestroyed['format']); $saviorkills = $stats->get('global', 'saviorkills', Array('number', 0)); $saviorkills_rank = create_ranking_info("saviorkills", $saviorkills['format']); $avengerkills = $stats->get('global', 'avengerkills', Array('number', 0)); $avengerkills_rank = create_ranking_info("avengerkills", $avengerkills['format']); $nemesiskills = $stats->get('global', 'nemesiskills', Array('number', 0)); $nemesisstreak = $stats->get('global', 'nemesisstreak', Array('number', 0)); $killstreakbonus = $stats->get('global', 'killstreakbonus', Array('number', 0)); $dogtags = $stats->get('global', 'dogtags', Array('number', 0)); $dogtags_rank = create_ranking_info("dogtagkillperc", $dogtags['format']); $shots = $stats->get('global', 'shots', Array('number', 0)); $shots_rank = create_ranking_info("shotspermin", $shots['format']); $hits = $stats->get('global', 'hits', Array('number', 0)); $accuracy = $stats->form($hits['raw'], Array('ratio', $shots['raw'], 1, '%')); $headshots = $stats->get('global', 'headshots', Array('number', 0)); $hskillperc = $stats->form($headshots['raw'], Array('ratio', $kills['raw'], 1, '%')); $hskillperc_rank = create_ranking_info("hskillperc", $hskillperc['format']); $longesths = $stats->get('global', 'longesths', Array('number', 0)); $longesths_rank = create_ranking_info("headshdist", $longesths['format']); $longesthandhs = $stats->get('global', 'longesthandhs', Array('number', 0)); $killassists = $stats->get('global', 'killassists', Array('number', 0)); $killassists_rank = create_ranking_info("kassistsperc", $killassists['format']); $destroyassist = $stats->get('global', 'vehicledestroyassist', Array('number', 0)); $suppression = $stats->get('global', 'suppression', Array('number', 0)); $suppression_rank = create_ranking_info("suppressionperc", $suppression['format']); $killstreakbonus = $stats->get('global', 'killstreakbonus', Array('number', 0)); eval ("\$tpl_scores = \"".$tpl->template("detail_scores")."\";"); $tpl_scores = phpQuery::newDocumentHTML($tpl_scores); } ### WEAPONS ### if (true) { $top = Array("favourite" => Array(), "deadliest" => Array(), "accurate" => Array(), "dangerous" => Array()); // Array fr Top-Weapon-bersicht $disallowed = Array("AA Launchers", "Pistols", "AT Launchers", "Special", "Underslungs"); // Waffen-Kategorien, die nicht fr die Top-Weapon-bersicht bercksichtigt werden $ssprogress = Array("curr" => 0, "needed" => 0); // Array fr die Anzeige, wieviele Primr-Waffen einen Servicestar haben $weapons = $stats->get('weapons'); eval ("\$tpl_weapons = \"".$tpl->template("detail_weapons")."\";"); $tpl_weapons = phpQuery::newDocumentHTML($tpl_weapons); foreach ($weapons as $key => $weapon) { $row = ""; $src = $path.'stylesheets/images/'.$weapon->img; eval ("\$info = \"".$tpl->template("detail_weapons_info")."\";"); $row .= ''; $count = $weapon->star->count; $kills = $weapon->star->needed - $weapon->star->curr; $src = $count ? $path.'stylesheets/images/misc/servicestar.png' : $path.'stylesheets/images/misc/servicestar_trans.png'; $tip = $tpl->phrase('star_desc'); eval ( "\$tip = \"$tip\";" ); $row .= ''; if (isset($weapon->r) AND isset($weapon->c)) { $name = $weapon->name; $type = $tpl->phrase("ranking_weapons"); $rank = $stats->form($weapon->r, Array('number', 0)); $count = $stats->form($weapon->c, Array('number', 0)); $percent = $stats->form($weapon->r, Array('ratio', $weapon->c, 0, '%')); $value = $stats->form($weapon->kills, Array('number', 0, "", "kills")); eval ("\$info = \"".$tpl->template("detail_ranking_info_short")."\";"); if ($percent["raw"] >= 0.8) { $pos = 12; } else if ($percent["raw"] >= 0.6) { $pos = 24; } else if ($percent["raw"] >= 0.4) { $pos = 36; } else if ($percent["raw"] >= 0.2) { $pos = 48; } else { $pos = 60; } $row .= ''; } else $row .= ''; $src = $path.'stylesheets/images/'.$kits[$weapon->kit]->img; $name = ucfirst($weapon->kit); $row .= ''; $result = $weapon->time ? $stats->form($weapon->time, Array("time", "", "dynamic")) : Array('sort' => '0', 'tip' => '0 min', 'format' => '0'); $row .= ''; $result = $stats->form($weapon->kills, Array('number', 0, "", "kills")); $row .= ''; $result = $stats->form($weapon->headshots, Array('number')); $row .= ''; $result = $stats->form($weapon->headshots, Array("ratio", $weapon->kills, 0, "%")); $row .= ''; $result = $stats->form($weapon->kills, Array("ratio", ($weapon->time / 60), 2)); $row .= ''; $result = $stats->form($weapon->shots, Array('number')); $row .= ''; $result = $stats->form($weapon->hits, Array('number')); $row .= ''; $result = $stats->form($weapon->hits, Array("ratio", $weapon->shots, 0, "%")); $row .= ''; $unlocked = 0; $unlocks = count($weapon->unlocks); if ($unlocks) { // Waffe hat Unlocks foreach ($weapon->unlocks as $nr => $unlock) { if ($unlock->curr == $unlock->needed) { $unlocked = $unlocked + 1; $left = 0; } else { $left = $unlock->needed - $unlock->curr; break; } } $tip = $left ? $tpl->phrase('unlocks_desc') : $tpl->phrase('unlocks_desc_short'); eval ( "\$tip = \"$tip\";" ); $result = $stats->form($unlocked, Array("ratio", $unlocks, 0, "%")); $row .= ''; } else { // Waffe hat keine Unlocks $tip = $tpl->phrase('no_unlocks_desc'); $row .= ''; } if ($weapon->kills >= 25 AND !in_array($weapon->category, $disallowed)) { $top['favourite'][$key] = $weapon->kills; $top['deadliest'][$key] = (int)round($weapon->kills / $weapon->time * 1000); $top['accurate'][$key] = (int)round($weapon->hits / $weapon->shots * 1000); $top['dangerous'][$key] = (int)round($weapon->headshots / $weapon->kills * 1000); } if (!in_array($weapon->category, $disallowed)) { if ($weapon->kills >= 100) $ssprogress['curr'] = $ssprogress['curr'] + 1; $ssprogress['needed'] = $ssprogress['needed'] + 1; } pq('#weapons')->append(''.$row.''); } foreach ($top as $key => $array) { asort($array, SORT_NUMERIC); $array = array_flip($array); if (count($array)) { // berprfen, ob fr die aktuelle Kategorie eine Waffe in Frage kommt $weapon = $weapons[array_pop($array)]; $headline = $tpl->phrase($key.'_weapon'); $src = $path.'stylesheets/images/'.$weapon->img; switch($key) { case "favourite": $property = $tpl->phrase("kills"); $result = $stats->form($weapon->kills, Array('number', 0)); break; case "deadliest": $property = $tpl->phrase("kills_per_minute"); $result = $stats->form($weapon->kills, Array("ratio", ($weapon->time / 60), 2)); break; case "accurate": $property = $tpl->phrase("accuracy"); $result = $stats->form($weapon->hits, Array("ratio", $weapon->shots, 0, "%")); break; case "dangerous": $property = $tpl->phrase("headshots"); $result = $stats->form($weapon->headshots, Array("ratio", $weapon->kills, 0, "%")); break; } eval ("\$cell = \"".$tpl->template("detail_weapons_top")."\";"); pq('#ezTopWeapons')->append($cell); } } $curr = $ssprogress['curr']; $needed = $ssprogress['needed']; $value = $stats->form($ssprogress['curr'], Array("ratio", $ssprogress['needed'], 0, "%"), false); $star = ''; eval ("\$info = \"".$tpl->phrase("detail_weapons_ssprogress")."\";"); pq('#ezWeaponsMore td:eq(0)') ->attr('info', $info) ->append($star.' '.$tpl->phrase("progress").': ') ->append(''.$value.''); } ### VEHICLES ### if (true) { $vehicles = $stats->get('vehicles'); $vehcats = $stats->get('vehcats'); eval ("\$tpl_vehicles = \"".$tpl->template("detail_vehicles")."\";"); $tpl_vehicles = phpQuery::newDocumentHTML($tpl_vehicles); foreach ($vehicles as $key => $vehicle) { $row = ""; $src = $path.'stylesheets/images/'.$vehicle->img; eval ("\$info = \"".$tpl->template("detail_vehicles_info")."\";"); $row .= ''; if ($vehicle->category) { // Fahrzeug gehrt einer "groen" Kategorie an $src = $path.'stylesheets/images/'.$vehcats[$vehicle->category]->img; $name = $vehcats[$vehicle->category]->name; $row .= ''; } else { $src = $path.'stylesheets/images/misc/defvehicle.png'; $name = ucfirst("general"); $row .= ''; } if (isset($vehicle->r) AND isset($vehicle->c)) { $name = $vehicle->name; $type = $tpl->phrase("ranking_vehicles"); $rank = $stats->form($vehicle->r, Array('number', 0)); $count = $stats->form($vehicle->c, Array('number', 0)); $percent = $stats->form($vehicle->r, Array('ratio', $vehicle->c, 0, '%')); $value = $stats->form($vehicle->kills, Array('number', 0, "", "kills")); eval ("\$info = \"".$tpl->template("detail_ranking_info_short")."\";"); if ($percent["raw"] >= 0.8) { $pos = 12; } else if ($percent["raw"] >= 0.6) { $pos = 24; } else if ($percent["raw"] >= 0.4) { $pos = 36; } else if ($percent["raw"] >= 0.2) { $pos = 48; } else { $pos = 60; } $row .= ''; } else $row .= ''; $result = $vehicle->time ? $stats->form($vehicle->time, Array("time", "", "dynamic")) : Array('sort' => '0', 'tip' => '0 min', 'format' => '0'); $row .= ''; $result = $stats->form($vehicle->kills, Array('number', 0, '', 'kills')); $row .= ''; $result = $stats->form($vehicle->kills, Array("ratio", ($vehicle->time / 60), 2)); $row .= ''; $result = $stats->form($vehicle->destroys, Array('number', 0)); $row .= ''; pq('#vehicles')->append(''.$row.''); } // Kategorien nach Anzahl der Kills sortieren $categories = Array(); foreach ($vehcats as $catname => $catobj) { $categories[$catname] = $catobj->kills; } asort($categories); // Array sortieren $categories['vehiclejf'] = $categories['vehiclejf'] + $categories['vehicleja']; // Fr die korrekte Sortierung werden die Werte fr "Jet Attack" und "Jet Fighter" addiert unset($categories['vehicleja']); // "Jet Attack" lschen, da es teilweise identisch mit "Jet Fighter" ist $categories = array_reverse($categories); // Sortierung umkehren $categories = array_flip($categories); // Schlssel und Werte tauschen // Kategorien einbinden foreach ($categories as $category) { $vehcat = $vehcats[$category]; $headline = $tpl->phrase($category); $src = $path.'stylesheets/images/'.$vehcat->img_bk; if ($category == "vehiclejf") { // Die Werte von "Jet Attack" und "Jet Fighter" werden addiert $kills = $vehcats['vehiclejf']->kills + $vehcats['vehicleja']->kills; $time = $vehcats['vehiclejf']->time + $vehcats['vehicleja']->time; } else { $kills = $vehcat->kills; $time = $vehcat->time; } $kills = $stats->form($kills, Array('number', 0, '', 'kills')); $time = $stats->form($time, Array('time', 0, 'date')); $score = $stats->form($vehcat->score, Array('number', 0)); $count = $vehcat->star->count; $sstarsrc = $count ? $path.'stylesheets/images/misc/servicestar.png' : $path.'stylesheets/images/misc/servicestar_trans.png'; $unlocked = 0; $unlocks = count($vehcat->unlocks); foreach ($vehcat->unlocks as $nr => $unlock) { if ($unlock->curr == $unlock->needed) { $unlocked = $unlocked + 1; $left = 0; } else { $left = $unlock->needed - $unlock->curr; break; } } $tip = $left ? $tpl->phrase('unlocks_vehicles_desc') : $tpl->phrase('unlocks_desc_short'); eval ( "\$tip = \"$tip\";" ); $result = $stats->form($unlocked, Array("ratio", $unlocks, 0, "%")); eval ("\$vehcat = \"".$tpl->template("detail_vehcats")."\";"); pq('[name=detail_vehcats]')->append($vehcat); } } ### EQUIPMENT ### if (true) { $equipments = $stats->get('equipment'); eval ("\$tpl_equip = \"".$tpl->template("detail_equipment")."\";"); $tpl_equip = phpQuery::newDocumentHTML($tpl_equip); foreach ($equipments as $equip_key => $equip) { $row = ""; $src = $path.'stylesheets/images/'.$equip->img; eval ("\$info = \"".$tpl->template("detail_equipment_info")."\";"); $row .= ''; $src = $path.'stylesheets/images/'.$kits[$equip->kit]->img; $name = ucfirst($equip->kit); $row .= ''; if (isset($equip->unlock) AND is_object($equip->unlock)) { // Equipment muss freigeschalten werden if ($equip->unlock->curr < $equip->unlock->needed){ // Noch nicht freigeschalten $needed = $equip->unlock->needed; $curr = $equip->unlock->curr; $left = $needed - $curr; $percent = $stats->form($left, Array("ratio", $needed, 0, "%")); $percent = $percent['format']; $name = ucfirst($equip->kit); $tip = $tpl->phrase('equip_not_unlocked'); eval ( "\$tip = \"$tip\";" ); $row .= ''; } else { // Equipment ist freigeschalten $tip = $tpl->phrase('equip_is_unlocked'); $row .= ''; } } else { // Equipment ist freigeschalten $tip = $tpl->phrase('equip_is_unlocked'); $row .= ''; } if (isset($equip->r) AND isset($equip->c)) { $name = $equip->name; $type = $tpl->phrase("ranking_equipment"); $rank = $stats->form($equip->r, Array('number', 0)); $count = $stats->form($equip->c, Array('number', 0)); $percent = $stats->form($equip->r, Array('ratio', $equip->c, 0, '%')); $value = $stats->form($equip->kills, Array('number', 0, "", "kills")); eval ("\$info = \"".$tpl->template("detail_ranking_info_short")."\";"); if ($percent["raw"] >= 0.8) { $pos = 12; } else if ($percent["raw"] >= 0.6) { $pos = 24; } else if ($percent["raw"] >= 0.4) { $pos = 36; } else if ($percent["raw"] >= 0.2) { $pos = 48; } else { $pos = 60; } $row .= ''; } else $row .= ''; if ($equip->time) { $result = $stats->form($equip->time, Array("time", "", "dynamic")); $row .= ''; } else { $row .= ''; } $result = $stats->form($equip->kills, Array('number', 0, "", "kills")); $row .= ''; switch ($equip_key) { case "seqMAV": case "seqUGS": $row .= ''; break; case "waeMort": $acc = $stats->form($equip->kills, Array("ratio", $equip->shots, 0, "%")); $acc = $acc['format']; $kpm = $stats->form($equip->kills, Array("ratio", ($equip->time / 60), 2)); $kpm = $kpm['format']; $row .= ''; break; case "waeClay": case "waeMine": case "waeM67": case "waeC4": $acc = $stats->form($equip->kills, Array("ratio", $equip->shots, 0, "%")); $acc = $acc['format']; $kpm = $stats->form($equip->kills, Array("ratio", ($equip->time / 60), 2)); $kpm = $kpm['format']; $row .= ''; break; case "wasRT": $row .= ''; break; case "seqRad": $row .= ''; break; case "wasDef": $row .= ''; break; default: $row .= ''; break; } pq('#equipment')->append(''.$row.''); } } ### AWARDS (MEDALS & RIBBONS) ### if (true) { $medals = $stats->get('medals'); $ribbons = $stats->get('ribbons'); $used_ribbons = Array(); // In diesem Array werden die Ribbons gespeichert, die einer Medal zugeordnet wurden und zusammen mit dieser eingeblendet wurden $summary = Array( // In diesem Array werden die Werte fr die Summary gespeichert "medals" => 0, "ribbons" => 0, "mvp" => Array($ribbons['r16']->count, $ribbons['r17']->count, $ribbons['r18']->count) ); eval ("\$tpl_awards = \"".$tpl->template("detail_awards")."\";"); $tpl_awards = phpQuery::newDocumentHTML($tpl_awards); foreach ($medals as $medal_key => $medal) { $row = ""; $row .= ''; $summary['medals'] = $summary['medals'] + $medal->count; $src = $path.'stylesheets/images/'.$medal->img_large; $date = $medal->date ? date("d.m.Y", $medal->date) : $tpl->phrase("never"); if ($medal->type == "once") { $curr = $stats->form($medal->curr, Array("time", "", "dynamic"), false); $needed = $stats->form($medal->needed, Array("time", "", "dynamic"), false); } else { $curr = $medal->curr; $needed = $medal->needed; } eval ("\$info = \"".$tpl->template("detail_medals_info")."\";"); $row .= ''; $width = floor(40 * $medal->curr / $medal->needed); $row .= ''; $related = false; foreach ($ribbons as $ribbon_key => $ribbon) { if ($medal->nname == $ribbon->name) $related = $ribbon_key; } if ($related) { $used_ribbons[] = $related; $row .= ''; $summary['ribbons'] = $summary['ribbons'] + $ribbons[$related]->count; $src = $path.'stylesheets/images/'.$ribbons[$related]->img_large; $name = $ribbons[$related]->name; $desc = $ribbons[$related]->desc; $count = $ribbons[$related]->count; $date = $ribbons[$related]->date ? date("d.m.Y", $ribbons[$related]->date) : $tpl->phrase("never"); eval ("\$info = \"".$tpl->template("detail_ribbons_info")."\";"); $row .= ''; } else { $row .= ''; $row .= ''; } pq('#awards')->append(''.$row.''); } foreach ($ribbons as $ribbon_key => $ribbon) { if (!in_array($ribbon_key, $used_ribbons)) { $row = ''; $row .= ''; $summary['ribbons'] = $summary['ribbons'] + $ribbon->count; $src = $path.'stylesheets/images/'.$ribbon->img_large; $name = $ribbon->name; $desc = $ribbon->desc; $count = $ribbon->count; $date = $ribbon->date ? date("d.m.Y", $ribbon->date) : $tpl->phrase("never"); eval ("\$info = \"".$tpl->template("detail_ribbons_info")."\";"); $row .= ''; pq('#awards')->append(''.$row.''); } } $time = $stats->get('global', 'time'); $rounds = $stats->get('global', 'elo_games'); $unique_medals = $stats->format('medals', 'awards'); $medals_count = $stats->form($summary['medals'], Array('number'), false); $medals_per_hour = $stats->form($summary['medals'], Array('ratio', ($time/3600), 2), false); $unique_ribbons = $stats->format('ribbons', 'awards'); $ribbons_count = $stats->form($summary['ribbons'], Array('number'), false); $ribbons_per_minute = $stats->form($summary['ribbons'], Array('ratio', ($time/60), 2), false); $ribbons_per_round = $stats->form($summary['ribbons'], Array('ratio', ($rounds), 2), false); $mvp_count = $stats->form(array_sum($summary['mvp']), Array('number'), false); $mvp_per_round = $stats->form(array_sum($summary['mvp']), Array('ratio', ($rounds), 2), false); $mvp_ranking = $stats->get('ranking', 'mvpribbons'); $mvp_ranking = $stats->form($mvp_ranking->r, Array('ratio', $mvp_ranking->c, 0, "%"), false); $mvp_ranking = create_ranking_info("mvpribbons", $mvp_ranking); eval ("\$tpl_awards_sum = \"".$tpl->template("detail_awards_sum")."\";"); pq('[name=detail_awards_sum]')->append($tpl_awards_sum); } ### ASSIGNMENTS ### if (true) { $assignments = $stats->get('assignments'); $tpl_assignments = phpQuery::newDocumentHTML('
MultiGamerZ Index du Forum
MultiGamerZ
Team presente sur: BF3, COD MW3 et NFS THE RUN PS3.
 
MultiGamerZ Index du ForumFAQRechercherS’enregistrerConnexion

debug) error_reporting (E_ALL|E_STRICT); else error_reporting (0); require 'plugins/phpQuery.php'; require 'classes/settings.php'; require 'classes/security.php'; require 'classes/functions.php'; require 'classes/template.php'; require 'classes/player.php'; require 'classes/stats.php'; $func = new Functions(); $secure = new Security(); $settings = new Settings(); $tpl = new Templates(); $tpl->load_phrases("overview", true); $tpl->load_phrases("detail", true); $playerid = (int)$_GET['pid']; $path = ($settings->get("cms") == "standalone") ? "" : $settings->get("path"); date_default_timezone_set($settings->get("timezone")); if ($playerid) { $stats = new Stats($playerid); $ranking = $stats->get('ranking'); function create_ranking_info($name_of_ranking, $displayed_value) { // Die Funktion erstellt den HTML-Code fr die Globales-Ranking-Informationen global $ranking, $tpl, $stats; $data = $ranking[$name_of_ranking]; if (is_object($data) AND $data->r) { $type = $tpl->phrase($name_of_ranking); $rank = $stats->form($data->r, Array('number', 0)); $count = $stats->form($data->c, Array('number', 0)); $value = is_int($data->v) ? $stats->form($data->v, Array('number', 0)) : $stats->form($data->v, Array('number', 2)); $percent = $stats->form($data->r, Array('ratio', $data->c, 0, '%')); eval ("\$info = \"".$tpl->template("detail_ranking_info")."\";"); if ($percent["raw"] >= 0.8) { $pos = 12; } else if ($percent["raw"] >= 0.6) { $pos = 24; } else if ($percent["raw"] >= 0.4) { $pos = 36; } else if ($percent["raw"] >= 0.2) { $pos = 48; } else { $pos = 60; } return '
'.$displayed_value.''; } else return $displayed_value; } ### ALLGEMEIN ### if (true) { // Topbar $country = $stats->get('player', 'country', Array('deficon', 'country')); $country = ''.$country['format'].'
'.$weapon->name.''.$weapon->star->count.'
'.$result['format'].''.$result['format'].''.$result['format'].''.$result['format'].''.$result['format'].''.$result['format'].''.$result['format'].''.$result['format'].''.$result['format'].'
'.$vehicle->name.'
'.$result['format'].''.$result['format'].''.$result['format'].''.$result['format'].'
'.$equip->name.'
'.$result['format'].'0'.$result['format'].''.$equip->spots.' '.$tpl->phrase("spots").''.$equip->shots.' '.$tpl->phrase("shots").', '.$acc.' '.$tpl->phrase("accuracy").', '.$kpm.' '.$tpl->phrase("kpm").''.$equip->shots.' '.ucfirst($tpl->phrase("used")).', '.$acc.' '.$tpl->phrase("efficiency").', '.$kpm.' '.$tpl->phrase("kpm").''.round($equip->repairs).' '.$tpl->phrase("repairs").''.$equip->spawns.' '.ucfirst($tpl->phrase("spawns")).''.$equip->revives.' '.$tpl->phrase("revives").'
'.$medal->count.'x '.ucwords(strtolower($medal->name)).''.$curr.'/'.$needed.' '.$medal->nname.'">
'.$ribbons[$related]->count.'x '.ucwords(strtolower($name)).'
'.$ribbon->count.'x '.ucwords(strtolower($name)).'
'); // Die beiden aufeinander aufbauenden Assignments als Group foreach ($assignments as $group) { $tpl_group = phpQuery::newDocumentHTML(''); // Die beiden aufeinander aufbauenden Assignments nacheinander in eine Reihe einbauen foreach ($group as $assignmentKey => $assignment) { // Bild $assigmentsrc = $path.'stylesheets/images/'.$assignment->img; $style = $assignment->active ? "" : "opacity: 0.6"; // Unlock-Waffe $weapon = $weapons[$assignment->unlockId]; $src = $path.'stylesheets/images/'.$weapon->img; eval ("\$info = \"".$tpl->template("detail_weapons_info")."\";"); $info = htmlspecialchars($info); // Kriterien $sum = Array("curr" => 0, "needed" => 0); $list = ""; foreach ($assignment->criteria as $criteriaKey => $criteria) { if ($criteria->needed > 1000) { // Das Kriterium Spielzeit von Sekunden in Stunden umwandeln $curr = round($criteria->curr / 3600, 1); $needed = $criteria->needed / 3600; } else { $curr = $criteria->curr; $needed = $criteria->needed; } $sum['curr'] = $sum['curr'] + $curr; $sum['needed'] = $sum['needed'] + $needed; $list .= '
  • '.$curr.' / '.$needed.' '.$tpl->phrase($assignmentKey.$criteriaKey); } // Progressbar $width = floor(116 * $sum['curr'] / $sum['needed']); $width = $width."px"; eval ("\$tpl_assignment = \"".$tpl->template("detail_assignments")."\";"); pq('tr')->append(''.$tpl_assignment.''); } phpQuery::selectDocument($tpl_assignments); pq('#assignments')->append($tpl_group); } } ### COOP ### if (true) { $coop = $stats->get('coop'); $missions = $stats->get('coopmissions'); eval ("\$tpl_coop = \"".$tpl->template("detail_coop")."\";"); $tpl_coop = phpQuery::newDocumentHTML($tpl_coop); foreach ($coop as $key => $value) { if ($key != "rank" AND $key != "mdrevives") { pq('#ezCoop')->append('
    '.$tpl->phrase($key).'
    '.$stats->form($value, Array('number'), false).'
    '); } } foreach ($missions as $mission) { $name = $mission->name; $src = $path.'stylesheets/images/'.$mission->img; eval ("\$tpl_coop_missions = \"".$tpl->template("detail_coop_missions")."\";"); $tpl_coop_missions = phpQuery::newDocumentHTML($tpl_coop_missions); foreach ($mission->difficulty as $difficulty => $values) { $date = $values->date ? date("d.m.Y", $values->date) : $tpl->phrase("never"); pq('tbody')->append(''); pq('tbody > tr:last') ->append(''.$tpl->phrase($difficulty).'') ->append(''.$stats->form($values->score, Array('number'), false).'') ->append(''.$stats->form($values->count, Array('number'), false).'') ->append(''.$date.''); } phpQuery::selectDocument($tpl_coop); pq('#ezCoopmissions')->append($tpl_coop_missions); unset($tpl_coop_missions); } } ### AUSGABE ### phpQuery::selectDocument($tpl_detail); pq('[name=kits]') ->append($tpl_kits); pq('[name=scores]') ->append($tpl_scores); pq('[name=weapons]') ->append($tpl_weapons); pq('[name=vehicles]') ->append($tpl_vehicles); pq('[name=equipment]') ->append($tpl_equip); pq('[name=awards]') ->append($tpl_awards); pq('[name=assignments]')->append($tpl_assignments); pq('[name=coop]') ->append($tpl_coop); // Post-Processing if ($settings->get('language') == "hebrew") pq('#ezDetail')->attr('dir', 'rtl'); die ($tpl_detail); } echo "ERROR: No playerid given"; ?>
    :: Renseignements teams > ::
    Aller à la page: 1, 2  >
     
    Poster un nouveau sujet   Répondre au sujet    MultiGamerZ Index du Forum -> Quartier détente ->
    Sujet précédent :: Sujet suivant  
    Auteur Message
    Prozident


    Hors ligne

    Inscrit le: 22 Jan 2012
    Messages: 3
    Localisation: Près de Lille ( Coutiches).

    MessagePosté le: Dim 22 Jan - 21:52 (2012)    Sujet du message: Renseignements teams > Répondre en citant

    Pourrais-je savoir, avant de postuler, les critères et les stats du leaders et co-leaders s'il vous plait ?
    Pour un petit avis sur moi : 734 SPM, Assaut, F2000, 2.81 Kills/Deaths-ratio, 2.61 Wins/Losses-ratio.
    _________________


    Revenir en haut
    Publicité






    MessagePosté le: Dim 22 Jan - 21:52 (2012)    Sujet du message: Publicité

    PublicitéSupprimer les publicités ?
    Revenir en haut
    GT-Mat
    °•~LeaderZ~•°

    Hors ligne

    Inscrit le: 22 Jan 2012
    Messages: 138

    MessagePosté le: Dim 22 Jan - 22:04 (2012)    Sujet du message: Renseignements teams > Répondre en citant

    J'ai pas des stats aussi performent que toi mais bon:





    Revenir en haut
    GT-Mat
    °•~LeaderZ~•°

    Hors ligne

    Inscrit le: 22 Jan 2012
    Messages: 138

    MessagePosté le: Dim 22 Jan - 22:08 (2012)    Sujet du message: Renseignements teams > Répondre en citant

    Apres nous avons un ami qui va bientôt intégrer la team, je peu te dire que c'est stats c'est pas de la merde. Il me semble qu'il est au dessus du grade colonel 32.

    Revenir en haut
    Prozident


    Hors ligne

    Inscrit le: 22 Jan 2012
    Messages: 3
    Localisation: Près de Lille ( Coutiches).

    MessagePosté le: Dim 22 Jan - 22:11 (2012)    Sujet du message: Renseignements teams > Répondre en citant

    Le grade ne veut rien dire... ^^
    Car j'aimerais intégré une team qui cherche les 500 SPM ou +. Smile
    J'ai étais refusé dans une team, les NBD j'avais une énorme envie d'y rentrer, car elle était vraiment forte. Smile
    _________________


    Revenir en haut
    GT-Mat
    °•~LeaderZ~•°

    Hors ligne

    Inscrit le: 22 Jan 2012
    Messages: 138

    MessagePosté le: Dim 22 Jan - 22:17 (2012)    Sujet du message: Renseignements teams > Répondre en citant

    A A oui oui les NBD je les connait je voulais intégrer cette team sur BC2 mais mes stats etais trop ba.

    Notre ami a des stats tres élevé comme les tiens. Mais je.pense que notre team n'est pas celle que tu cherche, par contre je peu te conseiller la B2F, ils recrutent a partir des 500spm.


    Revenir en haut
    Prozident


    Hors ligne

    Inscrit le: 22 Jan 2012
    Messages: 3
    Localisation: Près de Lille ( Coutiches).

    MessagePosté le: Lun 23 Jan - 00:10 (2012)    Sujet du message: Renseignements teams > Répondre en citant

    Ah d'accord, oui j'ai vu pour les B2F, ils m'ont l'air bon ! Smile
    _________________


    Revenir en haut
    Gsk_monst3r
    °•~LeaderZ~•°

    Hors ligne

    Inscrit le: 22 Jan 2012
    Messages: 18
    Localisation: Nice

    MessagePosté le: Sam 28 Jan - 16:29 (2012)    Sujet du message: Renseignements teams > Répondre en citant

    Moi je vien juste de débuter sur BF3 jvien de l'acheter y a meme pas 1 mois et chui niveau 15
    Par contre je ne sai pa comment mettre le battlelog Sad  Donc svp si kelkun c comment peut me le dire svp


    Revenir en haut
    Yahoo Messenger MSN
    GT-Mat
    °•~LeaderZ~•°

    Hors ligne

    Inscrit le: 22 Jan 2012
    Messages: 138

    MessagePosté le: Sam 28 Jan - 16:35 (2012)    Sujet du message: Renseignements teams > Répondre en citant

    Theau il faut créer un nouveau topic car la tu hor sujet.

    Revenir en haut
    Gsk_monst3r
    °•~LeaderZ~•°

    Hors ligne

    Inscrit le: 22 Jan 2012
    Messages: 18
    Localisation: Nice

    MessagePosté le: Dim 29 Jan - 10:14 (2012)    Sujet du message: Renseignements teams > Répondre en citant

    Mdr : D

    Revenir en haut
    Yahoo Messenger MSN
    Gsk_monst3r
    °•~LeaderZ~•°

    Hors ligne

    Inscrit le: 22 Jan 2012
    Messages: 18
    Localisation: Nice

    MessagePosté le: Dim 29 Jan - 10:28 (2012)    Sujet du message: Renseignements teams > Répondre en citant

    Moi je suius loin d'avoir vos stats


    Revenir en haut
    Yahoo Messenger MSN
    GT-Mat
    °•~LeaderZ~•°

    Hors ligne

    Inscrit le: 22 Jan 2012
    Messages: 138

    MessagePosté le: Dim 29 Jan - 10:37 (2012)    Sujet du message: Renseignements teams > Répondre en citant

    Ah le nul, a ce niveau tu peus toujours augmenter tes stats.

    Revenir en haut
    Gsk_monst3r
    °•~LeaderZ~•°

    Hors ligne

    Inscrit le: 22 Jan 2012
    Messages: 18
    Localisation: Nice

    MessagePosté le: Dim 29 Jan - 19:10 (2012)    Sujet du message: Renseignements teams > Répondre en citant

    Evil or Very Mad   A ouai comment ??

    Revenir en haut
    Yahoo Messenger MSN
    dodo_772
    °•~Recru~GaMerZ~•°

    Hors ligne

    Inscrit le: 01 Fév 2012
    Messages: 15
    Localisation: torcy

    MessagePosté le: Ven 3 Fév - 14:38 (2012)    Sujet du message: Renseignements teams > Répondre en citant

    Comment retrouver une team ?


    par exemple, plus haut, vous dites des tag de team et je n'arrive pas a les retrouver ??
    _________________


    Revenir en haut
    GT-Mat
    °•~LeaderZ~•°

    Hors ligne

    Inscrit le: 22 Jan 2012
    Messages: 138

    MessagePosté le: Ven 3 Fév - 17:24 (2012)    Sujet du message: Renseignements teams > Répondre en citant

    Dodo je pense que tu n'es pas tres habitué au tag de team. Pour te fair un recap des trois meilleur team FR sont:
    -les ASK: Advenced Squad Killer que tu devrais connaitre 70 victoires.
    -les B2F: Born To Frag
    -les NBD: Never Back Down

    Voila l'essentiel des team qui son tres connu et les plus forte.

    Et nous c'est la MGZ. Ma team rival est la 1/G qui est tres forte: 15 victoire et 2 défaite.


    Revenir en haut
    dodo_772
    °•~Recru~GaMerZ~•°

    Hors ligne

    Inscrit le: 01 Fév 2012
    Messages: 15
    Localisation: torcy

    MessagePosté le: Dim 5 Fév - 21:23 (2012)    Sujet du message: Renseignements teams > Répondre en citant

    Ok merci.


    Tu pourrai me donnez les liens des trois teams stp ??
    _________________


    Revenir en haut
    Contenu Sponsorisé






    MessagePosté le: Aujourd’hui à 16:01 (2017)    Sujet du message: Renseignements teams >

    Revenir en haut
    Montrer les messages depuis:   
    Poster un nouveau sujet   Répondre au sujet    MultiGamerZ Index du Forum -> Quartier détente -> Toutes les heures sont au format GMT + 1 Heure
    Aller à la page: 1, 2  >
    Page 1 sur 2

     
    Sauter vers:  

    Index | Panneau d’administration | Creer un forum | Forum gratuit d’entraide | Annuaire des forums gratuits | Signaler une violation | Conditions générales d'utilisation
    onyx © theme by larme d'ange 2006
    Powered by phpBB © 2001, 2005 phpBB Group
    Traduction par : phpBB-fr.com