#!/usr/local/bin/perl #============================================================================== # cnt #============================================================================== # $cntdir = 'cntdir/cnt'; $web = 'http://ftvjapan.dip.jp/~funa/sha'; $newd = 's-new'; $userd = '/home/funa/sha/s-user'; $mailprog = '/usr/sbin/sendmail'; # mail system $admin = 'funa@cc.seikei.ac.jp'; $jsky = 'J-PHONE'; $imode = 'DoCoMo'; $ezweb ='UP.Browser'; $agent = $ENV{'HTTP_USER_AGENT'}; if($agent =~ /$jsky/){ print "\"写メールdeウエブ\"\n"; }else{ if($agent =~ /$imode/){ if($agent =~ /'P502'/){ print "\"写メールdeウエブ\"\n"; }else{ print "\"写メールdeウエブ\"\n"; } } else { if($agent =~ /$ezweb/){ # $color = $ENV {'HTTP_X_UP_DEVCAP_ISCOLOR'}; print "Content-type: text/hdml;charset=Shift_JIS\n\n"; print "\n"; print "
\"写メールdeウエブ\"\">\n"; print ""; #if ($color == 1){ #} else { print "
\"image\"\n"; #} # $file_name = "smw.png"; # $file_size = -s $file_name; # open(IN, $file_name); # binmode(IN); # read(IN, $img_file, $file_size); # close(IN); # print "Content-type: image/png\n\n"; # print $img_file; # print "\"写メールdeウエブ\"\n"; }else { print "\"写メールdeウエブ\"\n"; } } }