-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
53 lines (48 loc) · 2.17 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
<?php
session_start();
?>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Signin Upload</title>
<link rel="icon" href="favicon.png">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js"></script>
<link href="signin.css" rel="stylesheet">
</head>
<body class="text-center">
<div class="container-fluid">
<div class="row justify-content-center">
<div class="mx-1 mt-1 card rounded">
<div class="card-body">
<form action="upload.php" method="post" enctype="multipart/form-data" class="form-signin">
<h1 class="h3 mb-3 font-weight-normal">Please verify</h1>
<label for="inputPassword" class="sr-only">Password</label>
<input type="password" name="pwd" id="pwd" class="form-control" placeholder="Password" required>
<label class="btn btn-primary btn-block">
Browse <input type="file" name="fileToUpload" id="filetoUpload"
onchange="$('#upload-file-info').html(this.files[0].name)" hidden>
</label>
<p class='label label-info' id="upload-file-info"></p>
<p class='label label-info' id="retval"></p>
<button name="submit" class="btn btn-lg btn-primary btn-block" type="submit">Verify and upload
</button>
<p class="mt-5 mb-3 text-muted">© 2019-2020</p>
</form>
</div>
</div>
</div>
</div>
<?php
if(isset($_SESSION['message']))
{
echo $_SESSION['message'];
unset($_SESSION['message']);
}
?>
</body>
</html>