From ad6f82dd54cd2fa2fe79d460e72805a20b43510d Mon Sep 17 00:00:00 2001 From: ramon Date: Wed, 20 Dec 2017 13:06:32 +0000 Subject: #730: Corregir erratas para mostrar mensajes traducidos en log histórico y evitar que se generen mensajes de error por variable no asignada durante el sondeo de estados. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: https://opengnsys.es/svn/branches/version1.1@5540 a21b9725-9963-47de-94b9-378ad31fedc9 --- admin/WebConsole/principal/sondeo.php | 1 + client/shared/lib/httpd/httpd-log.sh | 5 ++--- client/shared/lib/httpd/httpd-runengine.sh | 1 + 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/admin/WebConsole/principal/sondeo.php b/admin/WebConsole/principal/sondeo.php index 7b8ea346..cc63ec60 100644 --- a/admin/WebConsole/principal/sondeo.php +++ b/admin/WebConsole/principal/sondeo.php @@ -51,6 +51,7 @@ //________________________________________________________________________________________________________ $resul=false; $trama=""; + $trama_notificacion=""; $shidra=new SockHidra($servidorhidra,$hidraport); if ($shidra->conectar()){ // Se ha establecido la conexión con el servidor hidra $parametros="nfn=".$funcion.chr(13); diff --git a/client/shared/lib/httpd/httpd-log.sh b/client/shared/lib/httpd/httpd-log.sh index d357a6ed..4dce863f 100755 --- a/client/shared/lib/httpd/httpd-log.sh +++ b/client/shared/lib/httpd/httpd-log.sh @@ -1,13 +1,12 @@ - #!/bin/bash + echo "Content-type: text/html" echo "" -#echo "Bash as CGI" echo "<html><head><title>OpenGnsys Client" echo " " echo "" -echo "

$(./httpd-runengine.sh 'ogEcho $MSG_HTTPLOG_NOUSE' ) .
host $(hostname -s)

" +echo "

$(./httpd-runengine.sh 'ogEcho $MSG_HTTPLOG_NOUSE').
host $(hostname -s)

" echo " " echo "
" diff --git a/client/shared/lib/httpd/httpd-runengine.sh b/client/shared/lib/httpd/httpd-runengine.sh index aa145078..a3fc3e66 100755 --- a/client/shared/lib/httpd/httpd-runengine.sh +++ b/client/shared/lib/httpd/httpd-runengine.sh @@ -1,3 +1,4 @@ +#!/bin/bash # Exportar parámetros del kernel. for i in $(cat /proc/cmdline); do -- cgit v1.2.3-18-g5258