diff options
author | ramon <ramongomez@us.es> | 2012-11-22 13:22:24 +0000 |
---|---|---|
committer | ramon <ramongomez@us.es> | 2012-11-22 13:22:24 +0000 |
commit | a0da76f5ea8c5f4cbcfef7510917448a909660eb (patch) | |
tree | 7d0146d60c827b4907e570ca5881e5dfbc94b830 /admin/WebConsole | |
parent | 1e8c4f70a36cee228d4d2fc465fec9381482ede2 (diff) |
Versión 1.0.5, #568: Incluir página generada de menú por defecto, si no existe ningún tipo de menú asociado al cliente.
git-svn-id: https://opengnsys.es/svn/branches/version1.0@3442 a21b9725-9963-47de-94b9-378ad31fedc9
Diffstat (limited to 'admin/WebConsole')
-rw-r--r-- | admin/WebConsole/varios/menucliente.php | 28 |
1 files changed, 16 insertions, 12 deletions
diff --git a/admin/WebConsole/varios/menucliente.php b/admin/WebConsole/varios/menucliente.php index 5f1f405d..aff5fe7d 100644 --- a/admin/WebConsole/varios/menucliente.php +++ b/admin/WebConsole/varios/menucliente.php @@ -91,20 +91,27 @@ else{ } } else{ - $codeHtml='<div align="center" style="font-family: Arial, Helvetica, sans-serif;">'; - $codeHtml.='<p style="color:#999999; font-size: 16px; margin: 2em;">'.$TbMsg[2].'</p>'; - $codeHtml.='<p style="font-size: 14px; margin: 2em;">'; - $codeHtml.=' <a href="command:poweroff">'.$TbMsg[3].'</a>'; - $codeHtml.='</p>'; - $codeHtml.='</div>'; + // Si existe, incluir menú por defecto. + if (file_exists("/opt/opengnsys/log/clients/$iph.info.html")) { + $codeHtml=(include "/opt/opengnsys/log/clients/$iph.info.html"); + } + else{ + // Componer mensaje para cliente sin menú. + $codeHtml='<div align="center" style="font-family: Arial, Helvetica, sans-serif;">'; + $codeHtml.='<p style="color:#999999; font-size: 16px; margin: 2em;">'.$TbMsg[2].'</p>'; + $codeHtml.='<p style="font-size: 14px; margin: 2em;">'; + $codeHtml.=' <a href="command:poweroff">'.$TbMsg[3].'</a>'; + $codeHtml.='</p>'; + $codeHtml.='</div>'; + } } ?> <html> <head> <meta http-equiv="Content-Type" content="text/html;charset=UTF-8"> </head> - <? + <?php if(!empty($rsmenu->campos["idurlimg"])){ // Imagen de fondo $urlimg=TomaDato($cmd,0,'iconos',$rsmenu->campos["idurlimg"],'idicono','urlicono'); $urlimgfondo="../images/iconos/".$urlimg; @@ -112,15 +119,12 @@ else{ } else{ echo'<body bgcolor="white" background="../images/iconos/fondo800x600.png">'; - //echo '<p align="left"><img border=0 src="../images/iconos/logoopengnsys.png"><p>'; } - include_once("/opt/opengnsys/log/clients/".$iph.".info.html"); - echo $codeHtml; - + echo $codeHtml; ?> </body> </html> - <? +<?php } ?> |