Changeset 935 for trunk/cgi-bin
- Timestamp:
- 12/08/22 18:08:15 (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/cgi-bin/search.cgi
-
Property svn:keywords
changed from
Date Rev Author
toId
r931 r935 1 1 #!/usr/bin/perl 2 # ipdb/cgi-bin/search.cgi 3 # Started splitting search functions (quick and otherwise) from 4 # main IPDB interface 03/11/2005 5 ### 6 # SVN revision info 7 # $Date$ 8 # SVN revision $Rev$ 9 # Last update by $Author$ 10 ### 2 # IPDB search for users 3 ## 4 # $Id$ 11 5 # Copyright 2005-2010,2012,2015-2017,2022 - Kris Deugau <kdeugau@deepnet.cx> 6 # 7 # This program is free software: you can redistribute it and/or modify 8 # it under the terms of the GNU General Public License as published by 9 # the Free Software Foundation, either version 3 of the License, or 10 # (at your option) any later version. 11 # 12 # This program is distributed in the hope that it will be useful, 13 # but WITHOUT ANY WARRANTY; without even the implied warranty of 14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 # GNU General Public License for more details. 16 # 17 # You should have received a copy of the GNU General Public License 18 # along with this program. If not, see <http://www.gnu.org/licenses/>. 19 ## 12 20 13 21 use strict; … … 23 31 ##uselib## 24 32 25 # push "the directory the script is in" into @INC 26 use FindBin; 27 use lib "$FindBin::RealBin/"; 33 # Taint-safe (ish) voodoo to push "the directory the script is in" into @INC. 34 use File::Spec (); 35 use File::Basename (); 36 my $path; 37 BEGIN { 38 $path = File::Basename::dirname(File::Spec->rel2abs($0)); 39 if ($path =~ /(.*)/) { 40 $path = $1; 41 } 42 } 43 use lib $path; 28 44 29 45 use MyIPDB; … … 58 74 ##fixme: tweak for handling <select multiple='y' size=3> (list with multiple selection) 59 75 my %webvar = $q->Vars; 76 $webvar{cidrexclude} = '' if !$webvar{cidrexclude}; 60 77 61 78 if (defined($webvar{rpp})) { … … 341 358 342 359 print $page->output; 360 361 $sth->finish; 343 362 344 363 # Shut down and clean up. -
Property svn:keywords
changed from
Note:
See TracChangeset
for help on using the changeset viewer.