Skip to content

Commit dd9cc14

Browse files
committed
Display players/rules count for easier debugging
1 parent 3e572da commit dd9cc14

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Examples/View.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
use xPaw\SourceQuery\SourceQuery;
55

66
// Edit this ->
7-
define( 'SQ_SERVER_ADDR', 'localhost' );
7+
define( 'SQ_SERVER_ADDR', 'localhost );
88
define( 'SQ_SERVER_PORT', 27015 );
99
define( 'SQ_TIMEOUT', 3 );
1010
define( 'SQ_ENGINE', SourceQuery::SOURCE );
@@ -145,7 +145,7 @@
145145
<table class="table table-bordered table-striped">
146146
<thead>
147147
<tr>
148-
<th>Player</th>
148+
<th>Player <span class="label label-info"><?php echo count( $Players ); ?></span></th>
149149
<th class="frags-column">Frags</th>
150150
<th class="frags-column">Time</th>
151151
</tr>
@@ -173,7 +173,7 @@
173173
<table class="table table-bordered table-striped">
174174
<thead>
175175
<tr>
176-
<th colspan="2">Rules</th>
176+
<th colspan="2">Rules <span class="label label-info"><?php echo count( $Rules ); ?></span></th>
177177
</tr>
178178
</thead>
179179
<tbody>

0 commit comments

Comments
 (0)