forked from Carlgo11/UploadMe
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdone.php
30 lines (27 loc) · 1.05 KB
/
done.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
<?php
if (!(isset($_GET['file']) && $_GET['file'] != null)) {
header("Location: ./");
die("Redirecting...");
}
include './res/header.php';
$url = "https://" . $_SERVER['HTTP_HOST'] . "/download?file=" . $_GET["file"];
?>
<script>
$( document ).ready(function() {
window.history.pushState('obj', 'Sort by Site', '<?=$url?>');
});
</script>
<div class="content done">
<h1>Success!</h1><br>
<p class="lead">Use this link to download your file:</p>
<?php echo '<pre style="width: 450px"><a href="' . $url . '">' . $url . '</a></pre>'; ?>
<p class="lead">Your removal code is:</p>
<?php echo '<pre style="width: 450px">' . $_SESSION["rmcode"] . '</pre>'; ?>
<p>Keep this code secret and in a good place.<br>You'll need it if you ever want to remove the file
from the system.</p>
</div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script src="./js/bootstrap.min.js"></script>
<script src="./js/docs.min.js"></script>
<script src="./js/disable.js"></script>
<?php include './res/footer.php'; ?>