[BACK]Return to fsmgrtag.sh CVS log [TXT][DIR] Up to [Development] / failsafe / FailSafe-mgr / web / FailSafeManager

File: [Development] / failsafe / FailSafe-mgr / web / FailSafeManager / fsmgrtag.sh (download)

Revision 1.1, Fri Jul 31 02:26:08 1998 UTC (19 years, 2 months ago) by rogerc
Branch: MAIN
CVS Tags: HEAD

Emit an applet tag appropriate for the browser being used.
FsmgrApplet does not work with Microsoft's JVM, so use
Sun's plugin instead.

#!/usr/bin/perl

$userAgent = $ENV{"HTTP_USER_AGENT"};

#
# FsmgrApplet does not work with IE JVM, so use Sun's plugin instead.
#
if ($userAgent =~ /MSIE/) {
    print <<ENDOFTEXT;
<OBJECT classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93"
     width="75" height="75" align="TOP" 
     codebase="http://java.sun.com/products/plugin/1.1/jinstall-11-win32.cab#Version=1,1,0,0">
     <PARAM NAME="archive" VALUE="fsmgr.jar,sysadm.jar">
     <PARAM NAME="code" VALUE="com.sgi.fsmgr.FsmgrApplet">
     <PARAM NAME="type" VALUE="application/x-java-applet;version=1.1">
         No JDK 1.1 support for APPLET!!
</OBJECT>
ENDOFTEXT
} else {
    print <<ENDOFTEXT;
<APPLET CODE="com.sgi.fsmgr.FsmgrApplet"
    align="TOP"
    archive="fsmgr.jar,sysadm.jar,swingall.jar" width=75 height=75>
</APPLET>
ENDOFTEXT
}