1
0
mirror of https://gitlab.com/JKANetwork/CheckServer.git synced 2026-02-14 17:21:35 +01:00
This commit is contained in:
2020-10-17 18:25:25 +02:00
parent a0ae0df455
commit 7163a42645
4 changed files with 5 additions and 6 deletions

View File

@@ -72,7 +72,6 @@ switch ($namepage){
$groups = array();
}
renderPage('a_newserver.twig',array('mode' => 'new'));
break;
case 'deleteserver':

View File

@@ -73,7 +73,7 @@
<tbody>
{% for server in servers %}
<tr
{% if server.Enabled == 1 %} {%if server.Online == 1 %}class="bgcolor-ok" {%endif%}{% elseif server.Enabled == 0 %}class="bgcolor-secondary"{% endif %}>
{% if server.Enabled == 1 %} {% if server.Online == 1 %} class="bgcolor-ok" {% endif %}{% elseif server.Enabled == 0 %} class="bgcolor-secondary"{% endif %}>
<td data-toggle="tooltip" data-placement="top" {#title="{{server.Description}}"#} >{{server.Name}} {% if server.Online == 0 and server.Enabled == 1 %}<br/><i>Offline</i>{%endif%}{% if server.Enabled == 0 %}<br/><i>Deshabilitado</i>{%endif%}</td>
@@ -85,7 +85,7 @@
</td>
<td>{% if server.BadCreds == 0 %} {{server.Uptime}} {% endif %}</td>
{% if server.Enabled == 1 %}
<td {% if server.Ping > -1 %}class="bgcolor-ok">On {% else %}class="bgcolor-warn">Off{% endif %}</td>
<td{% if server.Ping > -1 %} class="bgcolor-ok">On {% else %} class="bgcolor-warn">Off{% endif %}</td>
{% else %}
<td></td>
{% endif %}

View File

@@ -1,7 +1,7 @@
<?php
if (isset($_GET['logout'])){session_start(); session_destroy();} //Logout
if (!file_exists(dirname(__FILE__).'/config/config.php')){
die('Not configured yet');
if (!file_exists(__DIR__ .'/config/config.php')){
header('location: install.php');
}
require_once 'functions.php';

View File

@@ -7,7 +7,7 @@ if (file_exists(dirname(__FILE__).'/config/config.php')){
//Comprobaciones
if (!function_exists('socket_create') ){
sendmsg('error','Debes activar el soporte para socket en el php.ini');
sendmsg('error','Debes activar el soporte para socket en el php.ini si quieres que pueda hacer ping.');
}
if (!is_writable(__DIR__ .'/config/') ){
sendmsg('error','Debes dar permisos de escritura al directorio config');