Beispiel #1
0
            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"]);
    }
    if (!isset($playerid2)) {
        die($text["whoareyou"]);
    }
    player_compare($playerid2, $playerid);