-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathold.php
More file actions
56 lines (53 loc) · 2.01 KB
/
Copy pathold.php
File metadata and controls
56 lines (53 loc) · 2.01 KB
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
<?php
//Requires magic quotes to be off
$mysqli = new mysqli("localhost", "filebox", "3Y3SUKzQVKHav8fQ", "filebox");
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>FileBox</title>
<link rel="stylesheet" type="text/css" href="style.css" />
<script type="text/javascript" src="jquery-1.8.0.min.js"></script>
<script type="text/javascript" src="jquery.fileupload.js"></script>
<script type="text/javascript">
$(function() {
$("input[type=file]").fileupload({
done: function (e, data) {
alert("hahahahahahaha");
$("p").html("hahahahahahahahha");
}
});
});
</script>
</head>
<body>
<div id="header">
</div>
<div id="content">
<form action="./savefile.php" method="POST" enctype="multipart/form-data" name="upload_form" id="upload_form">
<label>Title:</label><input name="title" type="text" id="title" value="asdf" size="35">
<label>File:</label><input type="file" name="file">
<input name="action" type="hidden" id="action" value="add_document">
<input type="submit" />
</form>
<p id="progressp">0%</p>
<ul>
<?php
echo "test";
$result = $mysqli->query("SELECT ID, File_Name, File_Size, File_Type FROM files");
while ($row = $result->fetch_assoc()) {
echo '<li><a href="file.php?id=' . $row['ID'] . '">' . $row['File_Name'] . $row['File_Size'] . $row['File_Type'] . '</a></li>';
}
$result->free();
echo "test2";
?>
</ul>
</div>
<div id="footer">
</div>
</body>
</html>
<?php
$mysqli->close();
?>