diff options
author | ramon <ramongomez@us.es> | 2015-11-09 11:43:17 +0000 |
---|---|---|
committer | ramon <ramongomez@us.es> | 2015-11-09 11:43:17 +0000 |
commit | 0ab2cd56483c0e99f1742b13bbe6f4eea926aaf6 (patch) | |
tree | 886cb66286b4a998fbf43f27d5642276d5db99d1 /admin/WebConsole/propiedades/propiedades_aulas.php | |
parent | 750388bcf03da6e4d1f743514b6c1e71c7204010 (diff) |
#725: Incluir campo para servidor NTP en formulario de propiedades del aula, mostrando la zona horaria del servidor.
git-svn-id: https://opengnsys.es/svn/branches/version1.1@4721 a21b9725-9963-47de-94b9-378ad31fedc9
Diffstat (limited to 'admin/WebConsole/propiedades/propiedades_aulas.php')
-rw-r--r-- | admin/WebConsole/propiedades/propiedades_aulas.php | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/admin/WebConsole/propiedades/propiedades_aulas.php b/admin/WebConsole/propiedades/propiedades_aulas.php index a571209e..3bddcbdb 100644 --- a/admin/WebConsole/propiedades/propiedades_aulas.php +++ b/admin/WebConsole/propiedades/propiedades_aulas.php @@ -41,6 +41,7 @@ $ipmul=""; $pormulmetodos=""; $pormul=9000; $velmul=""; +$ntp=""; $dns=""; $proxy=""; $idmenu=""; @@ -234,6 +235,19 @@ function abrir_ventana(URL){ echo '<TD colspan=3><INPUT class="formulariodatos" name=netmask style="width:100" type=text value='.$netmask.'></TD>'; ?> </TR> +<!---- Ramón ------------------------ntp-------------------------------------------------> + <tr> + <th align="center"> <?php echo $TbMsg['PROP_NTPIP'] ?> </th> + <?php if ($opcion==$op_eliminacion) + echo '<td colspan="3">'.$ntp.'</td>'; + else + echo '<td colspan="3"><input class="formulariodatos" name="ntp" style="width:100" type="text" maxlength="15" value="'.$ntp.'" /> '; + if (exec("timedatectl status | awk -F'[:()]' '/Time.*zone/ {print $2}'", $out, $err)) { + echo '<em>('.$TbMsg['PROP_DEFTIMEZONE'].': '.$out[0].')</em>; + } + echo "</td>"; + ?> + </tr> <!---- Ramón ------------------------dns-------------------------------------------------> <tr> <th align="center"> <?php echo $TbMsg['PROP_DNSIP'] ?> </th> @@ -460,6 +474,7 @@ function TomaPropiedades($cmd,$ida) global $pormul; global $velmul; ###################### Ramón + global $ntp; global $dns; global $proxy; ###################### UHU @@ -543,6 +558,7 @@ function TomaPropiedades($cmd,$ida) $modp2p=$rs->campos["modp2p"]; $timep2p=$rs->campos["timep2p"]; #################### Ramón + $ntp=$rs->campos["ntp"]; $dns=$rs->campos["dns"]; $proxy=$rs->campos["proxy"]; #################### UHU |