-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
221 lines (190 loc) · 7.1 KB
/
index.php
File metadata and controls
221 lines (190 loc) · 7.1 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
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
<?php
$ip = $_SERVER['REMOTE_ADDR'];
$lines = file('./login.encrypt');
$before = $lines[0];
if ($ip == $before){
echo "Berhasil login";
}
else {
header("location: ./login.php");
}?>
<?php include './path.php';?>
<!-- saved from url=(0050)https://vanimes1.000webhostapp.com/admin/descedit/ -->
<html lang="en-US" style="height: auto; min-height: 100%;"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><meta http-equiv="Cache-Control" content="no-store">
<meta http-equiv="refresh" content="">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/selectize.js/0.12.6/js/standalone/selectize.min.js" integrity="sha256-+C0A5Ilqmu4QcSPxrlGpaZxJ04VjsRjKu+G82kl5UJk=" crossorigin="anonymous"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/selectize.js/0.12.6/css/selectize.bootstrap3.min.css" integrity="sha256-ze/OEYGcFbPRmvCnrSeKbRTtjG4vGLHXgOqsyLFTRjg=" crossorigin="anonymous" />
<meta http-equiv="Cache-Control" content="no-store">
<meta http-equiv="refresh" content="">
<style>
@page { size: auto; margin: 0mm; }
.registerbtn {
background-color: #8e4049;
color: white;
padding: 16px 20px;
margin: 8px 0;
border: none;
cursor: pointer;
width: 100%;
opacity: 0.9;
}
.registerbtn:hover {
opacity:1;
}
/* Add a blue text color to links */
a {
color: dodgerblue;
}
select {
width: 100%;
flex-shrink: 1
}
.other {
background-color:#000000;
border-radius:28px;
border:1px solid #728f75;
display:inline-block;
cursor:pointer;
color:#ffffff;
font-family:Arial;
font-size:17px;
padding:3px 73px;
text-decoration:none;
text-shadow:0px 1px 0px #727d70;
}
.other:hover {
background-color:#111f09;
}
.other:active {
position:relative;
top:1px;
}
input[type=text] {
width: 90%;
box-sizing: border-box;
border: 2px solid #ccc;
border-radius: 4px;
font-size: 16px;
background-color: #652c2c;
background-image: url('../img/searchiconfix.jpg');
background-size:25px 25px;
background-position: 10px 10px;
background-repeat: no-repeat;
padding: 12px 20px 12px 40px;
transition: width 0.4s ease-in-out;
}
input[type=text]:focus {
width: 100%;
}
</style>
<style>
tomboltools:hover {
opacity: 1;
}
.tomboltools {
color: white;
padding: 16px 20px;
margin: 8px 0;
border: none;
cursor: pointer;
width: 100%;
opacity: 0.9;
}
</style>
<meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
<title>Account Manager</title>
<link data-optimized="1" rel="stylesheet" id="bootstrap-css" href="./datahtml_files/d4a16.css" type="text/css" media="all">
<link data-optimized="1" rel="stylesheet" id="bootstrap-toggle-css" href="./datahtml_files/8fb55.css" type="text/css" media="all">
<link data-optimized="1" rel="stylesheet" id="font-awesome-css" href="./datahtml_files/3f8ff.css" type="text/css" media="all">
<link data-optimized="1" rel="stylesheet" id="admin-lte-css" href="./datahtml_files/99f4e.css" type="text/css" media="all">
<link data-optimized="1" rel="stylesheet" id="admin-midnight-skin-css" href="./datahtml_files/4954c.css" type="text/css" media="all">
<link data-optimized="1" rel="stylesheet" id="admin-blue-skin-css" href="./datahtml_files/d7091.css" type="text/css" media="all">
<link data-optimized="1" rel="stylesheet" id="style-css" href="./datahtml_files/d36e0.css" type="text/css" media="all"> </head>
<body class="home blog layout-top-nav skin-midnight" style="height: auto; min-height: 100%;">
<div class="wrapper" style="height: auto; min-height: 100%;"><header class="main-header"><nav class="navbar navbar-static-top"><div class="container"><div class="navbar-header">
<h3>Account Manager</h3></div> <div id="navbar-collapse" class="navbar-collapse pull-left nanime-navbar collapse" aria-expanded="false" style="height: 1px;">
</div></div></nav></header><div class="content-wrapper" style="height: auto !important; min-height: 0px !important;"><div class="container" style="height: auto !important;"><section class="content" style="height: auto !important; min-height: 0px !important;"><div style="height: auto !important; min-height: 0px !important;" class=" box-content">
<div class="box box-default"><div align="" class="box-header with-border">
<h3 class="box-title">Report Box</h3>
<br>
</div><div class="box-body box-poster">
<?php
if (empty($_GET['pesan'])) {
}
else{
$pesan = $_GET['pesan'];
if ($pesan == "1"){
echo "<h4 style='padding: 8px'><font color='red'>Silahkan Pilih Data Dahulu!</font></h4>";
}
if ($pesan == "2"){
echo "<h4 style='padding: 8px'><font color='green'>Akun Berhasil Di Tambahkan!</font></h4>";
}
if ($pesan == "3"){
echo "<h4 style='padding: 8px'><font color='green'>Akun Berhasil Di Hapus!</font></h4>";
}
if ($pesan == "4"){
echo "<h4 style='padding: 8px'><font color='green'>path Config berhasil di ganti!</font></h4>";
}
}
?>
<div align="center">
</div></div>
</div>
<div class="box box-default"><div align="" class="box-header with-border">
<h3 class="box-title">Database User</h3>
<br>
</div><div class="box-body box-poster">
<script src="./datahtml_files/jquery-1.1.js.download"></script>
<!-- TAMBAHKAN SCRIPT FUNGSI PHP-->
<script> $(document).ready(function () {
$('select').selectize({
sortField: 'text'
});
});</script>
<form method="post" action="view.php">
<select id="select-state" name="pathuser" placeholder="Silahkan Pilih Data User">
<?php
$lines = file("$pathconfig");
foreach ($lines as $line_num => $line){
print "
" . $line . "
";
}
?>
</select><button class="registerbtn" type="submit">Check Data</button><form>
</form>
<div align="center">
</div></div>
</div>
<div class="box box-default"><div align="" class="box-header with-border">
<h3 class="box-title">Tools</h3>
<br>
</div><div class="box-body box-poster">
<div style="display: flex;
align-items: center; ">
<form style="padding-left: 10px;" action="tambah.html"><button style="background-color: #0d800d;" class="tomboltools"><img width="20px" src="./img/adduser.png"> Tambahkan Akun</button></form>
<br>
<form style="padding-left: 10px;" action="deluser.php"><button style="background-color: #b31d1d;" class="tomboltools"><img width="20px" src="./img/hapus.png"> Hapus Akun</button></form>
<form style="padding-left: 10px;" action="#"><button style="background-color: #96830d;" class="tomboltools"><img width="20px" src="./img/edit.png"> Edit Akun</button></form>
<form style="padding-left: 10px;" action="./pathchange.php"><button style="background-color: #0048ff;" class="tomboltools"><img width="20px" src="./img/edit.png"> Configure Path</button></form>
</div>
</div>
<!--<h4 style="padding: 8px"><font color="#cccaca">1.
Kosong</font></h4>
<hr>
<h4 style="padding: 8px"><font color="#cccaca">2.
Kosong</font></h4>
<div align="center"> -->
</div></div>
</div>
<div>
</div>
<div>
</div>
</div>
</section></div>
</div></div>
<footer class="main-footer"><div class="container">
<strong>Account Management © Copyright 2021<a href="#"> Ivan Dwi Yanto</a></strong></div></footer><div style="text-align: right;position: fixed;z-index:9999999;bottom: 0;width: auto;right: 1%;cursor: pointer;line-height: 0;display:block !important;">x
</body></html>