-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathglobals.php
42 lines (34 loc) · 993 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
37
38
39
40
41
42
<?php
header("Content-type: text/plain");
echo "#!ipxe\n";
if (!isset($_POST['username']) || !isset($_POST['password'])) {
echo "menu not authenticated...\n";
echo "item main Back to main menu\n";
echo ":main\n";
echo "chain --replace --autofree {$url}bootmenu.php\n";
exit();
}
$username = $_POST['username'];
$password = $_POST['password'];
$url = "http://{$_SERVER["SERVER_ADDR"]}:{$_SERVER["SERVER_PORT"]}/iPXE/";
$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',
);
?>