summaryrefslogtreecommitdiffstats
path: root/admin/WebConsole/varios
diff options
context:
space:
mode:
authoralbertogp <albertogp@uma.es>2012-05-18 10:00:35 +0000
committeralbertogp <albertogp@uma.es>2012-05-18 10:00:35 +0000
commit1873b9a7c3017c9c71d05301c2dd883f23757035 (patch)
tree27dcbb2bb0f65e9b120867be7e82cc95056b0b0b /admin/WebConsole/varios
parent4e1dc5385cbf9222dede8b8706b64af447ada79c (diff)
VersiĆ³n 1.0.4, #495: Integrar ticket en rama de desarrollo.
git-svn-id: https://opengnsys.es/svn/branches/version1.0@3052 a21b9725-9963-47de-94b9-378ad31fedc9
Diffstat (limited to 'admin/WebConsole/varios')
-rw-r--r--admin/WebConsole/varios/menucliente.php31
1 files changed, 31 insertions, 0 deletions
diff --git a/admin/WebConsole/varios/menucliente.php b/admin/WebConsole/varios/menucliente.php
index 7ab0284c..44bb7597 100644
--- a/admin/WebConsole/varios/menucliente.php
+++ b/admin/WebConsole/varios/menucliente.php
@@ -12,6 +12,7 @@ include_once("../includes/ctrlacc.php");
include_once("../clases/AdoPhp.php");
include_once("../includes/TomaDato.php");
include_once("../includes/CreaComando.php");
+include_once("../controlacceso.php");
include_once("../idiomas/php/".$idioma."/menucliente_".$idioma.".php");
//________________________________________________________________________________________________________
$cmd=CreaComando($cadenaconexion);
@@ -87,6 +88,36 @@ else{
}
include_once("/opt/opengnsys/log/clients/".$iph.".info.html");
echo $codeHtml;
+
+//agp
+$nombre_archivo = "/opt/opengnsys/log/clients/".$iph.".cache.txt";
+$gestor = fopen($nombre_archivo, 'r');
+$contenidofichero = fread($gestor, filesize($nombre_archivo));
+fclose($gestor);
+
+ $rs=new Recordset;
+ $cmd->texto="SELECT * FROM ordenadores WHERE ip='".$iph."'";
+ $rs->Comando=&$cmd;
+ if (!$rs->Abrir()) return(false); // Error al abrir recordset
+ $rs->Primero();
+ if (!$rs->EOF){
+ $idordenador=$rs->campos["idordenador"];
+ $rs->Cerrar();}
+
+ $rs=new Recordset;
+ $cmd->texto="SELECT * FROM ordenadores_particiones WHERE idordenador='".$idordenador."' ORDER BY numpar DESC";
+ $rs->Comando=&$cmd;
+ if (!$rs->Abrir()) return(false); // Error al abrir recordset
+ $rs->Primero();
+ if (!$rs->EOF){
+ $numeroparticion=$rs->campos["numpar"];
+ $rs->Cerrar();}
+
+ $cmd->texto="UPDATE ordenadores_particiones set cache='".$contenidofichero."' WHERE idordenador='".$idordenador."' AND numpar=4";
+ if ($numeroparticion == "4")
+ $resul=$cmd->Ejecutar();
+//agp
+
?>
</body>
</html>