mxGraph破解说明

来源:互联网 发布:剑网3淘宝代练 编辑:程序博客网 时间:2024/05/01 21:15

破解步骤:

1、先在官网http://www.jgraph.com/mxgraph.html上下载:mxgraph-eval-1_5_1_3.zip;

2、解压后取文件夹:mxgraph/javascript/examples/editors,所有流程绘制工具都在这里了;

3、用记事本打开diagrameditor.html,发现下面的代码
 <script type="text/javascript" src="http://www.jgraph.com/demo/mxgraph/src/js/mxclient.php?version=1.5.1.3&key=hnaDe6WohnmhlyI"></script>
 破解的重点是拿到mxclient.php解析后的js文件;
 
4、IE8下面浏览http://www.jgraph.com/demo/mxgraph/editors/diagrameditor.html,另存网文件,在文件夹下面发现:mxclient.php文件,用文本编辑器打开,
 取:eval('/166/141/162/40/155/170/103...');中的''部分的字符串,放到下面这段html中:
<html>
<head>
 <title>mxDraw Example</title> 
</head>
<body>
<div id='content'></div>
</body>
 <script type="text/javascript">
  var a = '/166/141/162/40/155/170/103...';
  
  document.getElementById('content').innerText = a;
 </script>
</html>
 用IE打开就可以看到mxclient.js真面目了。
 用同样的办法拿到firefox下面的mxclient.js文件;
 
5、找到mxclient.js文件中的这句代码
 if ((eval('/156/145/167/40/104/141/164/145/50/51/56/147/145/164/124/151/155/145/50/51') / 1000) - 1270532723 &gt; 15778396) { mxGraph = function() { };}
 注释掉。
  
6、替换diagrameditor.html中的那句:....js/mxclient.php?,改为直接加载....js/mxclient.js,就可以了;

补充说明:
注释掉 editors/config/diagrameditor.xml 中的<include name="/Config.ashx"/>这行,否则在tomcat下执行会有错误;
修改   diagrameditor.html中的 mxBasePath = '../../src'; 为 mxBasePath = 'src'; 把mxgraph/javascript/src目录复制到mxgraph/javascript/examples/editors中

 

原创粉丝点击