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-instalacionwebconsole3
Rev | Line | |
---|
[8b2dce81] | 1 | <?php |
---|
| 2 | include_once("../includes/ctrlacc.php"); |
---|
| 3 | include_once("../clases/AdoPhp.php"); |
---|
| 4 | include_once("../clases/XmlPhp.php"); |
---|
| 5 | include_once("../clases/MenuContextual.php"); |
---|
| 6 | include_once("../clases/SockHidra.php"); |
---|
| 7 | include_once("../includes/constantes.php"); |
---|
| 8 | include_once("../includes/comunes.php"); |
---|
| 9 | include_once("../includes/CreaComando.php"); |
---|
[8c2a78c] | 10 | include_once("../includes/tftputils.php"); |
---|
[8b2dce81] | 11 | include_once("../idiomas/php/".$idioma."/aulas_".$idioma.".php"); |
---|
| 12 | |
---|
| 13 | $cmd=CreaComando($cadenaconexion); |
---|
| 14 | if (!$cmd) |
---|
| 15 | Header('Location: '.$pagerror.'?herror=2'); // Error de conexión con servidor B.D. |
---|
| 16 | //________________________________________________________________________________________________________ |
---|
| 17 | |
---|
| 18 | |
---|
| 19 | echo "<html>"; |
---|
| 20 | echo "<head>"; |
---|
| 21 | echo "<meta http-equiv='Refresh' content='1;URL=../principal/boot.php?idambito=". $_GET['idaula'] ."&nombreambito=" . $_GET['nombreambito'] . "&litambito=" . $_GET['litambito'] . "'>"; |
---|
| 22 | echo "<title> gestion de equipos </title>"; |
---|
| 23 | echo "<base target='principal'>"; |
---|
| 24 | echo "</head>"; |
---|
| 25 | echo "<body>"; |
---|
| 26 | |
---|
| 27 | $lista = explode(";",$_POST['listOfItems']); |
---|
| 28 | foreach ($lista as $sublista) { |
---|
[09d966f] | 29 | if (! empty ($sublista)) { |
---|
[18ba143] | 30 | $elementos = explode("|",$sublista); |
---|
| 31 | $hostname=$elementos[1]; |
---|
| 32 | $optboot=$elementos[0]; |
---|
[8c2a78c] | 33 | createBootMode ($cmd, $optboot, $hostname, $idioma); |
---|
[18ba143] | 34 | } |
---|
[8b2dce81] | 35 | } |
---|
| 36 | echo " </body>"; |
---|
| 37 | echo " </html> "; |
---|
| 38 | |
---|
[18ba143] | 39 | |
---|
[8b2dce81] | 40 | function netmask2cidr($netmask) { |
---|
| 41 | $cidr = 0; |
---|
| 42 | foreach (explode('.', $netmask) as $number) { |
---|
| 43 | for (;$number> 0; $number = ($number <<1) % 256) { |
---|
| 44 | $cidr++; |
---|
| 45 | } |
---|
| 46 | } |
---|
| 47 | return $cidr; |
---|
[efe8ac7] | 48 | } |
---|
[8b2dce81] | 49 | |
---|
Note: See
TracBrowser
for help on using the repository browser.