forked from skunkie/ipxe-phpmenu
-
Notifications
You must be signed in to change notification settings - Fork 0
/
globals.php
36 lines (30 loc) · 863 Bytes
/
globals.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
<?php
header("Content-type: text/plain");
echo "#!ipxe\n";
if (!isset($_POST['username']) || !isset($_POST['password'])) {
exit();
}
$username = $_POST['username'];
$password = $_POST['password'];
$url = "http://{$_SERVER["SERVER_ADDR"]}:{$_SERVER["SERVER_PORT"]}/";
$header = "menu Preboot eXecution Environment\n";
$access = null;
$index = 0;
$entries = array();
$default = "choose selected && goto \${selected} || exit 0\n";
$offset = 20;
$network_info = array(
'ip' => 'IP address',
'netmask' => 'Netmask',
'gateway' => 'Gateway',
'dns' => 'DNS',
);
$ks_cfg = array(
'ks_ipaddr' => 'IP address',
'ks_netmask' => 'Netmask',
'ks_gateway' => 'Gateway',
'ks_dns' => 'DNS',
'ks_hostname' => 'Hostname',
'ks_file' => 'Kickstart file',
);
?>