-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathupload.php
70 lines (69 loc) · 1.73 KB
/
upload.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
<!DOCTYPE html>
<!-- Author: Scott Grivner -->
<!-- Website: scottgrivner.dev -->
<!-- Abstract: FTP File Upload Utility -->
<html>
<head>
<title>FTP File Upload Utility</title>
<link rel="icon" type="image/png" href="images/favicon.ico">
<script type="text/javascript" src="jquery-1.11.2.min.js"></script>
<script>
function refresh(){
// SHOW overlay
$('#overlay').show();
// Retrieve data:
$.ajax({
url: "complete.php",
context: document.body,
success: function(s,x){
$(this).html(s);
$('#overlay').hide();
}
});
}
$(document).ready(function(){
// Create overlay and append to body:
$('<div id="overlay"/>').css({
position: 'fixed',
top: 0,
left: 0,
width: '100%',
height: $(window).height() + 'px',
opacity:0.4,
background: 'lightgray url(loading.gif) no-repeat center'
}).hide().appendTo('body');
});
</script>
<style>
button
{
width:200px;
height:50px;
border: 0;
background-size: 100%; /* To fill the dimensions of container (button), or */
background-size: 200px auto; /* to specify dimensions explicitly */
}
</style>
</head>
<body>
<div style="text-align:center;">
<IMG SRC="logo.png"></div>
<br>
<div style="text-align:center;"><b>Select File to Upload:</b></div>
<div style="text-align:center;">
<form action="complete.php" enctype="multipart/form-data" method="post">
<br>
Filename: <input type="file" name="file">
<br>
<br>
Username: <input type="text" name="username">
<br>
<br>
Password: <input type="password" name="password">
<br>
<br>
<button input type="submit" onclick="refresh();"><img src="UploadBtn.png"></button>
</form>
</div>
</body>
</html>