Changeset 810 for trunk/cgi-bin


Ignore:
Timestamp:
03/08/16 13:38:18 (9 years ago)
Author:
Kris Deugau
Message:

/trunk

Add "Add VRF" page. See #54.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/cgi-bin/main.cgi

    r808 r810  
    110110} elsif ($webvar{action} eq 'showvrf') {
    111111  showVRF();
     112
     113} elsif ($webvar{action} eq 'addvrf') {
     114  if ($IPDBacl{$authuser} !~ /s/) {
     115    $aclerr = 'addvrf';
     116  }
     117
     118  # Retrieve the list of DNS locations if we've got a place to grab them from
     119  if ($IPDB::rpc_url) {
     120    my %rpcargs = (
     121        rpcuser => $authuser,
     122        group => 1,     # bleh
     123        defloc => '',
     124        );
     125    my $result = IPDB::_rpc('getLocDropdown', %rpcargs);
     126    $page->param(loclist => $result);
     127  }
     128
    112129} elsif ($webvar{action} eq 'addmaster') {
    113130  if ($IPDBacl{$authuser} !~ /a/) {
Note: See TracChangeset for help on using the changeset viewer.