分类: LINUX
2012-05-06 18:00:28
#!/usr/bin/perl -w # vim: set cindent expandtab ts=4 sw=4: use CGI::Fast qw(:$DIR); #use vars qw($DIR); BEGIN { if ($ENV{SCRIPT_FILENAME} =~ m!(.*/)cgi!) { $DIR = $1; }else { $DIR = '../'; } unshift @INC, $DIR . 'libs'; #print "content-type: text/html\n\n"; #$SIG{__WARN__} = $SIG{__DIE__} = sub { print @_ }; } use strict; eval { require Ext::MgrApp::Login; my $app = Ext::MgrApp::Login->new( config => $DIR . 'webman.cf', directory => $DIR ); $app->run; }; if ($@) { print "Content-type: text/html\n\n"; print "$@"; }