source: trunk/supersearch.cgi @ 703

Last change on this file since 703 was 621, checked in by Dominic Hargreaves, 17 years ago

Use environment variable OPENGUIDES_CONFIG_FILE for config file location;
will be useful for mod_perl. Also add error checking to OpenGuides::Config
config file opening.

  • Property svn:eol-style set to native
  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
File size: 358 bytes
Line 
1#!/usr/local/bin/perl
2
3use warnings;
4use strict;
5
6use CGI;
7use OpenGuides::Config;
8use OpenGuides::SuperSearch;
9
10my $config_file = $ENV{OPENGUIDES_CONFIG_FILE} || "wiki.conf";
11my $config = OpenGuides::Config->new( file => $config_file );
12my $search = OpenGuides::SuperSearch->new( config => $config );
13my %vars = CGI::Vars();
14$search->run( vars => \%vars );
Note: See TracBrowser for help on using the repository browser.