Changeset 839
- Timestamp:
- 04/12/16 14:49:45 (9 years ago)
- Location:
- trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/cgi-bin/IPDB.pm
r833 r839 137 137 our $numeric_vlan = 1; 138 138 139 # Billing system return link 140 our $billinglink = 'https://billing.example.com/radius.pl'; 139 141 140 142 ## -
trunk/cgi-bin/MyIPDB.pm
r836 r839 88 88 #$IPDB::numeric_vlan = 1; 89 89 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 90 94 ## connectDB_My() 91 95 # Wrapper for IPDB::connectDB -
trunk/cgi-bin/main.cgi
r835 r839 889 889 $page->param(custid => $webvar{custid}); 890 890 $page->param(billinguser => $webvar{billinguser}); 891 $page->param(billinglink => $IPDB::billinglink); 891 892 mailNotify($ip_dbh, "a$webvar{alloctype}", "ADDED: $disp_alloctypes{$webvar{alloctype}} allocation", 892 893 "$disp_alloctypes{$webvar{alloctype}} $msg allocated to customer $webvar{custid}\n". … … 905 906 if ($webvar{alloctype} eq 'pr' && $webvar{billinguser}) { 906 907 $page->param(billinguser => $webvar{billinguser}); 908 $page->param(billinglink => $IPDB::billinglink); 907 909 $page->param(custid => $webvar{custid}); 908 910 $page->param(netaddr => $netblock->addr); -
trunk/templates/insert.tmpl
r766 r839 10 10 <div class="heading">The IP <TMPL_VAR NAME=staticip> has been allocated to customer <TMPL_VAR NAME=custid></div> 11 11 <TMPL_IF billinguser> 12 <div><a href=" https://billing.example.com/radius.pl?action=new_radius_user&custid=<TMPL_VAR NAME=custid>&userid=<TMPL_VAR NAME=billinguser>&ipdb=1&ip=<TMPL_VAR NAME=staticip>">Add this IP to RADIUS user table</a></div>12 <div><a href="<TMPL_VAR NAME=billinglink>?action=new_radius_user&custid=<TMPL_VAR NAME=custid>&userid=<TMPL_VAR NAME=billinguser>&ipdb=1&ip=<TMPL_VAR NAME=staticip>">Add this IP to RADIUS user table</a></div> 13 13 </TMPL_IF> 14 14 </div> … … 18 18 <div class="heading">The block <TMPL_VAR NAME=fullcidr> was sucessfully added as: <TMPL_VAR NAME=alloctype></div> 19 19 <TMPL_IF billinguser> 20 <div><a href=" https://billing.example.com/radius.pl?action=new_radius_user&custid=<TMPL_VAR NAME=custid>&userid=<TMPL_VAR NAME=billinguser>&route_subnet=<TMPL_VAR NAME=netaddr>&subnet_slash=<TMPL_VAR NAME=masklen>&include_routed_subnet=1&ipdb=1">Add this netblock to RADIUS user table</a></div>20 <div><a href="<TMPL_VAR NAME=billinglink>?action=new_radius_user&custid=<TMPL_VAR NAME=custid>&userid=<TMPL_VAR NAME=billinguser>&route_subnet=<TMPL_VAR NAME=netaddr>&subnet_slash=<TMPL_VAR NAME=masklen>&include_routed_subnet=1&ipdb=1">Add this netblock to RADIUS user table</a></div> 21 21 </TMPL_IF> 22 22 </div>
Note:
See TracChangeset
for help on using the changeset viewer.