-
Notifications
You must be signed in to change notification settings - Fork 3
/
upload.php
47 lines (31 loc) · 1.11 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
<?php
require_once("includes/header.php");
require_once("includes/classes/VideoDetailsFormProvider.php");
if(!User::isLoggedIn()) {
header("Location: signIn.php");
}
?>
<div class="column">
<h1>Upload Video !</h1>
<!-- <h5>Error #23800 Uploading service has been temporarily disabled. It will be made functional very soon!</h5> -->
<?php
$formProvider = new VideoDetailsFormProvider($con);
echo $formProvider->createUploadForm();
?>
</div>
<script>
$("form").submit(function() {
$("#loadingModal").modal("show");
});
</script>
<div class="modal fade" id="loadingModal" tabindex="-1" role="dialog" aria-labelledby="loadingModal" aria-hidden="true" data-backdrop="static" data-keyboard="false">
<div class="modal-dialog modal-dialog-centered" role="document">
<div class="modal-content" style="background-color:black;">
<div class="modal-body">
Please wait. This might take a while.
<img src="assets/images/icons/loading-spinner.gif" style="width: 45%;">
</div>
</div>
</div>
</div>
<?php require_once("includes/footer.php"); ?>