commit
08efed1b91
3 changed files with 16 additions and 2 deletions
|
|
@ -6,3 +6,9 @@ RewriteCond %{REQUEST_FILENAME} !-d
|
|||
RewriteCond %{REQUEST_FILENAME}\.php -f
|
||||
# Rewrite the neat URL to its .php counterpart
|
||||
RewriteRule ^(.*)$ $1.php [L]
|
||||
|
||||
<IfModule mod_headers.c>
|
||||
Header set Cache-Control "no-cache, no-store, must-revalidate"
|
||||
Header set Pragma "no-cache"
|
||||
Header set Expires "0"
|
||||
</IfModule>
|
||||
|
|
|
|||
|
|
@ -43,6 +43,8 @@ error_reporting(E_ALL);
|
|||
<th>Matches</th>
|
||||
<th>K/D (Human)</th>
|
||||
<th>K/D (All)</th>
|
||||
<th>Wins</th>
|
||||
<th>Win Ratio</th>
|
||||
</tr>";
|
||||
foreach ($player_datas as $player_data) {
|
||||
if (!isset($player_data['playername']) || is_null($player_data['playername'])) {
|
||||
|
|
@ -72,7 +74,8 @@ error_reporting(E_ALL);
|
|||
: (is_numeric($player_data['KD_ALL'])
|
||||
? number_format((float) $player_data['KD_ALL'], 2, ',', '')
|
||||
: "0")); // or any other default string for non-numerical values
|
||||
|
||||
$wins = number_format($player_data['wins'], 2, ',', '');
|
||||
$winratio = number_format($player_data['winratio'], 2, ',', '');
|
||||
|
||||
|
||||
echo "<tr>
|
||||
|
|
@ -83,6 +86,8 @@ error_reporting(E_ALL);
|
|||
<td>$matches</td>
|
||||
<td>$KD_H</td>
|
||||
<td>$KD_ALL</td>
|
||||
<td>$wins</td>
|
||||
<td>$winratio</td>
|
||||
</tr>";
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -40,6 +40,9 @@ $killstats = @()
|
|||
$i = 0
|
||||
|
||||
foreach ($player in $all_player_matches) {
|
||||
if($player.psobject.properties.name -eq 'new_win_matches'){
|
||||
continue
|
||||
}
|
||||
$player_name = $player.playername
|
||||
$i++
|
||||
$j = 0
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue