Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
Lucksi
GitHub Repository: Lucksi/Mr.Holmes
Path: blob/master/Transfer/index.php
1071 views
1
<!--ORIGINAL CREATOR: Luca Garofalo (Lucksi)
2
AUTHOR: Luca Garofalo (Lucksi)
3
Copyright (C) 2023 Lucksi <[email protected]>
4
License: GNU General Public License v3.0-->
5
<!DOCTYPE html>
6
<html>
7
<head>
8
<link rel = "stylesheet" href = "Css/Main.css">
9
<link rel = "icon" href = "Images/Download.png">
10
<meta charset ="UTF-8">
11
<script type = "text/javascript" src ="Scripts/Scripts.js"></script>
12
<meta name="viewport" content="width=device-width, initial-scale=0.9">
13
<meta name="theme-color" content="#000000">
14
<title>File-Transfer</title>
15
<?php
16
function Content(){
17
echo '
18
<p class = "Bolder" id = "Download"></p>
19
<p class = "Bolder"> IF THE DOWNLOAD WONT START AUTOMATICALLY PRESS THIS BUTTON</p>
20
<noscript><p class = "Bolder">LOOKS LIKE YOU HAVE JAVSCRIPT DISABLED PRESS THIS BUTTON FOR DOWNLOAD THE FILE</p></noscript>
21
';
22
GetFile();
23
}
24
function GetFile() {
25
$filename = fopen("file.txt","r") or die("Unable to open file");
26
$reader = fread($filename,filesize("file.txt"));
27
fclose($filename);
28
echo "<a href = '$reader' download><button id = 'clicker'>Download</button></a>";
29
}
30
?>
31
</head>
32
<body onload="Count()">
33
<p id = "Main">MR.HOLMES FILE-TRANSFER</p>
34
<center>
35
<div class = "Content">
36
<img src = "Images/Download.png">
37
<?php
38
Content();
39
?>
40
</div>
41
</center>
42
</body>
43
</html>
44