Changeset 7


Ignore:
Timestamp:
Apr 19, 2003, 6:14:21 PM (19 years ago)
Author:
kake
Message:

Minor changes to make it work on un

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wiki.cgi

    r6 r7  
    1 #!/usr/bin/perl -w
     1#!/usr/local/bin/perl -w
    22
    33use strict;
    44use warnings;
    5 
    6 use lib qw( /home/kake/local/share/perl/5.6.1/
    7             /home/kake/local/lib/perl/5.6.1/
    8           );
    95
    106use CGI qw/:standard/;
     
    2622
    2723# config vars
    28 my $FULL_CGI_URL = "http://the.earth.li/~kake/cgi-bin/cgi-wiki/wiki.cgi?";
     24my $FULL_CGI_URL = "http://un.earth.li/~kake/cgi-bin/wiki.cgi?";
    2925
    3026# Make store.
    31 my $store   = CGI::Wiki::Store::SQLite->new(
    32     dbname     => "/home/kake/public_html/cgi-out/cgi-wiki.db"
     27my $store = CGI::Wiki::Store::Pg->new(
     28    dbname => "kake",
     29    dbuser => "kake",
     30    dbpass => "hackfest"
    3331);
    3432
    3533# Make search.
    3634my $indexdb = Search::InvertedIndex::DB::DB_File_SplitHash->new(
    37     -map_name  => "/home/kake/public_html/cgi-out/cgi-wiki-index.db",
     35    -map_name  => "/home/kake/public_html/wiki-index.db",
    3836    -lock_mode => "EX"
    3937);
    40 
    4138my $search  = CGI::Wiki::Search::SII->new( indexdb => $indexdb );
    4239
     
    533530
    534531    my %tt_conf = ( %$conf,
    535                 INCLUDE_PATH => "/home/kake/public_html/cgi-bin/cgi-wiki/templates" );
     532                INCLUDE_PATH => "/home/kake/public_html/cgi-bin/templates" );
    536533
    537534    # Create Template object, print CGI header, process template.
Note: See TracChangeset for help on using the changeset viewer.