Merge pull request #58 from OpzekerIT/dev

Dev
This commit is contained in:
Lanta 2023-10-02 12:30:57 +02:00 committed by GitHub
commit 08efed1b91
3 changed files with 16 additions and 2 deletions

View file

@ -5,4 +5,10 @@ RewriteCond %{REQUEST_FILENAME} !-d
# Check if appending .php points to an existing file # Check if appending .php points to an existing file
RewriteCond %{REQUEST_FILENAME}\.php -f RewriteCond %{REQUEST_FILENAME}\.php -f
# Rewrite the neat URL to its .php counterpart # Rewrite the neat URL to its .php counterpart
RewriteRule ^(.*)$ $1.php [L] 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>

View file

@ -43,6 +43,8 @@ error_reporting(E_ALL);
<th>Matches</th> <th>Matches</th>
<th>K/D (Human)</th> <th>K/D (Human)</th>
<th>K/D (All)</th> <th>K/D (All)</th>
<th>Wins</th>
<th>Win Ratio</th>
</tr>"; </tr>";
foreach ($player_datas as $player_data) { foreach ($player_datas as $player_data) {
if (!isset($player_data['playername']) || is_null($player_data['playername'])) { if (!isset($player_data['playername']) || is_null($player_data['playername'])) {
@ -72,7 +74,8 @@ error_reporting(E_ALL);
: (is_numeric($player_data['KD_ALL']) : (is_numeric($player_data['KD_ALL'])
? number_format((float) $player_data['KD_ALL'], 2, ',', '') ? number_format((float) $player_data['KD_ALL'], 2, ',', '')
: "0")); // or any other default string for non-numerical values : "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> echo "<tr>
@ -83,6 +86,8 @@ error_reporting(E_ALL);
<td>$matches</td> <td>$matches</td>
<td>$KD_H</td> <td>$KD_H</td>
<td>$KD_ALL</td> <td>$KD_ALL</td>
<td>$wins</td>
<td>$winratio</td>
</tr>"; </tr>";
} }

View file

@ -40,6 +40,9 @@ $killstats = @()
$i = 0 $i = 0
foreach ($player in $all_player_matches) { foreach ($player in $all_player_matches) {
if($player.psobject.properties.name -eq 'new_win_matches'){
continue
}
$player_name = $player.playername $player_name = $player.playername
$i++ $i++
$j = 0 $j = 0