|
Server : Apache/2.4.62 System : FreeBSD fbsdweb2.web.rcn.net 14.1-RELEASE FreeBSD 14.1-RELEASE releng/14.1-n267679-10e31f0946d8 GENERIC amd64 User : www ( 80) PHP Version : 8.3.8 Disable Function : NONE Directory : /domains/fatshado/cgi-bin/MT/ |
Upload File : |
#!/usr/bin/perl -w
# Original copyright 2001-2002 Jay Allen.
# Modifications and integration Copyright 2001, 2002 Benjamin Trott.
# This code cannot be redistributed without
# permission from www.movabletype.org.
#
# $Id: mt-search.cgi,v 1.1 2002/09/16 06:33:19 btrott Exp $
use strict;
my($MT_DIR);
BEGIN {
if ($0 =~ m!(.*[/\\])!) {
$MT_DIR = $1;
} else {
$MT_DIR = './';
}
unshift @INC, $MT_DIR . 'lib';
unshift @INC, $MT_DIR . 'extlib';
}
eval {
require MT::App::Search;
my $app = MT::App::Search->new( Config => $MT_DIR . 'mt.cfg' )
or die MT::App::Search->errstr;
local $SIG{__WARN__} = sub { $app->trace($_[0]) };
$app->run;
};
if ($@) {
print "Content-Type: text/html\n\n";
print "Got an error: $@";
}