1 | <?php |
---|
2 | |
---|
3 | if(isset($_SESSION['phpgw_info']['jabberit_messenger']['name_jabberit'])) |
---|
4 | { |
---|
5 | $path = $_SESSION['phpgw_info']['jabberit_messenger']['webserver_url']; |
---|
6 | |
---|
7 | $newWindow = "<script type='text/javascript'>"; |
---|
8 | $newWindow .= "document.write('<HTML>');"; |
---|
9 | $newWindow .= "document.write('<HEAD>');"; |
---|
10 | $newWindow .= "document.write('</HEAD>');"; |
---|
11 | $newWindow .= "document.write('<BODY leftmargin=\'0\' topmargin=\'0\' marginwidth=\'0\' marginheight=\'0\'>');"; |
---|
12 | $newWindow .= "document.write('<APPLET name=\'jeti\' "; |
---|
13 | $newWindow .= "archive=\'".$path."applet.jar,"; |
---|
14 | $newWindow .= $path."plugins/groupchat.jar,"; |
---|
15 | $newWindow .= $path."plugins/sound.jar,"; |
---|
16 | $newWindow .= $path."plugins/xhtml.jar\' CODE=\'nu.fw.jeti.applet.Jeti.class\' WIDTH=\'100%\' HEIGHT=\'400px\'>');"; |
---|
17 | $newWindow .= "document.write('<PARAM NAME=\"SERVER\" VALUE=\'".$_SESSION['phpgw_info']['jabberit_messenger']['name_jabberit']."\'>');"; |
---|
18 | $newWindow .= "document.write('<PARAM NAME=\"HOST\" VALUE=\'".$_SESSION['phpgw_info']['jabberit_messenger']['name_jabberit']."\'>');"; |
---|
19 | $newWindow .= "document.write('<PARAM NAME=\"PORT\" VALUE=\'".$_SESSION['phpgw_info']['jabberit_messenger']['port_jabberit']."\'>');"; |
---|
20 | $newWindow .= "document.write('<PARAM NAME=\"RESOURCE\" VALUE=\'".$_SESSION['phpgw_info']['jabberit_messenger']['resource_jabberit']."\'>');"; |
---|
21 | $newWindow .= "document.write('<PARAM NAME=\"USER\" VALUE=\'".$_SESSION['phpgw_info']['jabberit_messenger']['user']."\'>');"; |
---|
22 | $newWindow .= "document.write('<PARAM NAME=\"PASSWORD\" VALUE=\'".$_SESSION['phpgw_info']['jabberit_messenger']['passwd']."\'>');"; |
---|
23 | $newWindow .= "document.write('<PARAM NAME=\"SSL\" VALUE=\'".$_SESSION['phpgw_info']['jabberit_messenger']['use_ssl_jabberit']."\'>');"; |
---|
24 | $newWindow .= "document.write('<PARAM NAME=\"HIDELOGINSTATUS\" VALUE=\"TRUE\">');"; |
---|
25 | $newWindow .= "document.write('<PARAM NAME=\"EXTIPAGE\" VALUE=\"javascript:window.close();\">');"; |
---|
26 | $newWindow .= "document.write('</APPLET>');"; |
---|
27 | $newWindow .= "document.write('</BODY>');"; |
---|
28 | $newWindow .= "document.write('</HTML>');"; |
---|
29 | $newWindow .= "document.close();"; |
---|
30 | $newWindow .= "</script>"; |
---|
31 | |
---|
32 | printf("%s",$newWindow); |
---|
33 | } |
---|
34 | ?> |
---|