Changeset 839 for trunk/cgi-bin


Ignore:
Timestamp:
04/12/16 14:49:45 (8 years ago)
Author:
Kris Deugau
Message:

/trunk

Convert a lingering custom patch to another configuration knob. See #26.

Location:
trunk/cgi-bin
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/cgi-bin/IPDB.pm

    r833 r839  
    137137our $numeric_vlan = 1;
    138138
     139# Billing system return link
     140our $billinglink = 'https://billing.example.com/radius.pl';
    139141
    140142##
  • trunk/cgi-bin/MyIPDB.pm

    r836 r839  
    8888#$IPDB::numeric_vlan = 1;
    8989
     90## Billing return link
     91# Passalong link for allocations initiated by a link in from a billing system
     92#$IPDB::billinglink = 'https://billing.example.com/radius.pl';
     93
    9094## connectDB_My()
    9195# Wrapper for IPDB::connectDB
  • trunk/cgi-bin/main.cgi

    r835 r839  
    889889      $page->param(custid => $webvar{custid});
    890890      $page->param(billinguser => $webvar{billinguser});
     891      $page->param(billinglink => $IPDB::billinglink);
    891892      mailNotify($ip_dbh, "a$webvar{alloctype}", "ADDED: $disp_alloctypes{$webvar{alloctype}} allocation",
    892893        "$disp_alloctypes{$webvar{alloctype}} $msg allocated to customer $webvar{custid}\n".
     
    905906      if ($webvar{alloctype} eq 'pr' && $webvar{billinguser}) {
    906907        $page->param(billinguser => $webvar{billinguser});
     908        $page->param(billinglink => $IPDB::billinglink);
    907909        $page->param(custid => $webvar{custid});
    908910        $page->param(netaddr => $netblock->addr);
Note: See TracChangeset for help on using the changeset viewer.