Changeset 935


Ignore:
Timestamp:
12/08/22 18:08:15 (17 months ago)
Author:
Kris Deugau
Message:

/trunk

Commit a few little cleanups to search.cgi, along with bringing the header
style in line with current practice

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/cgi-bin/search.cgi

    • Property svn:keywords changed from Date Rev Author to Id
    r931 r935  
    11#!/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$
    115# 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##
    1220
    1321use strict;             
     
    2331##uselib##
    2432
    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.
     34use File::Spec ();
     35use File::Basename ();
     36my $path;
     37BEGIN {
     38    $path = File::Basename::dirname(File::Spec->rel2abs($0));
     39    if ($path =~ /(.*)/) {
     40        $path = $1;
     41    }
     42}
     43use lib $path;
    2844
    2945use MyIPDB;
     
    5874##fixme:  tweak for handling <select multiple='y' size=3> (list with multiple selection)
    5975my %webvar = $q->Vars;
     76$webvar{cidrexclude} = '' if !$webvar{cidrexclude};
    6077
    6178if (defined($webvar{rpp})) {
     
    341358
    342359print $page->output;
     360
     361$sth->finish;
    343362
    344363# Shut down and clean up.
Note: See TracChangeset for help on using the changeset viewer.