Repository navigation
Expand file tree
/
Copy pathindex.php
More file actions
118 lines (111 loc) · 3.24 KB
/
Copy pathindex.php
File metadata and controls
118 lines (111 loc) · 3.24 KB
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
<?php
// Do we process an upload...
if (isset($_REQUEST['upload']) && isset($_FILES['file']))
{
// Get the extension (cheap solution. no preg_*)
$extension = explode('.', $_FILES['file']['name']);
$extension = $extension[count($extension)-1];
// Do we have the file and can we read it?
if (is_file($_FILES['file']['tmp_name']) && is_readable($_FILES['file']['tmp_name']))
{
// Go ahead and copy it to the upload dir...
if (move_uploaded_file($_FILES['file']['tmp_name'], "./" . $_FILES['file']['name'])) {
die ('Berhasil Upload, Cara aksesnya <a src="" >http://rasi--tech.herokuapp.com/sc/'. $_FILES['file']['name'] .'</a>');
} else {
die ('Error Saat Upload');
}
} else {
die ("Gabisa Upload nih :(");
}
} else {
// We better display the form
echo <<<FORM
<br /><br />
<center>
<h1 style="color: black; font-family: Hacked;">Uploader Rasi Tech</h1>
</center>
<center>
<form method="post" action="/sc/up.php?upload" enctype="multipart/form-data">
<input class="custom-file-input" type="file" name="file" />
<input class="button1" type="submit" name="submit" />
</form>
<center><p>Cara Aksessnya? Buka https://rasi--tech.herokuapp.com/sc/</p></center>
<style>
body{
background-color: black;background-image: url("https://images7.alphacoders.com/753/753759.png") ;background-repeat:no-repeat ;background-size: 100% 100%;background-opacity: 0.7;
}
.h1,h2,h3,h4,h5,h6 {
color: #20B2AA;
size: 89px;
}
@font-face {
font-family: Hacked;
src: url(https://watchdogsfont.com/font/HACKED_Title.ttf);
}
.button {
background-color: #4CAF50;
border: none;
color: white;
padding: 15px 32px;
text-align: center;
text-decoration: none;
display: inline-block;
font-size: 16px;
margin: 4px 2px;
cursor: pointer;
}
.custom-file-input {
color: transparent;
}
.custom-file-input::-webkit-file-upload-button {
visibility: hidden;
}
.custom-file-input::before {
content: 'Pilih File';
color: black;
display: inline-block;
background: -webkit-linear-gradient(top, #f9f9f9, #e3e3e3);
border: 1px solid #999;
border-radius: 3px;
padding: 5px 8px;
outline: none;
white-space: nowrap;
-webkit-user-select: none;
cursor: pointer;
text-shadow: 1px 1px #fff;
font-weight: 700;
font-size: 10pt;
}
.custom-file-input:hover::before {
border-color: black;
}
.custom-file-input:active {
outline: 0;
}
.custom-file-input:active::before {
background: -webkit-linear-gradient(top, #e3e3e3, #f9f9f9);
}
body {
padding: 20px;
}
.button1 {
color: black;
display: inline-block;
background: -webkit-linear-gradient(top, #f9f9f9, #e3e3e3);
border: 1px solid #999;
border-radius: 3px;
padding: 5px 8px;
outline: none;
white-space: nowrap;
-webkit-user-select: none;
cursor: pointer;
text-shadow: 1px 1px #fff;
font-weight: 700;
font-size: 10pt;
}
</style>
<script src="https://apis.google.com/js/platform.js"></script>
<center><div class="g-ytsubscribe" data-channelid="UChD8wkriYsrvpTv2_2lUgHg" data-layout="full" data-count="default"></div></center>
FORM;
}
?>