-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdump_table.php
66 lines (61 loc) · 2.25 KB
/
dump_table.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
<link rel="stylesheet" href="./styles/stylesheet.css" type="text/css" />
<link rel='stylesheet' href='./styles/humane-jackedup.css'/>
<script src='./js/jquery.min.js'></script>
<script src='./js/humane.min.js'></script>
<script src='./js/functions.js'></script>
<div id="container">
<div id="left">
<center>
<a href='./index.php'><img src="./styles/images/small_logo2.png" style="margin-top: 10px;"></a><br>
<a href='./index.php' title='Home'><img src='./styles/images/home.png'></a>
<a href='./users.php' title='Users'><img src="./styles/images/users.png"></a>
<a href='./processes.php' title='Processes'><img src="./styles/images/processes.png"></a>
<a href='./logs.php?s=0' title='Log Viewer'><img src='./styles/images/logs.png'></a>
<a href='./dumps.php' title='Dumps'><img src='./styles/images/dumps.png'></a>
<a href='./column_dump.php' title='Column Dumper'><img src='./styles/images/column_dumper.png'></a>
</center>
<?php
require_once ("./includes/functions.php");
// Check to see if password protection is enabled
if($settings->password) {
// Check to see if user is logged in
if(!logged_in()) {
$login->display_login();
}
}
if(isset($_GET['db'])) {
$database = $_GET['db'];
echo "Tables in: <a href='./tables.php?db=$database'>$database</a><br>";
$get_tables = mysql_query("SELECT TABLE_NAME FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA = '$database'");
echo "<table width='100%' style='font-size: 12px;'>";
while ($row = mysql_fetch_array($get_tables)) {
$table = $row[0];
echo "<tbody>
<tr id='table_$table'>
<td><a href='./tables.php?explore&db=$database&table=$table&l=0'>$table</a></td>
</tr>
</tbody>";
}
echo "</table>";
}
?>
</div>
<div id="right">
<?php
// Display Header
$header->display_header();
if(isset($_GET['dump_table'])) {
$database = $_GET['db'];
$table = $_GET['table'];
echo "<div id='complete'></div>
<br>
Table Dump Progress:<br>
<progress id='table_progress' max='' value=''></progress><br>
Compression Progress:<br>
<progress id='compression_progress' max='' value=''></progress><br>
Log:<br>
<textarea id='log' cols='110' rows='20' readonly></textarea><br>
<input type='button' value='Start Dump' onclick=\"dump_table('$database', '$table', false);\">";
}
?>
</div>