close
Warning:
Failed to sync with repository "ogBrowser-Git": (1366, "Incorrect string value: '\\xF0\\x9F\\x93\\xA6 I...' for column 'message' at row 1"); repository information may be out of date. Look in the Trac log for more information including mitigation strategies.
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
| Line | |
|---|
| 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"); |
|---|
| 10 | include_once("../includes/tftputils.php"); |
|---|
| 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) { |
|---|
| 29 | if (! empty ($sublista)) { |
|---|
| 30 | $elementos = explode("|",$sublista); |
|---|
| 31 | $hostname=$elementos[1]; |
|---|
| 32 | $optboot=$elementos[0]; |
|---|
| 33 | createBootMode ($cmd, $optboot, $hostname, $idioma); |
|---|
| 34 | } |
|---|
| 35 | } |
|---|
| 36 | echo " </body>"; |
|---|
| 37 | echo " </html> "; |
|---|
| 38 | |
|---|
| 39 | |
|---|
| 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; |
|---|
| 48 | } |
|---|
| 49 | |
|---|
Note: See
TracBrowser
for help on using the repository browser.