Repository navigation
Expand file tree
/
Copy pathvlan_by_id.php
More file actions
42 lines (33 loc) · 1.67 KB
/
Copy pathvlan_by_id.php
File metadata and controls
42 lines (33 loc) · 1.67 KB
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
$pvid = GetPVID($ip, $ro, $iface, $port);
if ($pvid == NULL) {
} else {
if ($pvid == 1) {
$pvid = "default";
} else {
}
if ($edit == $vlan_edit) {
echo "</div><div style=\"white-space: nowrap; float: left; position: relative; padding-left: 10px;\">";
?>
<form method="post" action="set_vlan.php?olt=<?php echo $ip; ?>&iface=<?php echo $iface; ?>&port=<?php echo $port; ?>&mac=<?php echo $mac; ?>">
<input required name="vlan" size=10 type="text" id="vlan" placeholder="VLAN">
<input name="add" type="submit" id="add" value="SET" style="padding: 2px;">
</form>
</div><div style="white-space: nowrap; padding-left: 10px; float: left; position: relative">
<form method="post" action="unset_vlan.php?olt=<?php echo $ip; ?>&iface=<?php echo $iface; ?>&port=<?php echo $port; ?>&mac=<?php echo $mac; ?>">
<input name="add" type="submit" id="add" value="RESET" style="padding: 2px;">
</form>
</div><div style="white-space: nowrap; padding-left: 10px; float: left; position: relative">
<form method="post" action="set_onu_port_down.php?olt=<?php echo $ip; ?>&iface=<?php echo $iface; ?>&port=<?php echo $port; ?>&mac=<?php echo $mac; ?>">
<input name="add" type="submit" id="add" value="Погасить пиздюка" style="padding: 2px;">
</form>
</div><div style="white-space: nowrap; padding-left: 10px; float: left; position: relative">
<form method="post" action="set_onu_port_up.php?olt=<?php echo $ip; ?>&iface=<?php echo $iface; ?>&port=<?php echo $port; ?>&mac=<?php echo $mac; ?>">
<input name="add" type="submit" id="add" value="Быть Няшкой )" style="padding: 2px;">
</form>
<?php
} else {
echo "<a href=\"index.php?page=onu&olt=$ip&mac=$mac&edit=$vlan_edit\">$pvid</a>";
}
}
?>