-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
149 lines (140 loc) · 5.58 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
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
<!DOCTYPE html>
<html>
<head lang="en">
<meta charset="UTF-8">
<meta name="format-detection" content="telephone=no">
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="Cache-Control" content="no-cache, must-revalidate">
<meta http-equiv="expires" content="-1">
<meta name="viewport"
content="initial-scale=1, maximum-scale=1, user-scalable=no, width=device-width, viewport-fit=cover">
<meta name="format-detection" content="telephone=no">
<meta name="apple-mobile-web-app-capable" content="yes"/>
<meta property="qc:admins" content="2450036450146316110063757"/>
<meta name="mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta name="apple-mobile-web-app-title" content="Mysql">
<meta name="orientation" content="portrait">
<meta name="screen-orientation" content="portrait">
<meta name="x5-orientation" content="portrait">
<link rel="icon" href="/webdb/favicon.ico">
<link rel="shortcut icon" sizes="192x192" href="/webdb/favicon.ico">
<link rel="shortcut icon" sizes="128x128" href="/webdb/favicon.ico">
<link rel="apple-touch-icon" sizes="128x128" href="/webdb/favicon.ico">
<link rel="apple-touch-icon-precomposed" sizes="128x128" href="/webdb/favicon.ico">
<link rel="manifest" href="/webdb/manifest.json">
<title>mysql</title>
<style type="text/css">
<?php
include 'css/main.css';
include 'css/login.css';
include 'css/selectdatabases.css';
include 'css/selecttable.css';
include 'css/selecttabledata.css';
include 'css/choicewindow.css';
?>
</style>
<script type="text/javascript" src="http://apps.bdimg.com/libs/jquery/1.9.1/jquery.js"></script>
<script type="text/javascript" src="https://unpkg.com/sql-formatter@latest/dist/sql-formatter.min.js"></script>
<script type="text/javascript" src="https://cdn.bootcss.com/html2canvas/0.5.0-beta4/html2canvas.min.js"></script>
<style type="text/css">
<?php
include 'js/jquery.jsonview.css';
?>
</style>
<script type="text/javascript">
<?php
include 'js/jquery.jsonview.js';
?>
</script>
<script type="text/javascript">
var is_numerics_type = {16: true, 1: true, 2: true, 9: true, 3: true, 8: true, 4: true, 5: true, 246: true}
function test_start(str, start_array) {
str = str.toLowerCase()
var str_length = str.length
for (var i in start_array) {
var test_str = start_array[i].toLowerCase()
if (test_str.length >= str_length && (str == test_str || test_str.substr(0, str_length) == str)) {
return true
}
}
return false
}
function as_text_column(column_type) {
return test_start(column_type, ['point', 'geometry', 'geometrycollection', 'multipoint', 'multipolygon', 'polygon', 'blob'])
}
function tipStrToRegular(text) {
if (!text || text == '') {
return null
}
var textSplit = text.split("")
for (var index in textSplit) {
if (textSplit[index] == '/') {
textSplit[index] = '\\/'
} else {
textSplit[index] = textSplit[index].replace(/[-[\]{}()*+?.,\\^$|#\s]/g, '\\$&')
}
}
return eval(`/^.*${textSplit.join('.*')}.*$/`)
}
function search_ul(that, ul_id) {
var aaa = tipStrToRegular($(that).val().toLowerCase())
var tablesList = $(ul_id).find("li")
for (var index in tablesList) {
var table = tablesList[index]
var displayValue = "block"
if (aaa) {
var litext = table.innerHTML.toLowerCase()
if (litext && !aaa.test(litext)) {
displayValue = "none"
}
}
if (table.style) {
table.style.display = displayValue
}
}
}
function search_ul_text(that, ul_id) {
var aaa = tipStrToRegular($(that).val())
var tablesList = $(ul_id).find("li")
for (var index in tablesList) {
var table = tablesList[index]
var displayValue = "block"
if (aaa) {
var litext = table.innerHTML
if (litext && !aaa.test(litext)) {
displayValue = "none"
}
}
if (table.style) {
table.style.display = displayValue
}
}
}
<?php
include 'js/url.js';
include 'js/main.js';
include 'js/login.js';
include 'js/selectdatabase.js';
include 'js/selecttables.js';
include 'js/selecttabledata.js';
include 'js/updatetable.js';
include 'js/selectbysql.js';
include 'js/choicewindow.js';
?>
</script>
</head>
<body style="padding-bottom: calc(constant(safe-area-inset-bottom)/2); padding-bottom: calc(env(safe-area-inset-bottom)/2); ">
<?php
include 'html/main.php';
include 'html/lsbj.php';
include 'html/login.php';
include 'html/selectdatabase.php';
include 'html/selecttable.php';
include 'html/selecttabledata.php';
include 'html/selectbysql.php';
include 'html/choicewindow.php';
?>
</body>
</html>