mirror of
https://gitlab.com/JKANetwork/CheckServer.git
synced 2026-02-17 02:31:35 +01:00
fixes
This commit is contained in:
@@ -72,7 +72,6 @@ switch ($namepage){
|
|||||||
$groups = array();
|
$groups = array();
|
||||||
}
|
}
|
||||||
renderPage('a_newserver.twig',array('mode' => 'new'));
|
renderPage('a_newserver.twig',array('mode' => 'new'));
|
||||||
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 'deleteserver':
|
case 'deleteserver':
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<?php
|
<?php
|
||||||
if (isset($_GET['logout'])){session_start(); session_destroy();} //Logout
|
if (isset($_GET['logout'])){session_start(); session_destroy();} //Logout
|
||||||
if (!file_exists(dirname(__FILE__).'/config/config.php')){
|
if (!file_exists(__DIR__ .'/config/config.php')){
|
||||||
die('Not configured yet');
|
header('location: install.php');
|
||||||
}
|
}
|
||||||
require_once 'functions.php';
|
require_once 'functions.php';
|
||||||
|
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ if (file_exists(dirname(__FILE__).'/config/config.php')){
|
|||||||
|
|
||||||
//Comprobaciones
|
//Comprobaciones
|
||||||
if (!function_exists('socket_create') ){
|
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/') ){
|
if (!is_writable(__DIR__ .'/config/') ){
|
||||||
sendmsg('error','Debes dar permisos de escritura al directorio config');
|
sendmsg('error','Debes dar permisos de escritura al directorio config');
|
||||||
|
|||||||
Reference in New Issue
Block a user