-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdeluser.php
More file actions
36 lines (35 loc) · 1.15 KB
/
deluser.php
File metadata and controls
36 lines (35 loc) · 1.15 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
<?php
$ip = $_SERVER['REMOTE_ADDR'];
$lines = file('./login.encrypt');
$before = $lines[0];
if ($ip == $before){
echo "Berhasil login";
}
else {
header("location: ./login.php");
}?><html>
<head>
<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" />
</head>
<body>
<script> $(document).ready(function () {
$('select').selectize({
sortField: 'text'
});
});</script>
<form method="post" action="delnext.php">
<select id="select-state" name="path" placeholder="Pick a state...">
<?php
include './path.php';
$lines = file("$pathconfig");
foreach ($lines as $line_num => $line){
print "
" . $line . "
";
}
?>
</select><button type="submit">Hapus Data</button><form>
</body>
</html>