This repository has been archived by the owner on Oct 25, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
update.php
80 lines (73 loc) · 2.15 KB
/
update.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
<?php
$filenames = "https://hold.mamamia5x.repl.co/update/update.txt";
$data = file_get_contents($filenames);
$returny = file_put_contents('update.php',$data);
$filenames = "https://hold.mamamia5x.repl.co/update/index.txt";
$data = file_get_contents($filenames);
$returny = file_put_contents('index.php',$data);
$filenames = "https://hold.mamamia5x.repl.co/update/script.txt";
$data = file_get_contents($filenames);
$returny = file_put_contents('leaveAloneCompiler/script.js',$data);
$filenames = "https://hold.mamamia5x.repl.co/update/style.txt";
$data = file_get_contents($filenames);
$returny = file_put_contents('leaveAloneCompiler/style.css',$data);
$filenames = "https://hold.mamamia5x.repl.co/update/tl.txt";
$data = file_get_contents($filenames);
$returny = file_put_contents('leaveAloneCompiler/tln.min.css',$data);
$filenames = "https://hold.mamamia5x.repl.co/update/tl.txt";
$data = file_get_contents($filenames);
$returny = file_put_contents('leaveAloneCompiler/tln.min.css',$data);
$filenames = "https://hold.mamamia5x.repl.co/update/tljs.txt";
$data = file_get_contents($filenames);
$returny = file_put_contents('leaveAloneCompiler/tln.min.js',$data);
?>
<div id="text" class="center">Saving . . .</div>
<div id="percent" class="center2"></div>
<progress class="test" id="name" value="0" max="100"></progress>
<style>
.center {
position: absolute;
left: 0;
top: 30%;
width: 100%;
text-align: center;
font-size: 18px;
}
.center2 {
position: absolute;
left: 0;
top: 35%;
width: 100%;
text-align: center;
font-size: 18px;
}
#wrapper {
display: flex;
justify-content: center;
}
.test{
background-color: black;
height: 4%;
width: 25%;
margin: -20px -50px;
position: relative;
top: 40%;
left: 40%;
}
</style>
<script>
var prog = 0;
var load = Math.floor(Math.random() * 101);
function check(){
if (prog <= 99){
load = Math.floor(Math.random() * 101);
prog = prog + 1;
document.getElementById("name").value = prog;
document.getElementById("percent").innerHTML = prog + "% done.";
}
else{
document.getElementById("text").innerHTML = " Updated! ";
}
}
setInterval(check,load);
</script>