-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
280 lines (269 loc) · 17.7 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
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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
<!DOCTYPE html>
<html lang="en" dir="ltr" itemscope itemtype="http://schema.org/WebPage">
<head>
<meta charset="utf-8">
<!--[if lt IE 3]>
|===============================|
| "Those who can, do. |
| Those who can't, criticise." |
| |
| - Robin Sharma |
|===============================|
<![endif]-->
<!-- Title -->
<title>Starfiles Mirror - File sharing done simple</title>
<meta name="title" content="Starfiles Mirror - File sharing done simple">
<meta property="og:title" content="Starfiles Mirror - File sharing done simple">
<meta name="twitter:title" content="Starfiles Mirror - File sharing done simple">
<meta itemprop="name" content="Starfiles Mirror - File sharing done simple">
<meta property="og:site_name" content="Starfiles Mirror">
<meta name="application-name" content="Starfiles Mirror">
<meta name="apple-mobile-web-app-title" content="Starfiles Mirror">
<meta name="twitter:domain" content="Starfiles">
<!-- Description -->
<meta property="og:description" content="Starfiles Mirror - File sharing done simple. Accountless file sharing with no limits. Share files easily for free on Starfiles.">
<meta name="description" content="Starfiles Mirror - File sharing done simple. Accountless file sharing with no limits. Share files easily for free on Starfiles.">
<meta name="twitter:description" content="Starfiles Mirror - File sharing done simple. Accountless file sharing with no limits. Share files easily for free on Starfiles.">
<meta name="abstract" content="Starfiles Mirror - File sharing done simple. Accountless file sharing with no limits. Share files easily for free on Starfiles.">
<meta itemprop="description" content="Starfiles Mirror - File sharing done simple. Accountless file sharing with no limits. Share files easily for free on Starfiles.">
<!-- Icon -->
<meta name="twitter:image" content="images/logo-256.png">
<meta name="twitter:image:src" content="images/logo-256.png">
<meta name="twitter:image:alt" content="Starfiles Logo">
<link rel="shortcut icon" href="images/logo.ico" type="image/x-icon">
<link rel="shortcut icon" href="images/logo.svg" type="image/svg+xml">
<link rel="mask-icon" href="images/logo.svg" color="#5bbad5">
<meta property="og:image" content="images/logo-256.png">
<meta property="og:image:url" content="images/logo-256.png">
<meta property="og:image:secure_url" content="images/logo-256.png">
<meta property="og:image:type" content="image/png">
<meta property="og:image:width" content="256">
<meta property="og:image:height" content="256">
<meta property="og:image:alt" content="The Starfiles logo (a star).">
<meta itemprop="image" content="images/logo-128.png">
<link rel="icon" type="image/png" sizes="512x512" href="images/logo-512.png">
<link rel="icon" type="image/png" sizes="256x256" href="images/logo-256.png">
<link rel="icon" type="image/png" sizes="128x128" href="images/logo-128.png">
<link rel="icon" type="image/png" sizes="64x64" href="images/logo-64.png">
<link rel="icon" type="image/png" sizes="32x32" href="images/logo-32.png">
<link rel="icon" type="image/svg+xml" href="images/logo.svg">
<link rel="apple-touch-icon" sizes="512x512" href="images/logo-512.png">
<link rel="apple-touch-icon" sizes="256x256" href="images/logo-256.png">
<link rel="apple-touch-icon" sizes="128x128" href="images/logo-128.png">
<link rel="apple-touch-icon" sizes="64x64" href="images/logo-64.png">
<link rel="apple-touch-icon" sizes="32x32" href="images/logo-32.png">
<!-- Author -->
<meta name="og:email" content="[email protected]">
<meta name="twitter:creator" content="@Quix_Tweets">
<meta name="twitter:site" content="@StarfilesHelp">
<meta name="author" content="Parsa Yazdani (Quix), [email protected]">
<!-- PWA -->
<meta name="mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
<link rel="manifest" href="manifest.webmanifest">
<!-- Crawling -->
<link rel="sitemap" href="https://starfiles.co/sitemap.xml" type="application/xml"> <!-- TODO -->
<meta name="robots" content="index, follow, max-image-preview:large, max-snippet:-1, max-video-preview:-1">
<!-- Languages -->
<meta property="og:locale" content="en">
<meta name="language" content="en">
<!-- Links -->
<link rel="canonical" href="https://starfiles.co/">
<meta property="og:url" content="https://starfiles.co">
<meta name="twitter:url" content="https://starfiles.co">
<meta property="og:see_also" content="https://starfiles.co">
<link rel="alternate" hreflang="x-default" href="https://starfiles.co">
<link rel="alternate" type="application/atom+xml" title="Public Files" href="https://starfiles.co/public.xml">
<link rel="alternate" type="application/rss+xml" title="Public Files" href="https://starfiles.co/public.xml">
<meta http-equiv="onion-location" content="http://starfilehlzihkml3yfwrddv63vdmmgnelhwaasrnsslyfupqdte5uqd.onion"> <!-- TODO -->
<!-- Meta -->
<meta name="viewport" content="width=device-width,initial-scale=1">
<meta property="og:type" content="website">
<meta name="twitter:card" content="summary">
<meta name="keywords" content="starfiles, files, file, share, sharing, host, hosting">
<meta name="rating" content="general">
<meta name="theme-color" content="#5bbad5">
<!-- JSONLD -->
<script type="application/ld+json">
{
"@context": "http://www.schema.org",
"@type": "WebSite",
"name": "Starfiles",
"description": "Starfiles Mirror - File sharing done simple. Accountless file sharing with no limits. Share files easily for free on Starfiles.",
"image": "images/logo-512.png",
"url": "https://starfiles.co",
"author":{
"@type": "Person",
"name": "Parsa Yazdani"
},
"sameAs":[
"https://twitter.com/StarfilesHelp"
],
"potentialAction": [
{
"@type": "SearchAction",
"target": "https://starfiles.co/search?q={search_term_string}",
"query-input": "required name=search_term_string"
}
]
}
</script>
<!-- CSS -->
<link rel="stylesheet" href="css/main.css?cache=<?php echo time();?>">
<link rel="stylesheet" href="https://pro.fontawesome.com/releases/v6.0.0-beta3/css/all.css" media="all">
</head>
<body>
<div>
<header class="stickyheader">
<a href="https://starfiles.co">
<div style="font-weight:500;font-size:24px;margin:10px 8px">Starfiles Mirror</div>
</a>
<p>File sharing done simple.</p>
</header>
<header style="z-index:2;position:relative">
<a href="https://starfiles.co">
<h1>Starfiles Mirror</h1>
</a>
<h2 style="font-size:15px;margin:0;font-weight:400">File sharing done simple.</h2>
</header>
<header>
<a class="upload" href="https://starfiles.co">
Upload Files
</a>
<br>
<form class="simpleform" action="https://api.starfiles.co/upload/upload_url" method="POST">
<input class="bubble" id="upload_from_url" aria-labelledby="upload_from_url_label" type="url" name="url" placeholder="Upload from URL" required>
<style>
#upload_from_url{
background:white
}
@media (prefers-color-scheme: dark){
#upload_from_url{
background:#2a2e38
}
}
</style>
<label for="upload_from_url" id="upload_from_url_label">Upload from URL</label>
<input type="submit" value="Upload">
</form>
<form method="POST" action="https://api.starfiles.co/magnet_to_torrent" class="simpleform">
<input class="bubble" name="magneturi" id="magneturi" aria-labelledby="magneturi_label" type="url" placeholder="Convert Magnet URI" required>
<label for="magneturi" id="magneturi_label" autocomplete="url">Convert Magnet URI</label>
<button>Upload as Torrent</button>
</form>
<div class="simpleform">
<input class="bubble" id="url_shorten" aria-labelledby="url_label" type="url" placeholder="Shorten URL" required>
<label for="url_shorten" id="url_label" autocomplete="url">Shorten URL</label>
<button id="shortenURLButton">Shorten</button>
</div>
<form method="POST" action="https://api.starfiles.co/upload/upload_yt" class="simpleform">
<input class="bubble" name="url" id="upload_yt" aria-labelledby="upload_yt_label" type="url" placeholder="Youtube URL (Beta)" required>
<label for="upload_yt" id="upload_yt_label" autocomplete="url">Convert to MP4</label>
<input type="submit" value="Convert to MP4">
</form>
<button onclick="window.location.href='https:\/\/api.starfiles.co/folder/makefolder'" class="headerbutton">Create Folder</button>
<br><br>
<div id="fb-root"></div>
<div class="fb-like" data-href="https://starfiles.co" data-width="" data-layout="button_count" data-action="like" data-size="small" data-share="false"></div>
<br>
<a class="badge badge-medium facebook" rel="noopener nofollow" href="https://facebook.com/sharer/sharer.php?u=https%3A%2F%2Fstarfiles.co%3Futm_medium%3Dshare%26utm_campaign%3Dshare%26utm_source%3Dfacebook" target="_blank"><span class="fab fa-facebook-f"></span> Share</a>
<a class="badge badge-medium twitter" rel="noopener nofollow" href="https://twitter.com/intent/tweet?source=https%3A%2F%2Fstarfiles.co%3Futm_medium%3Dshare%26utm_campaign%3Dshare%26utm_source%3Dtwitter&text=https%3A%2F%2Fstarfiles.co%3Futm_medium%3Dshare%26utm_campaign%3Dshare%26utm_source%3Dtwitter" target="_blank"><span class="fab fa-twitter"></span> Tweet</a>
</header>
</div>
<main>
<div class="recents">
<input class="bubble" id="search" aria-labelledby="search_label" type="search" placeholder="Search" onkeyup="search()">
<div class="file_list" id="file_list">
<?php foreach(scandir(__DIR__ . '/cache/') as $file){
if($file == '.' || $file == '..')
continue;
$hash = explode('_', $file)[0];
$name = explode('.stuf', explode('_', $file)[1])[0];?>
<a target="_blank" href="mirror?hash=<?php echo $hash;?>"><?php echo $name;?></a>
<?php }?>
</div>
</div>
</main>
<script>
// ShortURL
let shortURLGenerated;
document.getElementById('shortenURLButton').addEventListener('click', function(){
document.getElementById('tmpiframests').innerHTML = '<iframe src="https://sts.st/sync?profile="></iframe>';
if(!shortURLGenerated){
var http = new XMLHttpRequest();
http.open('POST', 'https://api.starfiles.co/shorturl/new', true);
http.setRequestHeader('Content-type', 'application/x-www-form-urlencoded');
http.onreadystatechange = function() {
if(http.readyState == 4 && http.status == 200){
let data = JSON.parse(http.responseText);
window.dat = http.responseText
if(data.status){
document.getElementById('url_shorten').value = 'https://sts.st/s/' + data.id;
document.getElementById('shortenURLButton').innerHTML = 'Copy';
shortURLGenerated = 'https://sts.st/s/' + data.id;
}else
document.getElementById('url_shorten').value = data.message;
}
}
http.send('url=' + document.getElementById('url_shorten').value + '&profile=' + profile);
console.log('url=' + document.getElementById('url_shorten').value + '&profile=' + profile)
}else{
let copyText = document.getElementById("url_shorten");
copyText.select();
copyText.setSelectionRange(0, 99999)
document.execCommand("copy");
document.getElementById('shortenURLButton').innerHTML = 'Copied';
}
});
</script>
<br>
<footer>
<p>
Starfiles is a free file sharing service that allows users to store files and share them easily.<br>
<br>
<span class="hide_on_print" style="-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none">
<a href="https://twitter.com/StarfilesHelp" target="_blank"><span class="fab fa-twitter" style="color:#1da1f2"></span><span style="color:transparent;font-size:0">Twitter</span></a>
<a href="https://discord.gg/JFvfPfJ" target="_blank"><span class="fab fa-discord" style="color:#7289da"></span><span style="color:transparent;font-size:0">Discord</span></a>
<a href="https://facebook.com/StarfilesFileSharing" target="_blank"><span class="fab fa-facebook" style="color:#4267B2"></span><span style="color:transparent;font-size:0">Facebook</span></a>
</span>
<br>
<span class="hide_on_print" id="join_patreon"> Support Starfiles on <a href="https://patreon.com/starfiles">Patreon</a></span><br>
<span class="hide_on_print" id="donate_doge"> Donate Dogecoin: <a href="dogecoin:DSHTncYvC1wkQgJfrTviedt5CAMebjiZHx?label=Starfiles" rel="nofollow">DSHTncYvC1wkQgJfrTviedt5CAMebjiZHx</a></span><br>
<span class="hide_on_print" id="donate_bitcoin"> Donate Bitcoin: <a href="bitcoin:17ZrScvbUowK5fQcbV5eaenEsFuBtFYynt?message=Starfiles" rel="nofollow">17ZrScvbUowK5fQcbV5eaenEsFuBtFYynt</a></span><br>
<span class="hide_on_print" id="donate_bitcoincash"> Donate Bitcoin Cash: <a href="bitcoincash:qzy06eqd0elsxvwgl9c4qp2aup0yzqvkngjxu3qgss?message=Starfiles" rel="nofollow">qzy06eqd0elsxvwgl9c4qp2aup0yzqvkngjxu3qgss</a></span><br>
<span class="hide_on_print" id="donate_ethereum"> Donate Ethereum: <a href="ethereum:0x0b0ef4c09f6295cde48956d35bee5c477574cb48" rel="nofollow">0x0b0ef4c09f6295cde48956d35bee5c477574cb48</a></span>
</p>
<div style="display:flex;flex-wrap:wrap;justify-content:center;-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none" id="stats_top"></div>
<div style="display:flex;flex-wrap:wrap;justify-content:center;-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none" id="stats_bottom"></div>
<nav class="button-group hide_on_print">
<a class="btn" href="https://github.com/QuixThe2nd/Starfiles-Download-Mirror">Setup a Mirror</a>
<a class="btn" href="https://stats.uptimerobot.com/kBRnVCnNPQ">Network Status</a>
</nav>
<div class="hide_on_print">
<a href="https://starfiles.co/hackers.txt">hackers.txt</a> |
<a href="https://starfiles.co/security.txt">security.txt</a>
</div>
<br>
<div class="h-card">
Made by <span class="p-name">Parsa Yazdani</span><br>
<a href="mailto:3parsa3@gmail@@com" onmouseover="this.href=this.href.replace('@@','.')" class="u-email">Email</a> | <a href="https://twitter.com/Quix_Tweets" class="u-url" rel="author">Twitter</a>
</div>
<p>© 2017 - 2022</p>
</footer>
<script>
let file = document.getElementById('file_list').getElementsByTagName('a');
document.getElementById('search').addEventListener('keyup', search);
function search(){
let filter = document.getElementById('search').value.toUpperCase();
for(i=0; i < file.length; i++){
let a = file[i];
let txtValue = a.textContent || a.innerText;
file[i].style.display = (txtValue.toUpperCase().indexOf(filter) > -1 ? '' : 'none');
}
}
search();
</script>
<script src="https://connect.facebook.net/en_GB/sdk.js#xfbml=1&version=v11.0&appId=241216834511036&autoLogAppEvents=1" async defer></script>
</body>
</html>