Exemplo n.º 1
0
require_once '../functions.php';
require_once '../constants.php';
require_once '../case.php';
// default variable to null
$ServerID = null;
$Code = null;
// get values
if (!empty($sid)) {
    $ServerID = $sid;
}
if (!empty($pid)) {
    $PlayerID = $pid;
}
// get query search string
if (!empty($_GET['c'])) {
    $Code = mysqli_real_escape_string($BF4stats, $_GET['c']);
}
echo '
<script type="text/javascript">
$(document).ready(function()
{
	$(".expanded4").hide();
	$(".collapsed4, .expanded4").click(function()
	{
		$(this).parent().children(".expanded4, .collapsed4").toggle();
	});
});
</script>
';
Statsout($Code, $weapon_array, $PlayerID, $ServerID, $valid_ids, $GameID, $BF4stats, '4');
Exemplo n.º 2
0
                    // find clean name in array
                    if (in_array($this_WeaponCode, $cat_array)) {
                        $tab_code_Displayed = array_search($this_WeaponCode, $cat_array);
                    } else {
                        $tab_code_Displayed = $this_WeaponCode;
                    }
                    $count_tracker++;
                    echo '<li><div class="subscript">' . $count_tracker . '</div><a href="./common/player/weapon-tab.php?sid=' . $ServerID . '&amp;gid=' . $GameID . '&amp;pid=' . $PlayerID . '&amp;c=' . $this_WeaponCode . '">' . $tab_code_Displayed . '</a></li>';
                }
            }
            echo '
			</ul>
			<div id="tabs-1">
			';
            // get weapon stats for weapon stats list
            Statsout($WeaponCodes['0'], $weapon_array, $PlayerID, $ServerID, $valid_ids, $GameID, $BF4stats, '3');
            echo '</div>
			</div>
			<br/>
			';
        }
        // begin dog tag stats
        // check to see if the player has gotten anyone's tags
        // query for dog tags this user has collected
        // if there is a ServerID, this is a server stats page
        if (!empty($ServerID)) {
            $DogTag_q1 = @mysqli_query($BF4stats, "\n\t\t\t\tSELECT tpd.`PlayerID`\n\t\t\t\tFROM `tbl_dogtags` dt\n\t\t\t\tINNER JOIN `tbl_server_player` tsp ON tsp.`StatsID` = dt.`KillerID`\n\t\t\t\tINNER JOIN `tbl_playerdata` tpd ON tsp.`PlayerID` = tpd.`PlayerID`\n\t\t\t\tWHERE tpd.`PlayerID` = {$PlayerID}\n\t\t\t\tAND tpd.`GameID` = {$GameID}\n\t\t\t\tAND tsp.`ServerID` = {$ServerID}\n\t\t\t\tLIMIT 1\n\t\t\t");
        } else {
            $DogTag_q1 = @mysqli_query($BF4stats, "\n\t\t\t\tSELECT tpd.`PlayerID`\n\t\t\t\tFROM `tbl_dogtags` dt\n\t\t\t\tINNER JOIN `tbl_server_player` tsp ON tsp.`StatsID` = dt.`KillerID`\n\t\t\t\tINNER JOIN `tbl_playerdata` tpd ON tsp.`PlayerID` = tpd.`PlayerID`\n\t\t\t\tWHERE tpd.`PlayerID` = {$PlayerID}\n\t\t\t\tAND tpd.`GameID` = {$GameID}\n\t\t\t\tAND tsp.`ServerID` IN ({$valid_ids})\n\t\t\t\tLIMIT 1\n\t\t\t");
        }
        // or if anyone has gotten his