-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathreplicator.php
88 lines (53 loc) · 1.57 KB
/
replicator.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
<?php
$dnaurl = "https://raw.githubusercontent.com/LafeLabs/trashmagicmedia/main/data/dna.txt";
if(isset($_GET["dna"])){
$dnaurl = $_GET["dna"];
}
$baseurl = explode("data/",$dnaurl)[0];
$dnaraw = file_get_contents($dnaurl);
$dna = json_decode($dnaraw);
mkdir("data");
mkdir("php");
mkdir("images");
mkdir("media");
mkdir("web");
mkdir("scrolls");
mkdir("jscode");
mkdir("hyperlink");
mkdir("iconsymbols");
mkdir("maps");
mkdir("symbolfeed");
copy("https://raw.githubusercontent.com/LafeLabs/trashmagicmedia/main/hyperlink/php/replicator.txt","hyperlink/replicator.php");
copy("https://raw.githubusercontent.com/LafeLabs/trashmagicmedia/main/php/replicator.txt","replicator.php");
foreach($dna->html as $value){
copy($baseurl.$value,$value);
}
foreach($dna->data as $value){
copy($baseurl."data/".$value,"data/".$value);
}
foreach($dna->scrolls as $value){
copy($baseurl."scrolls/".$value,"scrolls/".$value);
}
foreach($dna->php as $value){
copy($baseurl."php/".$value,"php/".$value);
copy($baseurl."php/".$value,explode(".",$value)[0].".php");
}
foreach($dna->web as $value){
copy($baseurl."web/".$value,"web/".$value);
}
foreach($dna->maps as $value){
copy($baseurl."maps/".$value,"maps/".$value);
}
foreach($dna->javascript as $value){
copy($baseurl."jscode/".$value,"jscode/".$value);
}
foreach($dna->iconsymbols as $value){
copy($baseurl."iconsymbols/".$value,"iconsymbols/".$value);
}
?>
<a href = "index.html">CLICK TO GO TO PAGE</a>
<style>
a{
font-size:3em;
}
</style>