Hello there,

 I have a script that I hacked from cpanel to help me access a webmail MUA
that I installed. It works with opera and netscape but seems to hang in
IE. I don't know much about perl but am learning. Can someone point out
whats wrong with this script that would cuse it to hang in IE?

#!/usr/bin/perl

#open(CPCONF,"/var/cpanel/sm.conf");
#while(<CPCONF>) {
#        if (/^port=(\d+)/) {
#                $port = $1;
#        }
#}
#close(CPCONF);
if ($port eq "") { $port = '80'; }

if ($ENV{'HTTP_HOST'} ne "") {
        print "Location: http://$ENV{'HTTP_HOST'}:${port}/mta\n\n";
        exit;
}

print "Location: http://$ENV{'REMOTE_ADDR'}:${port}/mta\n\n";

this script or something similar is needed to escape the cpanel base
directory and also to escape the default port of 2082 that cpanel logs
into. Thanks for any help

-- 

Jerry M. Howell II



-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to