summaryrefslogtreecommitdiffstats
path: root/admin/WebConsole/gestores/gestor_pxe.php
diff options
context:
space:
mode:
Diffstat (limited to 'admin/WebConsole/gestores/gestor_pxe.php')
-rw-r--r--admin/WebConsole/gestores/gestor_pxe.php29
1 files changed, 21 insertions, 8 deletions
diff --git a/admin/WebConsole/gestores/gestor_pxe.php b/admin/WebConsole/gestores/gestor_pxe.php
index f585a9d5..949ab5d7 100644
--- a/admin/WebConsole/gestores/gestor_pxe.php
+++ b/admin/WebConsole/gestores/gestor_pxe.php
@@ -65,16 +65,29 @@ $rs->Primero();
$router=$rs->campos["router"];
$netmask=$rs->campos["netmask"];
$repo=$rs->campos["iprepo"];
- $infohost=" ip="
- . $ip . ":"
- . $repo .":"
- . $router . ":"
- . $netmask .":"
- . $hostname .":"
- . $netiface . ":none ogrepo="
- . $repo;
$rs->Cerrar();
+$cmd->texto="SELECT ipserveradm from entornos";
+$rs=new Recordset;
+$rs->Comando=&$cmd;
+if (!$rs->Abrir()) echo "error";
+
+$rs->Primero();
+ $server=$rs->campos["ipserveradm"];
+$rs->Cerrar();
+
+$infohost=" ip="
+. $ip . ":"
+. $server .":"
+. $router . ":"
+. $netmask .":"
+. $hostname .":"
+. $netiface . ":none ogrepo="
+. $repo . " oglive="
+. $repo . " oglog="
+. $server . " ogshare="
+. $repo;
+
###################obtenemos las variables de red del aula.
#02.1 obtenemos nombre fichero mac