CHANGES
This commit is contained in:
parent
5e2ce13f1b
commit
0f99d1796d
1 changed files with 30 additions and 9 deletions
|
|
@ -11,10 +11,10 @@ error_reporting(E_ALL);
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
include './includes/navigation.php';
|
include './includes/navigation.php';
|
||||||
include './includes/header.php';
|
include './includes/header.php';
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<main>
|
<main>
|
||||||
<section>
|
<section>
|
||||||
|
|
@ -30,11 +30,22 @@ error_reporting(E_ALL);
|
||||||
}
|
}
|
||||||
|
|
||||||
echo "<br>";
|
echo "<br>";
|
||||||
if($key == 'all'){
|
if ($key == 'all') {
|
||||||
echo "Stats for $key (minimal 20 matches)";
|
echo "Stats for $key (minimal 20 matches)";
|
||||||
}else{
|
}
|
||||||
|
if ($key == 'Intense') {
|
||||||
echo "Stats for $key (minimal 8 matches)";
|
echo "Stats for $key (minimal 8 matches)";
|
||||||
}
|
}
|
||||||
|
if ($key == 'Casual') {
|
||||||
|
echo "Stats for $key (minimal 8 matches)";
|
||||||
|
}
|
||||||
|
if ($key == 'official') {
|
||||||
|
echo "Stats for $key (minimal 8 matches)";
|
||||||
|
}
|
||||||
|
if ($key == 'ranked') {
|
||||||
|
echo "Stats for $key (minimal 5 matches)";
|
||||||
|
}
|
||||||
|
|
||||||
echo "<table border='1' class='sortable'>";
|
echo "<table border='1' class='sortable'>";
|
||||||
echo "<tr>
|
echo "<tr>
|
||||||
<th>Player</th>
|
<th>Player</th>
|
||||||
|
|
@ -54,13 +65,23 @@ error_reporting(E_ALL);
|
||||||
if (!isset($player_data['playername']) || is_null($player_data['playername'])) {
|
if (!isset($player_data['playername']) || is_null($player_data['playername'])) {
|
||||||
continue; // Skip this iteration and move to the next
|
continue; // Skip this iteration and move to the next
|
||||||
}
|
}
|
||||||
if ($player_data['matches'] < 8){
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
if ($key == 'all' && $player_data['matches'] < 20) {
|
if ($key == 'all' && $player_data['matches'] < 20) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
if ($key == 'Intense' && $player_data['matches'] < 8) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
if ($key == 'Casual' && $player_data['matches'] < 8) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
if ($key == 'official' && $player_data['matches'] < 8) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
if ($key == 'ranked' && $player_data['matches'] < 5) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
$player_name = $player_data['playername'];
|
$player_name = $player_data['playername'];
|
||||||
$deaths = number_format($player_data['deaths'], 0, ',', '');
|
$deaths = number_format($player_data['deaths'], 0, ',', '');
|
||||||
$kills = number_format($player_data['kills'], 0, ',', '');
|
$kills = number_format($player_data['kills'], 0, ',', '');
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue