-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.php
476 lines (358 loc) · 15.8 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
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Temporary Share</title>
<meta content="Temporary Cloud Storage and File Sharing Service poweredby tempCloud" name="description">
<meta content="tempcloud,Bhuvan,bhuvan s m,Temporary Cloud, File sharing online" name="keywords">
<meta name="viewport"content="width=device-width, initial-scale=1, shrink-to-fit=no">
<link href="assets/img/Logo.png" rel="icon">
<link href="assets/img/Logo.png" rel="apple-touch-icon">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script src='https://kit.fontawesome.com/a076d05399.js'></script>
<link href="https://fonts.googleapis.com/css?family=Open+Sans:300,300i,400,400i,600,600i,700,700i|Montserrat:300,400,500,700" rel="stylesheet">
<link href="assets/vendor/bootstrap/css/bootstrap.min.css" rel="stylesheet">
<link href="assets/vendor/font-awesome/css/font-awesome.min.css" rel="stylesheet">
<link href="assets/vendor/animate.css/animate.min.css" rel="stylesheet">
<link href="assets/vendor/ionicons/css/ionicons.min.css" rel="stylesheet">
<link href="assets/vendor/owl.carousel/assets/owl.carousel.min.css" rel="stylesheet">
<link href="assets/vendor/venobox/venobox.css" rel="stylesheet">
<link href="assets/css/style.css" rel="stylesheet">
<link href="indexStyles.css" rel="stylesheet">
<script>
function loader(){
var file = document.getElementById('file-upload').value
var room = document.getElementById('roomid').value
if(file && room){
var load = document.getElementById('load')
load.classList.add('sk-chase')
}
}
$(document).ready(function(){
$("#but_upload").click(function(){
var fd = new FormData();
var files = $('#file')[0].files[0];
var filename = files.name;
fd.append('file',files);
$.ajax({
url:"https://tempcloud.ml/apiup.php",
method:"POST",
data : fd,
contentType: false,
processData: false,
success:function(data){
var link = "https://tempcloud.ml/apidown.php?name="+data+"&dname="+filename;
getlink(link);
}
})
});
});
</script>
</head>
<body>
<header id="header" class="fixed-top">
<div class="container">
<div class="logo float-left">
<h1 class="text-light"><a href="https://btemp.ml"><span>Btemp</span></a></h1>
<small style="color: #fff">(Powered by <a href="https://tempcloud.ml">tempCloud</a>)</small>
</div>
<nav class="main-nav float-right d-none d-lg-block">
<ul>
<li class="active"><a href="#intro">Home</a></li>
<li><a href="#about">How it works</a></li>
<li><a href="#upload">Upload</a></li>
<li><a href="#services">Services</a></li>
<li><a href="#contact">Contact Us</a></li>
</ul>
</nav>
</div>
</header>
<section id="intro" class="clearfix">
<div class="container">
<div class="intro-img">
<img src="assets/img/fast.png" style="border-radius:50%;" alt="" class="img-fluid">
</div>
<div class="intro-info">
<h4 style="color:white; font-family: Verdana, Geneva, Tahoma, sans-serif;" >Upload your files<br> and get access to it instantly which enables you to share the file with others </h4>
<div>
<a href="#upload" class="btn-get-started scrollto">Upload</a>
</div>
</div>
</div>
</section>
<br>
<main id="main">
<section id="about">
<div class="container">
<header class="section-header">
<h3>How it works</h3>
<p>Sharing files on Btemp is made much easier than ever</p>
</header>
<div class="row about-container">
<div class="col-lg-6 content order-lg-1 order-2">
<p>
Just follow the only step to share your files
</p>
<div class="icon-box wow fadeInUp">
<div class="icon"><i class="fa fa-cloud-upload"></i></div>
<h4 class="title"><a href="#upload">Upload</a></h4>
<p class="description"> Choose your file, then upload to our cloud.<br>We'll provide you a link which can be used <br> to access the file you just uploaded.</p>
</div>
<div class="icon-box wow fadeInUp" data-wow-delay="0.4s">
<div class="icon"><i class="fa fa-exclamation-circle"></i></div>
<h4 class="title">Note</h4>
<p class="description">This is a temporary cloud service, your files will be deleted if not downloaded for last <b>7 days</b></p>
</div>
</div>
<div class="col-lg-6 background order-lg-2 order-1 wow fadeInUp">
<img src="assets/img/main.png" class="img-fluid" alt="">
</div>
</div>
<section>
<div class="container">
<div class="row justify-content-center">
<div class="col-lg-6 content order-lg-1 order-2" id="upload">
<h3 id="upload"><b>Upload your file here!</b></h3>
<form action="" method="POST" enctype="multipart/form-data">
<div class="modal-body">
<input type="file" id="file" name="file" /><br><br>
<input type="button" class="btn btn-primary" value="Upload" data-dismiss="modal" role="button" data-toggle="modal" data-target="#link" id="but_upload">
</div>
</form>
</div>
</div>
</div>
</section>
<hr>
<div class="row about-extra">
<div class="col-lg-6 wow fadeInLeft">
<img src="assets/img/sec.png" class="img-fluid" alt="">
</div>
<div class="col-lg-6 wow fadeInUp pt-5 pt-lg-0">
<h4>Highly secure file transfer</h4>
<p>
Your files are always safe with us
</p>
<p>
We ensure that your files are accessible only by the link provided by us.
</p>
</div>
</div>
<div class="row about-extra">
<div class="col-lg-6 wow fadeInUp order-1 order-lg-2">
<img src="assets/img/hiw.png" style="border-radius:50%;" class="img-fluid" alt="">
</div>
<div class="col-lg-6 wow fadeInUp pt-4 pt-lg-0 order-2 order-lg-1">
<h4>Fastest and most Efficient file transfer</h4>
<p>
Sharing files on Btemp and generating a shareable link is done within no time.
</p>
<p>
Speed guaranteed with our servers having over 350Mbps network connection
</p>
<p>
99.99% server uptime as promised
</p>
</div>
</div>
</div>
</section>
<div id="services"></div>
<section id="why-us" class="wow fadeIn">
<div class="container">
<header class="section-header">
<h3>Why choose us?</h3>
<p>Sharing files on Btemp is easier than ever</p>
</header>
<div class="row row-eq-height justify-content-center">
<div class="col-lg-4 mb-4">
<div class="card wow bounceInUp">
<i class="fa fa-fast-forward"></i>
<div class="card-body">
<h5 class="card-title">Fast</h5>
<p class="card-text">Speed guaranteed with our servers having over 350Mbps network connection</p>
</div>
</div>
</div>
<div class="col-lg-4 mb-4">
<div class="card wow bounceInUp">
<i class="fa fa-lock"></i>
<div class="card-body">
<h5 class="card-title">Secure</h5>
<p class="card-text">We follow highest safety standards to ensure that your files are safe with us</p>
</div>
</div>
</div>
<div class="col-lg-4 mb-4">
<div class="card wow bounceInUp">
<i class="fa fa-tachometer"></i>
<div class="card-body">
<h5 class="card-title">Reliable</h5>
<p class="card-text">99.99% server uptime as promised</p>
</div>
</div>
</div>
</div>
<div class="row counters">
<div class="col-lg-4 col-6 text-center">
<span><?php echo $loadtime[0]*100 ?>%</span>
<p>Server load</p>
</div>
<div class="col-lg-4 col-6 text-center">
<span><?php echo shapeSpace_disk_usage(); ?></span>
<p>Disk Usage</p>
</div>
<div class="col-lg-4 col-12 text-center">
<span><?php echo shapeSpace_server_uptime(); ?> Hours</span>
<p>Server uptime</p>
</div>
</div>
</div>
</section>
<section id="contact">
<div class="container-fluid">
<div class="section-header">
<h3>Reach out to us</h3>
</div>
<div class="row wow fadeInUp">
<div class="col-lg-12">
<div class="row">
<div class="col-md-5 info">
<i class="ion-ios-location-outline"></i>
<p>Mysuru, Karnataka - 570023</p>
</div>
<div class="col-md-4 info">
<i class="ion-ios-email-outline"></i>
<p><a href="mailto:me@bhuvan.me">me@bhuvan.me</a></p>
</div>
<div class="col-md-3 info">
<i class="ion-ios-telephone-outline"></i>
<p><a href="tel:9740411323">+91 9740411323</a></p>
</div>
</div>
<!-- <div class="form">
<form action="mail.php" method="post" role="form" class="php-email-form">
<div class="form-row">
<div class="form-group col-lg-6">
<input type="text" name="name" class="form-control" id="name" placeholder="Your Name" data-rule="minlen:4" data-msg="Please enter at least 4 chars" />
<div class="validate"></div>
</div>
<div class="form-group col-lg-6">
<input type="email" class="form-control" name="from" id="email" placeholder="Your Email" data-rule="email" data-msg="Please enter a valid email" />
<div class="validate"></div>
</div>
</div>
<div class="form-group">
<input type="text" class="form-control" name="subject" id="subject" placeholder="Subject" data-rule="minlen:4" data-msg="Please enter at least 8 chars of subject" />
<div class="validate"></div>
</div>
<div class="form-group">
<textarea class="form-control" name="body" rows="5" data-rule="required" data-msg="Please write something for us" placeholder="Message"></textarea>
<div class="validate"></div>
</div>
<div class="mb-3">
<div class="loading">Loading</div>
<div class="error-message"></div>
<div class="sent-message">Your message has been sent. Thank you!</div>
</div>
<div class="text-center"><button type="submit" title="Send Message">Send Message</button></div>
</form>
</div> -->
</div>
</div>
</div>
</section>
</main>
<footer id="footer">
<div class="footer-top">
<div class="container">
<div class="row">
<div class="col-lg-4 col-md-6 footer-info">
<h3>Btemp</h3>
<p>Temporary Cloud Storage and Service powered by <a href="https://tempcloud.ml"><strong>tempCloud</strong></a></p>
</div>
<div class="col-lg-4 col-md-6 footer-links">
<h4>Useful Links</h4>
<ul>
<li class="active"><a href="#intro">Home</a></li>
<li><a href="#about">How it works</a></li>
<li><a href="#upload">Upload</a></li>
<li><a href="#services">Services</a></li>
<li><a href="#contact">Contact Us</a></li>
</ul>
</div>
<div class="col-lg-4 col-md-6 footer-contact">
<h4>Contact Us</h4>
<p>
<strong>Phone:</strong> +919740411323<br>
<strong>Email:</strong> me@bhuvan.me<br>
</p>
<div class="social-links">
<a target="_blank" href="https://twitter.com/BhuvanSM1" class="twitter"><i class="fa fa-twitter"></i></a>
<a target="_blank" href="https://www.instagram.com/bhuviism/" class="instagram"><i class="fa fa-instagram"></i></a>
<a target="_blank" href="https://www.instagram.com/bhuviism/" class="linkedin"><i class="fa fa-linkedin"></i></a>
<a target="_blank" href="https://github.com/bhuvism" class="GitHib"><i class="fa fa-github"></i></a>
</div>
</div>
</div>
</div>
</div>
<div class="container">
<div class="copyright">
</div>
<div class="credits">
Developed by <a href="https://bhuvan.me/">Bhuvan S M</a><br>
</div>
</div>
</footer>
<a href="#" class="back-to-top"><i class="fa fa-chevron-up"></i></a>
<div class="modal fade" id="link" tabindex="-1" role="dialog" aria-labelledby="exampleModalCenterTitle" aria-hidden="true">
<div class="modal-dialog modal-dialog-centered" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="exampleModalCenterTitle"> Here's your shareable link </h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<textarea name="text" class="form-control" id="mylink"></textarea>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
<button type="submit" class="btn btn-success" name="copy_btn" data-dismiss="modal" onclick="copytoCB2()">Copy to clipboard</button>
</div>
</div>
</div>
</div>
<script>
if ('serviceWorker' in navigator) {
console.log("Will the service worker register?");
navigator.serviceWorker.register('service-worker.js')
.then(function(reg){
console.log("Yes, it did.");
}).catch(function(err) {
console.log("No it didn't. This happened: ", err)
});
}
</script>
<script src="btemp.js" defer></script>
<script src="https://cdn.jsdelivr.net/npm/darkmode-js@1.5.5/lib/darkmode-js.min.js"></script>
<script src="https://code.jquery.com/jquery-3.4.1.slim.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/popper.js@1.16.0/dist/umd/popper.min.js"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/js/bootstrap.min.js"></script>
<script src="assets/vendor/jquery/jquery.min.js"></script>
<script src="assets/vendor/bootstrap/js/bootstrap.bundle.min.js"></script>
<script src="assets/vendor/jquery.easing/jquery.easing.min.js"></script>
<script src="assets/vendor/php-email-form/validate.js"></script>
<script src="assets/vendor/counterup/counterup.min.js"></script>
<script src="assets/vendor/mobile-nav/mobile-nav.js"></script>
<script src="assets/vendor/wow/wow.min.js"></script>
<script src="assets/vendor/isotope-layout/isotope.pkgd.min.js"></script>
<script src="assets/vendor/owl.carousel/owl.carousel.min.js"></script>
<script src="assets/vendor/waypoints/jquery.waypoints.min.js"></script>
<script src="assets/vendor/venobox/venobox.min.js"></script>
<script src="assets/js/main.js"></script>
<script src="https://cdn.jsdelivr.net/npm/bs-custom-file-input/dist/bs-custom-file-input.min.js"></script>
</body>
</html>