Beispiel #1
0
        player_short($playerdbid, true);
        echo "<br/>";
        if ($groupbits > 0 || $limitplayerstats == 0) {
            player_badges($playerdbid, true);
            echo "<br/>";
        }
        // ------------------------------------------------------------------------------
        //player_weapons_s($playerid);
        $tabControl = new TabControl();
        $content1 = player_weapons_s($playerdbid, true);
        $content2 = player_bodyparts_s($playerdbid, true);
        $content3 = player_maps_s($playerdbid, true);
        $content4 = player_opponents_s($playerdbid, true);
        $content5 = player_activity_s($playerdbid, true);
        if ($groupbits > 0 || $limitplayerstats == 0) {
            $tabControl->defineSettings(1, $main_width, 100, 5, 2, "center", "middle", array($text["activity"], $text["actweapons"], $text["hitzones"], $text["mapachieve"], $text["worstenemies"]), array($content5, $content1, $content2, $content3, $content4), array($text["last31days"], $text["favweapused"], $text["favhitzones"], $text["yourmapachiev"], $text["worstenemies"]));
        } else {
            $tabControl->defineSettings(1, $main_width, 100, 2, 2, "center", "middle", array($text["activity"], $text["hitzones"]), array($content5, $content2), array($text["last31days"], $text["favhitzones"]));
        }
        $tabControl->defineStyle($ptab_backgroundColor, $ptab_selectedBgColor, $ptab_mouseOverColor, $ptab_borderColor, $ptab_borderSize, $ptab_borderStyle, $ptab_font, $ptab_textAlign, $ptab_fontSize, $ptab_fontWeight, $ptab_Color);
        //generate control
        $tabControl->writeControl();
    }
}
//
if ($func == "comp") {
    $playerid = escape_string($_GET['playerid']);
    $playerid2 = escape_string($_GET['playerid2']);
    if (!isset($_GET['playerid'])) {
        die($text["noplayedid"]);
    }
Beispiel #2
0
 //player_weapons_s($playerid);
 $tabControl = new TabControl();
 $content1 = player_weapons_s($playerdbid, true);
 $content2 = player_bodyparts_s($playerdbid, true);
 $content3 = player_maps_s($playerdbid, true);
 $content4 = player_opponents_s($playerdbid, true);
 $content5 = player_activity_s($playerdbid, true);
 $content6 = player_actions_s($playerdbid, true);
 $content7 = player_history_weekly_s($playerdbid, true);
 if ($game == "bfbc2") {
     $content8 = player_bfbc2_globalstats($playerdbid, true);
 }
 if ($groupbits > 0 || $limitplayerstats == 0) {
     if ($actionbased == 0) {
         if ($game == "bfbc2") {
             $tabControl->defineSettings(1, $main_width, 100, 7, 2, "center", "middle", array($text["activity"], $text["weeklyhistory"], $text["actweapons"], $text["hitzones"], $text["mapachieve"], $text["worstenemies"], $text["globalstats"]), array($content5, $content7, $content1, $content2, $content3, $content4, $content8), array($text["last31days"], $text["weeklyhistoryexpl"], $text["favweapused"], $text["favhitzones"], $text["yourmapachiev"], $text["worstenemies"], $text["yourglobalstats"]));
         } else {
             $tabControl->defineSettings(1, $main_width, 100, 6, 2, "center", "middle", array($text["activity"], $text["weeklyhistory"], $text["actweapons"], $text["hitzones"], $text["mapachieve"], $text["worstenemies"]), array($content5, $content7, $content1, $content2, $content3, $content4), array($text["last31days"], $text["weeklyhistoryexpl"], $text["favweapused"], $text["favhitzones"], $text["yourmapachiev"], $text["worstenemies"]));
         }
     } else {
         if ($game == "bfbc2") {
             $tabControl->defineSettings(1, $main_width, 100, 8, 2, "center", "middle", array($text["activity"], $text["weeklyhistory"], $text["actweapons"], $text["hitzones"], $text["mapachieve"], $text["actions"], $text["worstenemies"], $text["globalstats"]), array($content5, $content7, $content1, $content2, $content3, $content6, $content4, $content8), array($text["last31days"], $text["weeklyhistoryexpl"], $text["favweapused"], $text["favhitzones"], $text["yourmapachiev"], $text["actionbased"], $text["worstenemies"], $text["yourglobalstats"]));
         } else {
             $tabControl->defineSettings(1, $main_width, 100, 7, 2, "center", "middle", array($text["activity"], $text["weeklyhistory"], $text["actweapons"], $text["hitzones"], $text["mapachieve"], $text["actions"], $text["worstenemies"]), array($content5, $content7, $content1, $content2, $content3, $content6, $content4), array($text["last31days"], $text["weeklyhistoryexpl"], $text["favweapused"], $text["favhitzones"], $text["yourmapachiev"], $text["actionbased"], $text["worstenemies"]));
         }
     }
 } else {
     $tabControl->defineSettings(1, $main_width, 100, 1, 2, "center", "middle", array($text["activity"]), array($content5), array($text["last31days"]));
 }
 $tabControl->defineStyle($ptab_backgroundColor, $ptab_selectedBgColor, $ptab_mouseOverColor, $ptab_borderColor, $ptab_borderSize, $ptab_borderStyle, $ptab_font, $ptab_textAlign, $ptab_fontSize, $ptab_fontWeight, $ptab_Color);
 //generate control