mirror of
https://github.com/YGGverse/HLState.git
synced 2026-03-31 17:15:39 +00:00
init default info members
This commit is contained in:
parent
a5267b2e96
commit
3192aab93d
3 changed files with 22 additions and 3 deletions
|
|
@ -57,7 +57,26 @@ class ServerController extends AbstractController
|
||||||
}
|
}
|
||||||
|
|
||||||
// Init defaults
|
// Init defaults
|
||||||
$info = [];
|
$status = false;
|
||||||
|
|
||||||
|
$info =
|
||||||
|
[
|
||||||
|
'Protocol' => null,
|
||||||
|
'HostName' => null,
|
||||||
|
'Map' => null,
|
||||||
|
'ModDir' => null,
|
||||||
|
'ModDesc' => null,
|
||||||
|
'AppID' => null,
|
||||||
|
'Players' => null,
|
||||||
|
'MaxPlayers' => null,
|
||||||
|
'Bots' => null,
|
||||||
|
'Dedicated' => null,
|
||||||
|
'Os' => null,
|
||||||
|
'Password' => null,
|
||||||
|
'Secure' => null,
|
||||||
|
'Version' => null
|
||||||
|
];
|
||||||
|
|
||||||
$session = [];
|
$session = [];
|
||||||
|
|
||||||
// Get online
|
// Get online
|
||||||
|
|
|
||||||
|
|
@ -34,7 +34,7 @@
|
||||||
<td class="text-align-left">
|
<td class="text-align-left">
|
||||||
{% if server.name %}
|
{% if server.name %}
|
||||||
{{ server.name }}
|
{{ server.name }}
|
||||||
{% elseif server.info %}
|
{% elseif server.info.HostName %}
|
||||||
{{ server.info.HostName }}
|
{{ server.info.HostName }}
|
||||||
{% else %}
|
{% else %}
|
||||||
#{{ server.crc32server }}
|
#{{ server.crc32server }}
|
||||||
|
|
|
||||||
|
|
@ -45,7 +45,7 @@
|
||||||
{% endmacro %}
|
{% endmacro %}
|
||||||
{% from _self import sort %}
|
{% from _self import sort %}
|
||||||
{% extends 'default/layout.html.twig' %}
|
{% extends 'default/layout.html.twig' %}
|
||||||
{% block head_title_content %}{% if server.name %}{{ server.name }}{% elseif server.info %}{{ server.info.HostName }}{% else %}#{{ server.crc32server }}{% endif %} - {{ app.name }}{% endblock %}
|
{% block head_title_content %}{% if server.name %}{{ server.name }}{% elseif server.info.HostName %}{{ server.info.HostName }}{% else %}#{{ server.crc32server }}{% endif %} - {{ app.name }}{% endblock %}
|
||||||
{% block main_content %}
|
{% block main_content %}
|
||||||
<div class="border-default padding-8-px margin-y-8-px">
|
<div class="border-default padding-8-px margin-y-8-px">
|
||||||
<h2>
|
<h2>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue