summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--admin/WebConsole/gestores/gestor_pxe.php19
-rw-r--r--admin/WebConsole/gestores/gestor_pxe_grub4dos.php20
2 files changed, 33 insertions, 6 deletions
diff --git a/admin/WebConsole/gestores/gestor_pxe.php b/admin/WebConsole/gestores/gestor_pxe.php
index 949ab5d7..72d65737 100644
--- a/admin/WebConsole/gestores/gestor_pxe.php
+++ b/admin/WebConsole/gestores/gestor_pxe.php
@@ -34,12 +34,12 @@ foreach ($lista as $sublista) {
$elementos = explode("|",$sublista);
$hostname=$elementos[1];
$optboot=$elementos[0];
- ogBootServer($cmd,$optboot,$hostname);
+ ogBootServer($cmd,$optboot,$hostname,$idioma);
}
echo " </body>";
echo " </html> ";
-function ogBootServer($cmd,$optboot,$hostname)
+function ogBootServer($cmd,$optboot,$hostname,$idioma)
{
global $cmd;
global $hostname;
@@ -76,7 +76,20 @@ $rs->Primero();
$server=$rs->campos["ipserveradm"];
$rs->Cerrar();
-$infohost=" ip="
+switch ($idioma) {
+ case eng:
+ $idioma=en_GB;
+ break;
+ case esp:
+ $idioma=es_ES;
+ break;
+ case cat:
+ $idioma=es_CAT;
+ break;
+}
+
+
+$infohost="LANG=" .$idioma . " ip="
. $ip . ":"
. $server .":"
. $router . ":"
diff --git a/admin/WebConsole/gestores/gestor_pxe_grub4dos.php b/admin/WebConsole/gestores/gestor_pxe_grub4dos.php
index b293ee7d..8dd0413c 100644
--- a/admin/WebConsole/gestores/gestor_pxe_grub4dos.php
+++ b/admin/WebConsole/gestores/gestor_pxe_grub4dos.php
@@ -34,12 +34,12 @@ foreach ($lista as $sublista) {
$elementos = explode("|",$sublista);
$hostname=$elementos[1];
$optboot=$elementos[0];
- ogBootServer($cmd,$optboot,$hostname);
+ ogBootServer($cmd,$optboot,$hostname,$idioma);
}
echo " </body>";
echo " </html> ";
-function ogBootServer($cmd,$optboot,$hostname)
+function ogBootServer($cmd,$optboot,$hostname,$idioma)
{
global $cmd;
global $hostname;
@@ -81,7 +81,21 @@ $rs->Primero();
$server=$rs->campos["ipserveradm"];
$rs->Cerrar();
-$infohost="'ip=$ip:$server:$router:$netmask:$hostname:$netiface:none" .
+
+switch ($idioma) {
+ case eng:
+ $idioma=en_GB;
+ break;
+ case esp:
+ $idioma=es_ES;
+ break;
+ case cat:
+ $idioma=es_CAT;
+ break;
+}
+
+
+$infohost="'LANG=$idioma ip=$ip:$server:$router:$netmask:$hostname:$netiface:none" .
" group=$group" .
" ogrepo=$repo" .
" oglive=$repo" .