forked from nu0y4/rabbit_list
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
133 lines (128 loc) · 6.37 KB
/
index.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
<?php
include_once __DIR__ . '/config.php';
access_by_cookie($config,$_COOKIE);
?>
<html>
<head>
<meta charset="utf-8">
<script type="text/javascript" src="../../dist/vis.js"></script>
<link href="../../dist/vis.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="./index.js?asd"></script>
<link href="./index.css" rel="stylesheet" type="text/css" />
<style type="text/css">
#mynetwork {
position: absolute;
width: 100%;
height: 100%;
top:0%;
}
</style>
</head>
<body>
<style>
.loading {
width: 60px;
height: 60px;
border: 3px solid #000;
border-top-color: transparent;
border-radius: 100%;
animation: circle infinite 0.75s linear;
}
@keyframes circle {
0% {
transform: rotate(0);
}
100% {
transform: rotate(360deg);
}
}
</style>
<div id='loading' ></div>
<!--- <div id="mynetwork"></div> -->
<div id='insertBlank' style="z-index:10;position:absolute;width:30%;height:10%;left:35%;top:0%;margin:0;backgroud-color:black">
</div>
<div id="mynetwork"><div class="vis-label">Edit</div></div>
<!-- 功能栏 -->
<div id='addup'></div>
<div style="position:absolute;width:100%;height:10%;background-color:#39c5bb;left:0;right:0;top:0;bottom:0;">
<input style="position:absolute;height:50%;width:10%;left:25%;margin:0;top:50%" placeholder="newnode" input='newnode' value='' id='newnode'></input>
<!-- <input style="position:absolute;height:50%;width:5%;left:25%;margin:0;top:50%" placeholder="autoblank" input="autoblank" value="" id="autoblank"></input> -->
<button onclick="frontaddnode()" style="position:absolute;width:5%;height:50%;left:30%;top:50%;margin:0">新增</button>
<!-- <button style="position:absolute;width:5%;height:50%;left:30%;top:50%;margin:0">枚举</button> -->
<button onclick="reflash()" style="position:absolute;width:10%;height:50%;left:25%;top:0;margin:0">初始化</button>
<input onclick="focuson()" onblur="shownodes()" style="position:absolute;height:50%;width:10%;left:10%;margin:0;top:50%" placeholder="seacrh from nodes" input='search' value='' id='seacrh_node'>seacrh</input>
<input style="position:absolute;width:10%;height:50%;right:0%;top:0%;margin:0" value='edges:null' id='edgesnum'></input>
<input style="position:absolute;width:10%;height:50%;right:0%;top:50%;margin:0" value='allnodes:null' id='nodesnum'></input>
<select onchange="showmodes()" id='nodeclass' style="position:absolute;width:10%;height:50%;right:25%;top:50%;margin:0" value='类型:null'>
</select>
<select onchange='set_imgtype(nodes,edges)' id='force_type' style='position:absolute;width:10%;height:50%;left:0%;top:50%;margin:0'>
</select>
<!-- ul -->
<select id='blank' style='position:absolute;width:5%;height:50%;right:30%;top:0%;margin:0'>
<option value="autoblank">通用号码枚举</option>
<option value="advance_phone_blank">高级手机枚举</option>
<option value="advance_phone_blank">高级中文名枚举</option>
</select>
<button onclick='setblank()' style='position:absolute;width:5%;height:50%;right:25%;top:0%;margin:0'>
枚举
</button>
<button onclick="shownodes()" style="position:absolute;width:5%;height:50%;left:20%;top:50%;margin:0">搜索</button>
<select style="position:absolute;width:5%;height:50%;right:20%;top:50%;margin:0" id='use_functions'>
<option value="singlenode_execmode">当前</option>
<option value="search_node_execmode">自动</option>
<option value="childnodes_node_execmodes">关联</option>
</select>
<select id='addup_modes' style="position:absolute;width:5%;height:50%;right:15%;top:50%;margin:0;">
<option value ="getinfo"> 点击节点再选择模块 </option>
</select>
<select id='delby' style='position:absolute;width:5%;height:50%;right:15%;top:0%;margin:0'>
<option value='this'>选中 </option>
<option value='not_connect'>非直接关联</option>
<option value='is_connect'>直接关联</option>
<option value='<' >边<</option>
<option value='=' >边=</option>
<option value='>' >边></option>
<option value='inputreg'>正则匹配</option>
</select>
<input id='delvalue' value='1' style='position:absolute;width:5%;height:50%;right:10%;top:0%;margin:0'>1</input>
<button style='position:absolute;width:5%;height:50%;right:20%;top:0%;margin:0' value='delallreg' onclick="delbyfront()" >删除</button>
<button onclick="loading()" style="position:absolute;width:5%;height:50%;right:10%;top:50%;margin:0;">执行模块</button>
<!-- <iframe src='./search.php' style="position:absolute;width:15%;height:80%;left:5%;top:5%;top:5%;background-color:#39c5bb;border:0">从数据库查询</iframe>
-->
<div style="position:absolute;width:10%;height:50%;background-color:#39c5bb;left:0;right:0;top:0;bottom:0;" >
<!-- <select id="keyword" style="position:absolute;left:0;margin:0;height:100%;width:100%">
<option value ="isblank" >数据类型</option>
-->
<button style="position:absolute;width:100%;height:100%;left:0;right:0;top:0;bottom:0;" >设置数据类型</button>
<?php
function getresult($url){
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, FALSE);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$output = curl_exec($ch);
curl_close($ch);
return $output;
}
$search=getresult("http://127.0.0.1/search.php?showtable=1");
$keywords=$search;
// echo "<script>console.log('keyword_list:',$keywords)</script>";
$search=explode(",",$keywords,-1);
//echo "<script>console.log('search_list:',$search)</script>";
foreach ($search as $v)
{
if(strlen($v)<32)
{
// echo "<script>console.log($v)</script>";
echo "<option value='".$v."'>".$v."</option>";
}
}
?>
</select>
<input type="keyword" placeholder="keyword" id='keyword4search' style="position:absolute;height:100%;width:100%;left:100%;margin:0"></input>
<button onclick="setkeyword()" style="position:absolute;width:50%;height:100%;left:200%;margin:0">
<img src='./search.ico'></img></button>
<div> <button style="position:absolute;width:50%;height:100%;right:200%;margin:0">在图中搜索</buttom></div>
</body>
</html>