Changeset 507 for branches/stable/cgi-bin/search.cgi
- Timestamp:
- 11/15/11 18:08:14 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/stable/cgi-bin/search.cgi
r445 r507 9 9 # Last update by $Author$ 10 10 ### 11 # Copyright 2005-201 0- Kris Deugau11 # Copyright 2005-2011 - Kris Deugau 12 12 13 13 use strict; … … 64 64 65 65 # Headerize! Make sure we replace the $$EXTRA0$$ bit as needed. 66 printHeader('', ($IPDBacl{$authuser} =~ /a/ ?67 '<td align=right><a href=" /ip/cgi-bin/main.cgi?action=assign">Add new assignment</a></td>' : ''66 printHeader('', $IPDB::webpath, ($IPDBacl{$authuser} =~ /a/ ? 67 '<td align=right><a href="'.$IPDB::webpath.'/cgi-bin/main.cgi?action=assign">Add new assignment</a></td>' : '' 68 68 )); 69 69 … … 244 244 $html = join('',<HTML>); 245 245 close HTML; 246 $html =~ s/\$\$WEBPATH\$\$/$IPDB::webpath/g; 246 247 247 248 # Generate table of types … … 446 447 # Another bit of HairyPerl(TM) to prefix subblocks with "Sub" 447 448 my @row = (($data[2] =~ /^.r$/ ? 'Sub ' : ''). 448 qq(<a href=" /ip/cgi-bin/main.cgi?action=edit&block=$data[0]">$data[0]</a>),449 qq(<a href="$IPDB::webpath/cgi-bin/main.cgi?action=edit&block=$data[0]">$data[0]</a>), 449 450 $data[1], $disp_alloctypes{$data[2]}, $data[3], $data[4]); 450 451 # Allow listing of pool if desired/required. 451 452 if ($data[2] =~ /^.[pd]$/) { 452 $row[0] .= ' <a href=" /ip/cgi-bin/main.cgi?action=listpool'.453 $row[0] .= ' <a href="'.$IPDB::webpath.'/cgi-bin/main.cgi?action=listpool'. 453 454 "&pool=$data[0]\">List IPs</a>"; 454 455 } … … 474 475 print "<b>$i </b>\n"; 475 476 } else { 476 print qq(<a href=" /ip/cgi-bin/search.cgi?page=$i&stype=$webvar{stype}&);477 print qq(<a href="$IPDB::webpath/cgi-bin/search.cgi?page=$i&stype=$webvar{stype}&); 477 478 if ($webvar{stype} eq 'c') { 478 479 print "cidr=$webvar{cidr}&custid=$webvar{custid}&desc=$webvar{desc}&".
Note:
See TracChangeset
for help on using the changeset viewer.