📄 provisioning.cgi
字号:
#!/usr/bin/perluse Sys::Hostname;require "getopts.pl";&Getopts("h:");$hostname = hostname();$packedHostIP = gethostbyname($hostname);($a, $b, $c, $d) = unpack('C4', $packedHostIP);$hostIP = $a . "." . $b . "." . $c . "." . $d;if($opt_h) { $host = $opt_h;} else { $host = $hostIP;}$port = "6005";$width = "320";$height = "240";#$class = "vocal.ui.AdministrativeLogin.class";$class = "vocal.ui.AdministrativeLogin";#for some reason the codebase has to be the name, not IP#$codebase = "http://${hostname}/jarfiles";$codebase = "jarfiles";$vocalJar = "psClient.jar";$name = "Provisioning";print "content-type: text/html\n\n";$is_working = 0;if(!$is_working) { print <<"EndOfError";<html><head><meta HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1"></head><body><h1>Applet Disabled</h1><p>The applet does not work in VOCAL 1.5.0alpha2. For moreinformation, please see <ahref="http://bugzilla.vovida.org/bugzilla/show_bug.cgi?id=579">Bug579</a> from the VOCAL Bugzilla database.</p><p>Please see README.txt for information about using the Java GUI from the command line.</p></body></html>EndOfError ;} else {print <<"EndOfFile";<HTML><HEAD><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1"></HEAD><BODY><!--"CONVERTED_APPLET"--><!-- HTML CONVERTER --><SCRIPT LANGUAGE="JavaScript"><!-- var _info = navigator.userAgent; var _ns = false; var _ns6 = false; var _ie = (_info.indexOf("MSIE") > 0 && _info.indexOf("Win") > 0 && _info.indexOf("Windows 3.1") < 0);//--></SCRIPT> <COMMENT> <SCRIPT LANGUAGE="JavaScript1.1"><!-- var _ns = (navigator.appName.indexOf("Netscape") >= 0 && ((_info.indexOf("Win") > 0 && _info.indexOf("Win16") < 0 && java.lang.System.getProperty("os.version").indexOf("3.5") < 0) || (_info.indexOf("Sun") > 0) || (_info.indexOf("Linux") > 0) || (_info.indexOf("AIX") > 0) || (_info.indexOf("OS/2") > 0))); var _ns6 = ((_ns == true) && (_info.indexOf("Mozilla/5") >= 0));//--></SCRIPT> </COMMENT><SCRIPT LANGUAGE="JavaScript"><!-- if (_ie == true) document.writeln('<OBJECT classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" WIDTH = ${width} HEIGHT = ${height} NAME = ${name} ALIGN = middle VSPACE = 0 HSPACE = 0 codebase="http://java.sun.com/products/plugin/autodl/jinstall-1_4-win.cab#Version=1,4,0,0"><NOEMBED><XMP>'); else if (_ns == true && _ns6 == false) document.writeln('<EMBED type="application/x-java-applet;version=1.4" CODE = ${class} CODEBASE = ${codebase} ARCHIVE = ${vocalJar} NAME = ${name} WIDTH = ${width} HEIGHT = ${height} ALIGN = middle VSPACE = 0 HSPACE = 0 host = ${host} port = ${port} debug_level = "7" scriptable=false pluginspage="http://java.sun.com/products/plugin/index.html#download"><NOEMBED><XMP>');//--></SCRIPT><APPLET CODE = ${class} CODEBASE = ${codebase} ARCHIVE = ${vocalJar} WIDTH = ${width} HEIGHT = ${height} NAME = ${name} ALIGN = middle VSPACE = 0 HSPACE = 0></XMP> <PARAM NAME = CODE VALUE = ${class} ><PARAM NAME = CODEBASE VALUE = ${codebase} ><PARAM NAME = ARCHIVE VALUE = ${vocalJar} ><PARAM NAME = NAME VALUE = ${name} > <PARAM NAME="type" VALUE="application/x-java-applet;version=1.4"> <PARAM NAME="scriptable" VALUE="false"> <PARAM NAME = "host" VALUE = ${host}> <PARAM NAME = "port" VALUE = ${port}> <PARAM NAME = "debug_level" VALUE = "7"></APPLET></NOEMBED></EMBED></OBJECT><!--<APPLET CODE = ${class} CODEBASE = ${codebase} ARCHIVE = ${vocalJar} WIDTH = ${width} HEIGHT = ${height} NAME = ${name} ALIGN = middle VSPACE = 0 HSPACE = 0><PARAM NAME = "host" VALUE = ${host}><PARAM NAME = "port" VALUE = ${port}><PARAM NAME = "debug_level" VALUE = "7"></APPLET>--><!--"END_CONVERTED_APPLET"--></BODY></HTML>EndOfFile;}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -