diff options
author | alonso <alonso@us.es> | 2010-07-01 14:59:34 +0000 |
---|---|---|
committer | alonso <alonso@us.es> | 2010-07-01 14:59:34 +0000 |
commit | 75e3167542199f6633e1bb4fabb9b42f539861dd (patch) | |
tree | bf5c3873ae83139ac7c5894013f76f172e036ce7 /admin | |
parent | af5311962e47cae7dd4f754563faa2c308928a60 (diff) |
git-svn-id: https://opengnsys.es/svn/trunk@1081 a21b9725-9963-47de-94b9-378ad31fedc9
Diffstat (limited to 'admin')
-rw-r--r-- | admin/WebConsole/jscripts/aula.js | 25 | ||||
-rw-r--r-- | admin/WebConsole/principal/shellconsola.php | 3 |
2 files changed, 27 insertions, 1 deletions
diff --git a/admin/WebConsole/jscripts/aula.js b/admin/WebConsole/jscripts/aula.js index 9dbb19be..c4b79a2a 100644 --- a/admin/WebConsole/jscripts/aula.js +++ b/admin/WebConsole/jscripts/aula.js @@ -10,6 +10,7 @@ //________________________________________________________________________________________________________ var cadenaip; +var Conlitambito=null //________________________________________________________________________________________________________ function NodoAux(){ @@ -228,6 +229,30 @@ function consola_remota(){ reset_contextual(-1,-1) var whref="../principal/consolaremota.php?litambito="+litambito+"&idambito="+idambito+"&nomambito="+nombreambito location.href=whref; + Conlitambito=litambito; +} +//________________________________________________________________________________________________________ +// +// Abre una ventana para mostrar el eco de una consola +//________________________________________________________________________________________________________ +function eco_remoto(){ + reset_contextual(-1,-1) + if(Conlitambito==null){ + alert(TbMsg[6]); + return; + } + if(Conlitambito==LITAMBITO_ORDENADORES){ + alert(TbMsg[5]); + return; + } + var idambito=currentNodo.toma_identificador() + var litambito=currentNodo.toma_sufijo() + var nomambito=currentNodo.toma_infonodo() + var whref="../principal/ecoremoto.php?litambito="+litambito+"&idambito="+idambito+"&nomambito="+nomambito + var nomw="w_"+litambito+"_"+idambito + if(TBcon[idambito]) + TBcon[idambito].close(); + TBcon[idambito] = window.open(whref,nomw,"width=720,height=640"); } //________________________________________________________________________________________________________ // diff --git a/admin/WebConsole/principal/shellconsola.php b/admin/WebConsole/principal/shellconsola.php index f2d17d4e..3f9d742d 100644 --- a/admin/WebConsole/principal/shellconsola.php +++ b/admin/WebConsole/principal/shellconsola.php @@ -74,6 +74,7 @@ if($cmd){ $parametros.="nfn=".$nombrefuncion.chr(13); $cadenaip=substr($cadenaip,0,strlen($cadenaip)-1); // Quita la coma $parametros.="iph=".$cadenaip.chr(13); + $parametros.="pfe=".$pathfileco.chr(13); $parametros.="rmb=".$ipservidorrembo.chr(13); $resul=manda_trama(); $ipservidorrembo=trim($rs->campos["ip"]); // toma ip servidor rembo @@ -88,10 +89,10 @@ if($cmd){ $parametros=$ejecutor; $parametros.="nfn=".$nombrefuncion.chr(13); $parametros.="cmd=".$comando.chr(13); + $parametros.="pfe=".$pathfileco.chr(13); $cadenaip=substr($cadenaip,0,strlen($cadenaip)-1); // Quita la coma $parametros.="iph=".$cadenaip.chr(13); $parametros.="rmb=".$ipservidorrembo.chr(13); - $resul=manda_trama(); } } |