Changeset 784 for trunk/cgi-bin
- Timestamp:
- 10/08/15 17:21:20 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/cgi-bin/IPDB.pm
r782 r784 3014 3014 my $commonfields = q(custid, type, circuitid, description, notes, modifystamp AS lastmod, 3015 3015 privdata, vlan, rdns); 3016 my $bkfields = q(b.backup_id AS hasbk, b.bkbrand, b.bkmodel, b.bktype, b.bkport, b.bksrc, 3017 b.bkuser, b.bkvpass, b.bkepass); 3016 3018 3017 3019 if ($type eq 'i') { 3018 3020 my $binfo = $dbh->selectrow_hashref(qq( 3019 3021 SELECT p.id, p.ip AS block, p.city, p.vrf, p.parent_id, p.master_id, $commonfields, 3020 d.zone >> p.ip AS revavail 3022 d.zone >> p.ip AS revavail, 3023 $bkfields 3021 3024 FROM poolips p 3022 3025 LEFT JOIN dnsavail d ON p.master_id = d.parent_alloc AND p.ip << d.zone 3026 LEFT JOIN backuplist b ON p.backup_id = b.backup_id 3023 3027 WHERE id = ? 3024 3028 ), undef, ($id) ); … … 3034 3038 WHERE a.id = ? 3035 3039 ), undef, ($id) ); 3040 3036 3041 return $binfo; 3037 3042 }
Note:
See TracChangeset
for help on using the changeset viewer.