From 045d38061758f1b325983ac6fc95420aae6d5f89 Mon Sep 17 00:00:00 2001
From: DNA-styx <154759339+DNA-styx@users.noreply.github.com>
Date: Sat, 7 Dec 2024 01:23:35 +0000
Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9E=20fix:=20Start=20theming=20#22?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
web/pages/ingame/accuracy.php | 1 +
web/pages/ingame/actioninfo.php | 11 +++--
web/pages/ingame/actions.php | 8 ++--
web/pages/ingame/bans.php | 2 +
web/pages/ingame/clans.php | 2 +
web/pages/ingame/footer.php | 82 +++++++++++++++++++++++++++++----
web/pages/ingame/help.php | 7 ++-
web/pages/ingame/kills.php | 5 +-
web/pages/ingame/mapinfo.php | 9 ++--
web/pages/ingame/maps.php | 4 +-
web/pages/ingame/motd.php | 8 +++-
web/pages/ingame/players.php | 4 +-
web/pages/ingame/servers.php | 5 +-
web/pages/ingame/statsme.php | 10 ++--
web/pages/ingame/targets.php | 3 +-
web/pages/ingame/weapons.php | 6 ++-
16 files changed, 130 insertions(+), 37 deletions(-)
diff --git a/web/pages/ingame/accuracy.php b/web/pages/ingame/accuracy.php
index 33b1118..f3f3ba6 100644
--- a/web/pages/ingame/accuracy.php
+++ b/web/pages/ingame/accuracy.php
@@ -200,6 +200,7 @@
if ($db->num_rows($result) != 0)
{
+ display_page_title('Your Weapon Accuracy');
$tblWeaponstats->draw($result, $db->num_rows($result), 100);
}
diff --git a/web/pages/ingame/actioninfo.php b/web/pages/ingame/actioninfo.php
index 4fd4523..3683009 100644
--- a/web/pages/ingame/actioninfo.php
+++ b/web/pages/ingame/actioninfo.php
@@ -112,7 +112,8 @@
hlstats_Events_PlayerActions.actionId = hlstats_Actions.id AND
hlstats_Players.hideranking<>'1'
GROUP BY
- hlstats_Events_PlayerActions.playerId
+ hlstats_Events_PlayerActions.playerId,
+ hlstats_Actions.reward_player
ORDER BY
$table->sort $table->sortorder,
$table->sort2 $table->sortorder
@@ -151,7 +152,8 @@
hlstats_Events_TeamBonuses.actionId = hlstats_Actions.id AND
hlstats_Players.hideranking<>'1'
GROUP BY
- hlstats_Events_TeamBonuses.playerId
+ hlstats_Events_TeamBonuses.playerId,
+ hlstats_Actions.reward_player
ORDER BY
$table->sort $table->sortorder,
$table->sort2 $table->sortorder
@@ -173,8 +175,7 @@
list($numitems, $totalact) = $db->fetch_row($resultCount);
}
-
-?>
-draw($result, $numitems, 100, 'center');
?>
diff --git a/web/pages/ingame/actions.php b/web/pages/ingame/actions.php
index aad552c..e110365 100644
--- a/web/pages/ingame/actions.php
+++ b/web/pages/ingame/actions.php
@@ -43,7 +43,7 @@
// Action Statistics
$player = valid_request(intval($_GET['player']), true);
- $uniqueid = valid_request(strval($_GET['uniqueid']), false);
+ // $uniqueid = valid_request(strval($_GET['uniqueid']), false);
$db->query("SELECT name FROM hlstats_Games WHERE code='$game'");
if ($db->num_rows() < 1) error("No such game '$game'.");
@@ -56,7 +56,7 @@
new TableColumn(
'description',
'Action',
- 'width=45&link=' . urlencode("mode=actioninfo&action=%k&game=$game")
+ 'width=45&link=' . urlencode("mode=actioninfo&action=%k&game=$game&player=$player")
),
new TableColumn(
'obj_count',
@@ -107,8 +107,8 @@
$tblPlayerActions->sort $tblPlayerActions->sortorder,
$tblPlayerActions->sort2 $tblPlayerActions->sortorder
");
-?>
-draw($result, $db->num_rows($result), 100);
?>
diff --git a/web/pages/ingame/bans.php b/web/pages/ingame/bans.php
index c275cb7..f56ca37 100644
--- a/web/pages/ingame/bans.php
+++ b/web/pages/ingame/bans.php
@@ -138,5 +138,7 @@
list($numitems) = $db->fetch_row($resultCount);
+ display_page_title('Server bans');
+
$table->draw($result, 25, 100);
?>
diff --git a/web/pages/ingame/clans.php b/web/pages/ingame/clans.php
index 7c81fc9..57ab79e 100644
--- a/web/pages/ingame/clans.php
+++ b/web/pages/ingame/clans.php
@@ -174,5 +174,7 @@
COUNT(hlstats_Players.playerId) >= $minmembers
");
+ display_page_title('Clan Statistics');
+
$table->draw($result, $db->num_rows($resultCount), 100);
?>
diff --git a/web/pages/ingame/footer.php b/web/pages/ingame/footer.php
index a096c51..b9559b2 100644
--- a/web/pages/ingame/footer.php
+++ b/web/pages/ingame/footer.php
@@ -40,16 +40,82 @@
die('Do not access this file directly.');
}
+ if (!isset($_GET['hide'])) {
- if (!isset($_GET['hide'])) {
+ if (isset($_GET['player'])){
+ $player = valid_request(intval($_GET['player']), true);
+ }
- if (isset($_GET['game'])){
- echo "Bans";
- echo " ";
- }
-
- echo "Help";
+ if (isset($_GET['game']) && isset($_GET['player'])){
+ echo "Your Stats: ";
+ echo "StatsMe";
+ echo " ";
+ echo "Maps";
+ echo " ";
+ echo "Kills";
+ echo " ";
+ echo "Accuracy";
+ echo " ";
+ echo "Weapons";
+ echo " ";
+ echo "Targets";
+ echo " ";
+ echo "Actions";
+ echo " ";
+
+ }
+
+ echo "
";
+
+
+
+ if (isset($_GET['game'])){
+ echo "Server Stats: ";
+ echo "MOTD";
+ echo " ";
+ echo "Servers";
+ echo " ";
+ echo "Players";
+ echo " ";
+ echo "Clans";
+ echo " ";
+ echo "Actions";
+ echo " ";
+ echo "Bans";
+ echo " ";
+ echo "Help";
+ }
+
+
+?>
+
+
+