Skip to content

Commit

Permalink
🐞 fix: Start formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
DNA-styx committed Nov 20, 2024
1 parent fd70231 commit a62d427
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 24 deletions.
10 changes: 10 additions & 0 deletions web/pages/ingame/footer.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,16 @@
die('Do not access this file directly.');
}


if (!isset($_GET['hide'])) {

if (isset($_GET['game'])){
echo "<a href=\"ingame.php?game=" . $_GET['game'] . "&mode=bans\">Bans</a>";
echo "&nbsp;";
}

echo "<a href=\"ingame.php?mode=help\">Help</a>";
}
?>
</body>
</html>
36 changes: 17 additions & 19 deletions web/pages/ingame/header.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,29 +49,33 @@
Header ('Cache-Control: no-cache');
$lastpage = isset($_SERVER['HTTP_REFERER'])?$_SERVER['HTTP_REFERER']:"";

// Only allow windmill css files to be applied
if (substr($g_options['style'], 0, 8) == 'windmill') {
$windmill_style = $g_options['style'];
}
else {
$windmill_style = 'windmill-purple.css';
}

// include custom windmill functions
include 'includes/inc_windmill_functions.php';

?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<html>
<!-- start ingame/header.php -->
<!DOCTYPE html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<!--
<link rel="stylesheet" type="text/css" href="hlstats.css">
<link rel="stylesheet" type="text/css" href="styles/<?php echo $g_options['style']; ?>">
-->
<link
href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap"
rel="stylesheet">
<link rel="stylesheet" href="./assets/css/tailwind.output.css">
<title>HLstatsX</title>
</head>
<link rel="stylesheet" href="./assets/css/tailwind.output.css">
<link rel="stylesheet" type="text/css" href="./assets/css/windmill.css">
<link rel="stylesheet" type="text/css" href="./styles/<?php echo $windmill_style; ?>">
<title>HLstatsX</title>
</head>
<body>

<div>

<?php
global $mode;
if ($g_options['bannerdisplay'] != 0 && ($mode == 'contents' || $g_options['bannerdisplay']==1)) {
Expand All @@ -82,18 +86,12 @@
<?php
}

?>

<?php
if ($lastpage) {
if ($lastpage && !isset($_GET['hide'])) {
?>
<div style="position: absolute; bottom:45%; right:0; color #FFFFFF;">
<a href="<?php echo $lastpage; ?>">&laquo;&nbsp;&nbsp;Go Back</a>
</div>
<?php
} ?>
</div>




<!-- end ingame/header.php -->
12 changes: 7 additions & 5 deletions web/pages/ingame/status.php
Original file line number Diff line number Diff line change
Expand Up @@ -119,8 +119,8 @@
?>

<table class="data-table">
<tr class="data-table-head">
<td style="width:37%;" class="fSmall">&nbsp;Server</td>
<tr class="text-xs font-semibold tracking-wide text-left text-gray-500 uppercase border-b dark:border-gray-700 bg-gray-50 dark:text-gray-400 dark:bg-gray-800">
<td colspan="4" style="width:37%;" class="fSmall">&nbsp;Server</td>
<td style="width:23%;" class="fSmall">&nbsp;Address</td>
<td style="width:6%;text-align:center;" class="fSmall">&nbsp;Map</td>
<td style="width:6%;text-align:center;" class="fSmall">&nbsp;Played</td>
Expand All @@ -129,8 +129,8 @@
<td style="width:6%;text-align:center;" class="fSmall">&nbsp;Headshots</td>
<td style="width:6%;text-align:center;" class="fSmall">&nbsp;Hpk</td>
</tr>
<tr class="bg1" valign="middle">
<td class="fSmall"><?php
<tr class="text-xs font-semibold tracking-wide text-left text-gray-500 uppercase border-b dark:border-gray-700 bg-gray-50 dark:text-gray-400 dark:bg-gray-800" valign="middle">
<td colspan="4" class="fSmall"><?php
echo '<strong>'.$rowdata['name'].'</strong>';
?></td>
<td class="fSmall"><?php
Expand Down Expand Up @@ -162,10 +162,12 @@
echo sprintf('%.4f', 0);
?></td>
</tr>
</table>


<?php

printserverstats($server_id);
echo "</table>";

} // for servers
?>

0 comments on commit a62d427

Please sign in to comment.