summaryrefslogtreecommitdiff
path: root/httemplate/misc/nms-add_iface.html
blob: 1de0249efd948e0cac54837549678676ebbea687 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
Adding interface <B><% $iface %></B> for <B><% $host %></B>
<BR>

<FORM NAME="nms-add_iface" ACTION="<% popurl(1) %>process/nms-add_iface.html" METHOD=POST>
Torrus Service Id
<% include('/elements/input-text.html',
		    'field' => 'serviceid',
	  )
%>
<BR>
<INPUT TYPE="submit" NAME="submit" ID="submit_nms-add_iface" VALUE="Add Interface">
</FORM>

<%init>

# XXX: access rights, disable/enable submit button, something's wrong with style

my $host = $cgi->param('host'); 
die 'invalid host' unless $host =~ /^[0-9.a-zA-Z\-]+$/;

my $iface = $cgi->param('iface');
die 'invalid iface' unless $iface =~ /^[0-9A-Za-z_\-.\\\/ ]+$/;

</%init>