-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
89 lines (76 loc) · 3.31 KB
/
index.php
File metadata and controls
89 lines (76 loc) · 3.31 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>One Time Download Link</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- Le HTML5 shim, for IE6-8 support of HTML elements -->
<!--[if lt IE 9]>
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
<script type="text/javascript" src="bootstrap/google-code-prettify/prettify.js"></script>
<script type="text/javascript">
$(document).ready(function() {
$("*").DomInspector({
callback : function(results) {
// Returns an Array of each element
$(".results").html(results.join(", "));
}
});
// make code pretty
window.prettyPrint && prettyPrint();
});
</script>
<link href="bootstrap/css/bootstrap.css" rel="stylesheet">
<link href="bootstrap/css/bootstrap-responsive.css" rel="stylesheet">
<link href="bootstrap/css/docs.css" rel="stylesheet">
<link href="bootstrap/google-code-prettify/prettify.css" rel="stylesheet">
<style type="text/css">
body {
padding-top: 25px;
}
</style>
</head>
<body>
<div class="container">
<!-- Main hero unit for a primary marketing message or call to action -->
<div class="hero-unit">
<h1>One Time Download Link</h1>
<br>
<h2>Brief</h2><br>
<p>This script was written to be a very easy way for non-programmers to be able to create a secure way to share a single file. It is ideal for
bands looking to give a single song to a single person, and invalidating the link once the song has been downloaded. However,
it will work for any type of file.</p>
<br>
<h2>Description</h2><br>
<p>This script allows you to generate a unique link to download a file. This file will only be allowed to be downloaded one time.
This link will also have also have an expiration date set on it.</p>
<br>
<p>For instance, if you wanted to sell a song for your band. You sold the song on your website for $1, you could use this script
to allow that person to download your song only one time. It would only give them a limited number of hours/days/weeks/years
to claim their download.</p>
<br>
<p>You can also mask the name of the file being downloaded, for further protection. For example, if your song was called
"greatsong.zip", you could set the download link as "Band_Awesome-Awesome_Song.zip" (it is not a good idea to leave spaces in URL titles)</p>
<h2>Update</h2><br>
<p>On July 11, 2016 a multi-file feature branch was merged with the single file. It is now possible to download multiple files at once. </p>
<br>
<h2>Example</h2><br>
<p><a href="/singleuse/generate.php?1234">Generate a download link</a></p>
<br>
<h2>Git the code</h2><br>
<p><a href="https://github.com/KuyaDex/OneTimeDownloadLink">Github repository</a></p>
<br>
</div>
</div>
<footer class="footer">
<div class="container">
<p>
This demo page was built using <a href="http://twitter.github.com/bootstrap/" target="_blank">Twitter bootstrap</a>
</p>
</div>
</footer>
</div> <!-- /container -->
</body>
</html>