1<html> 2 3<head> 4 <title>Diagram editor <?php echo pack("H*", $_GET["name"]); ?></title> 5</head> 6 7<body> 8 9<?php 10 $auth = true; //auth_quickaclcheck("{$namespace}*"); 11 if ($auth >= AUTH_DELETE) { 12 $hostName = "http".($_SERVER['HTTPS'] ? 's' : null).'://'.$_SERVER['HTTP_HOST'].':'.$_SERVER['SERVER_PORT']; 13 14 $cookies; 15 foreach (array_keys($_COOKIE) as $cookieName) { 16 $cookies.=bin2hex($cookieName)."=".bin2hex($_COOKIE[$cookieName]).";"; 17 } 18?> 19 20<script language="JavaScript" type="text/javascript"><!-- 21 var _info = navigator.userAgent; 22 var _ns = false; 23 var _ns6 = false; 24 var _ie = (_info.indexOf("MSIE") > 0 && _info.indexOf("Win") > 0 && _info.indexOf("Windows 3.1") < 0); 25 var _ie7 = (document.all && !window.opera && window.XMLHttpRequest) ? true : false ; 26//--></script> 27 <comment> 28 <script language="JavaScript" type="text/javascript"><!-- 29 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) || (_info.indexOf("IRIX") > 0))); 30 var _ns6 = ((_ns == true) && (_info.indexOf("Mozilla/5") >= 0)); 31//--></script> 32 </comment> 33 34<script language="JavaScript" type="text/javascript"><!-- 35 if( (_ie == true) && (_ie7 == false) ) 36 document.writeln('<object classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" WIDTH = "100%" HEIGHT = "100%" codebase="http://java.sun.com/update/1.5.0/jinstall-1_5-windows-i586.cab#Version=5,0,0,2"><noembed><xmp>'); 37 else 38 if( (_ie == true) && (_ie7 == true) ) 39 document.writeln('<object classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" WIDTH = "100%" HEIGHT = "100%" codebase="http://java.sun.com/update/1.5.0/jinstall-1_5-windows-i586.cab#Version=5,0,0,2"><xmp>'); 40 else if (_ns == true && _ns6 == false) document.writeln('<embed ' + 41 'type="application/x-java-applet;version=1.5" \ 42 CODE = "com.hammurapi.jdraw.JDrawApplet.class" \ 43 ARCHIVE = "<?php echo pack("H*", $_GET["dokuBase"]); ?>lib/plugins/jdraw/lib/jdraw.jar" \ 44 JAVA_CODEBASE = "/somenonexistingcodebase" \ 45 WIDTH = "100%" \ 46 HEIGHT = "100%" \ 47 dokuBase="<?php echo $_GET["dokuBase"]; ?>" \ 48 palettes="<?php echo $_GET["palettes"]; ?>" \ 49 imageFormat="<?php echo $_GET["image_format"]; ?>" \ 50 authtok="<?php echo $_GET["authtok"]; ?>" \ 51 sectok="<?php echo $_GET["sectok"]; ?>" \ 52 name="<?php echo $_GET["name"]; ?>" \ 53 sessionName="<?php echo $_GET["sessionName"]; ?>" \ 54 sessionId="<?php echo $_GET["sessionId"]; ?>" \ 55 cookies="<?php echo $cookies; ?>" \ 56 host="<?php echo $hostName; ?>" \ 57 isNew="<?php echo $_GET["isNew"]; ?>" \ 58 bgcolor ="#ffffff" ' + 59 60 'scriptable=false ' + 61 'pluginspage="http://java.sun.com/products/plugin/index.html#download"><noembed><xmp>'); 62//--></script> 63<applet CODE = "com.hammurapi.jdraw.JDrawApplet.class" ARCHIVE = "<?php echo pack("H*", $_GET["dokuBase"]); ?>lib/plugins/jdraw/lib/jdraw.jar" WIDTH = "100%" HEIGHT = "100%"></xmp> 64 <PARAM NAME = CODE VALUE = "com.hammurapi.jdraw.JDrawApplet.class" > 65 <PARAM NAME = ARCHIVE VALUE = "<?php echo pack("H*", $_GET["dokuBase"]); ?>lib/plugins/jdraw/lib/jdraw.jar" > 66 <param name="type" value="application/x-java-applet;version=1.5"> 67 <param name="scriptable" value="false"> 68 <PARAM NAME = "jDraw" VALUE="#ffffff"> 69 70 <param name="dokuBase" value="<?php echo $_GET["dokuBase"]; ?>"> 71 <param name="authtok" value="<?php echo $_GET["authtok"]; ?>"> 72 <param name="name" value="<?php echo $_GET["name"]; ?>"> 73 <param name="palettes" value="<?php echo $_GET["palettes"]; ?>"> 74 <param name="imageFormat" value="<?php echo $_GET["image_format"]; ?>"> 75 <param name="sectok" value="<?php echo $_GET["sectok"]; ?>"> 76 <param name="sessionName" value="<?php echo $_GET["sessionName"]; ?>"> 77 <param name="sessionId" value="<?php echo $_GET["sessionId"]; ?>"> 78 <param name="cookies" value="<?php echo $cookies; ?>"> 79 <param name="isNew" value="<?php echo $_GET["isNew"]; ?>"> 80 <PARAM NAME = CODEBASE VALUE = "/somenonexistingcodebase" > 81 <param name="host" value="<?php echo $hostName; ?>"> 82 83 84Java 2 Standard Edition v 1.3 or above is required for this applet.<br/> 85 Download it from <a href="http://java.sun.com">http://java.sun.com</a>. 86</applet> 87<script language="JavaScript" type="text/javascript"><!-- 88if( _ie7 == false ) 89</noembed> 90//--></script> 91</embed> 92</object> 93 94<!-- 95<APPLET CODE = "com.hammurapi.jdraw.JDrawApplet.class" ARCHIVE = "<?php echo pack("H*", $_GET["dokuBase"]); ?>lib/plugins/jdraw/lib/jdraw.jar"" WIDTH = "100%" HEIGHT = "100%"> 96 <PARAM NAME = "jDraw" VALUE="#ffffff"> 97 98 <param name="dokuBase" value="<?php echo $_GET["dokuBase"]; ?>"> 99 <param name="authtok" value="<?php echo $_GET["authtok"]; ?>"> 100 <param name="name" value="<?php echo $_GET["name"]; ?>"> 101 <param name="sectok" value="<?php echo $_GET["sectok"]; ?>"> 102 <param name="palettes" value="<?php echo $_GET["palettes"]; ?>"> 103 <param name="imageFormat" value="<?php echo $_GET["image_format"]; ?>"> 104 <param name="sessionName" value="<?php echo $_GET["sessionName"]; ?>"> 105 <param name="sessionId" value="<?php echo $_GET["sessionId"]; ?>"> 106 <param name="cookies" value="<?php echo $cookies; ?>"> 107 <param name="isNew" value="<?php echo $_GET["isNew"]; ?>"> 108 <param name="host" value="<?php echo $hostName; ?>"> 109 110Java 2 Standard Edition v 1.3 or above is required for this applet.<br/> 111 Download it from <a href="http://java.sun.com">http://java.sun.com</a>. 112 113</APPLET> 114--> 115<!--"END_CONVERTED_APPLET"--> 116 117<?php 118 } else { 119?> 120 121You are not authorized to edit this diagram. 122 123<?php } ?> 124 125</body> 126</html>