Script properly updates play date, not build date

Also fixed comments referring to build date.
This commit is contained in:
Mike 2014-01-16 15:30:33 -06:00
parent a90ded6a00
commit 5c484ff9d6
2 changed files with 4 additions and 4 deletions

View File

@ -111,7 +111,7 @@ function timedRequest()
" <th title=\"ip\">IPv4 address</th>\n" +
" <th title=\"externalServerPort\">Game protocol port</th>\n" +
" <th title=\"platform\">Platform</th>\n" +
" <th title=\"binaryCompileDate\">Build date</th>\n" +
" <th title=\"lasttime\">Play date</th>\n" +
"</tr>\n";
// Loop through all json objects
@ -215,8 +215,8 @@ function timedRequest()
/// Platform
table += "<td>" + escapeHtml(jsonText[i].platform) + "</td>";
/// Binary compilation date
table += "<td>" + escapeHtml(jsonText[i].binaryCompileDate) + "</td>";
/// Play date
table += "<td>" + escapeHtml(jsonText[i].lasttime) + "</td>";
table += "</tr>";

View File

@ -184,7 +184,7 @@
// platform
printf( "\t\t\t\t<td>%s</td>%s", htmlspecialchars( $server['platform'], ENT_QUOTES ), PHP_EOL );
// binaryCompileDate
// game play time
printf( "\t\t\t\t<td>%s</td>%s", htmlspecialchars( $server['lasttime'], ENT_QUOTES ), PHP_EOL );
echo "\t\t\t" . '</tr>' . PHP_EOL;