918-git-images-111dconfigfileconfigure-oglivegit-imageslgromero-new-oglivemainmaint-cronmount-efivarfsmultivmmultivm-ogboot-installerogClonningEngineogboot-installer-jenkinsoglive-ipv6test-python-scriptsticket-301ticket-50ticket-50-oldticket-577ticket-585ticket-611ticket-612ticket-693ticket-700ubu24tplunification2use-local-agent-oglivevarios-instalacion
Last change
on this file since 83f20d1 was
831de70,
checked in by Irina Gómez <irinagomez@…>, 6 years ago
|
#802 #888 When the computer or repo propierties change, the console regenerate the PXE files for bios and uefi.
|
-
Property mode set to
100644
|
File size:
1.1 KB
|
Line | |
---|
1 | <?php |
---|
2 | // Version 1.1.1 - Se utiliza createBootMode para crear los archivos PXE (ticket #802 #888) |
---|
3 | // Autor: Irina Gomez - ETSII Universidad de Sevilla |
---|
4 | // Fecha: 2019/02/12 |
---|
5 | |
---|
6 | include_once("../includes/ctrlacc.php"); |
---|
7 | include_once("../includes/CreaComando.php"); |
---|
8 | include_once("../includes/tftputils.php"); |
---|
9 | |
---|
10 | // Recogemos los parametros |
---|
11 | $litambito=(isset($_REQUEST["litambito"])) ? $_REQUEST["litambito"] : ""; |
---|
12 | $idambito=(isset($_REQUEST["idambito"])) ? $_REQUEST["idambito"] : ""; |
---|
13 | $nombreambito=(isset($_REQUEST["nombreambito"])) ? $_REQUEST["nombreambito"] : ""; |
---|
14 | $lista=(isset($_POST['listOfItems'])) ? explode(";",$_POST['listOfItems']) : ""; |
---|
15 | |
---|
16 | // Crea objeto comando |
---|
17 | $cmd=CreaComando($cadenaconexion); |
---|
18 | |
---|
19 | foreach ($lista as $sublista) { |
---|
20 | if (! empty ($sublista)) { |
---|
21 | $elementos = explode("|",$sublista); |
---|
22 | $hostname=$elementos[1]; |
---|
23 | $optboot=$elementos[0]; |
---|
24 | |
---|
25 | createBootMode ($cmd, $optboot, $hostname, $idioma); |
---|
26 | } |
---|
27 | } |
---|
28 | |
---|
29 | header("Location: ../principal/boot.php?idambito=". $idambito ."&nombreambito=" . $nombreambito . "&litambito=" . $litambito); |
---|
30 | exit(); |
---|
Note: See
TracBrowser
for help on using the repository browser.