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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
|
<?php
include('../standard_header.inc.php');
# Dateiname und evtl. Pfad des Templates für die Webseite
$webseite = "new_host.dwt";
include('computers_header.inc.php');
$mnr = 1;
$sbmnr = -1;
$mcnr = -1;
###################################################################################
$sbmnr = $_GET['sbmnr'];
# Menuleisten erstellen
createMainMenu($rollen, $mainnr);
createComputersMenu($rollen, $mnr, $auDN, $sbmnr, $mcnr);
###################################################################################
$hostname = str_replace ( "_", " ", $_GET['hostname']);
$hostdesc = str_replace ( "_", " ", $_GET['hostdesc']);
$mac = str_replace ( "_", " ", $_GET['mac']);
$ip = str_replace ( "_", " ", $_GET['ip']);
# DHCP Einbindung
$objecttype = "nodhcp";
$dhcp_selectbox = "";
$altdhcp = alternative_dhcpobjects($objecttype,"","");
if (count($altdhcp) != 0){
foreach ($altdhcp as $item){
$dhcp_selectbox .= "
<option value='".$item['dn']."'>".$item['cn']." ".$item['au']."</option>";
}
}
$template->assign(array("HOSTNAME" => $hostname,
"HOSTDESC" => $hostdesc,
"MAC" => $mac,
"IP" => $ip,
"DHCPSELECT" => $dhcp_selectbox,
"MOUSE" => "",
"GRAPHIC" => "",
"MONITOR" => "",
"AUDN" => $auDN));
###################################################################################
include("computers_footer.inc.php");
?>
|