0byt3m1n1
Path:
/
data
/
0
/
0
/
69
/
155
/
69155
/
user
/
70391
/
cgi-bin
/
movabletype
/
[
Home
]
File: mt-atom.cgi
#!/usr/bin/perl -w # Copyright 2001-2004 Six Apart. This code cannot be redistributed without # permission from www.movabletype.org. # # $Id: mt-atom.cgi,v 1.4 2004/05/17 19:51:25 ezra 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::AtomServer; my $CONFIG = $ENV{CONFIG} || $MT_DIR . 'mt.cfg'; my $app = MT::AtomServer->new( Config => $CONFIG ) or die MT::AtomServer->errstr; local $SIG{__WARN__} = sub { $app->trace($_[0]) }; $app->run; }; if ($@) { print "Content-Type: text/html\n\n"; print "Got an error: $@"; }