diff options
| author | ivan <ivan> | 2011-12-19 01:32:12 +0000 | 
|---|---|---|
| committer | ivan <ivan> | 2011-12-19 01:32:12 +0000 | 
| commit | a69c2b61cdf4e866e36bab91de1dd71666e7cfb7 (patch) | |
| tree | 276169dfabb5b3e56013f5e4914371a85b47541b /httemplate/misc/process/nms-add_router.html | |
| parent | d7a9f5c6dbf89aa85c281578bb553e04a573cbd0 (diff) | |
missing commit from nms auto-addition fixdes, RT#15536
Diffstat (limited to 'httemplate/misc/process/nms-add_router.html')
| -rw-r--r-- | httemplate/misc/process/nms-add_router.html | 12 | 
1 files changed, 8 insertions, 4 deletions
| diff --git a/httemplate/misc/process/nms-add_router.html b/httemplate/misc/process/nms-add_router.html index a77d897d2..c3b42a8d3 100644 --- a/httemplate/misc/process/nms-add_router.html +++ b/httemplate/misc/process/nms-add_router.html @@ -1,4 +1,7 @@ -<% header('Router added') %> +<& /elements/header-popup.html, 'Router added' &> +  <SCRIPT TYPE="text/javascript"> +    window.top.location.reload(); +  </SCRIPT>  </BODY></HTML>  <%init> @@ -6,12 +9,13 @@ die "access denied"    unless $FS::CurrentUser::CurrentUser->access_right('Configure network monitoring');  my $host = $cgi->param('host');  -die 'invalid host' unless $host =~ /^[0-9.a-zA-Z\-]+$/; +errorpage_popup('invalid host') unless $host =~ /^[0-9.a-zA-Z\-]+$/;  my $community = $cgi->param('community');  -die 'invalid SNMP community string' unless $community =~ /^[0-9.a-zA-Z\-]*$/; +errorpage_popup('invalid SNMP community string') unless $community =~ /^[0-9.a-zA-Z\-]*$/;  my $nms = new FS::NetworkMonitoringSystem; -$nms->add_router($host,$community); +my $error = $nms->add_router($host,$community); +errorpage_popup($error) if $error;  </%init> | 
