Repository navigation
Expand file tree
/
Copy pathCadmin.html
More file actions
161 lines (140 loc) · 3.43 KB
/
Copy pathCadmin.html
File metadata and controls
161 lines (140 loc) · 3.43 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Admin Controls - zxobuxg</title>
<!-- ✅ Font Poppins -->
<link href="https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap" rel="stylesheet" />
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'Poppins', sans-serif;
}
html, body {
height: 100%;
background: #000;
overflow: hidden;
color: #fff;
}
.overlay {
position: fixed;
top: 0; left: 0;
width: 100%; height: 100%;
z-index: -1;
}
.overlay video {
width: 100%;
height: 100%;
object-fit: cover;
}
.overlay::after {
content: "";
position: absolute;
top: 0; left: 0;
width: 100%; height: 100%;
background: rgba(0, 0, 0, 0.6);
}
.container {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
background: rgba(255, 255, 255, 0.05);
backdrop-filter: blur(10px);
padding: 40px;
border-radius: 20px;
width: 90%;
max-width: 400px;
text-align: center;
box-shadow: 0 0 30px rgba(0, 255, 255, 0.4);
}
h1 {
font-size: 26px;
color: #0ff;
margin-bottom: 10px;
text-shadow: 0 0 10px #0ff;
}
p {
font-size: 14px;
color: #ddd;
margin-bottom: 20px;
}
input {
width: 100%;
padding: 12px;
margin: 10px 0;
border: none;
border-radius: 10px;
background: rgba(255, 255, 255, 0.1);
color: white;
font-size: 16px;
box-shadow: 0 0 10px #0ff inset;
outline: none;
}
input::placeholder {
color: #ccc;
}
button {
background: transparent;
border: 2px solid #0ff;
color: #0ff;
padding: 10px 20px;
border-radius: 10px;
font-weight: bold;
cursor: pointer;
box-shadow: 0 0 15px #0ff, 0 0 30px #0ff inset;
margin-top: 15px;
transition: 0.3s;
}
button:hover {
background: #0ff;
color: black;
box-shadow: 0 0 20px #0ff, 0 0 40px #0ff;
}
.logout-btn {
position: absolute;
top: 15px;
right: 20px;
z-index: 10;
padding: 8px 16px;
font-size: 14px;
}
#message {
margin-top: 15px;
font-weight: bold;
color: #0f0;
}
</style>
<script>
// ✅ Redirect kalau bukan admin
if (sessionStorage.getItem('isAdmin') !== 'true') {
window.location.href = 'index.html';
}
</script>
</head>
<body>
<!-- ✅ Video background -->
<div class="overlay">
<video autoplay muted loop>
<source src="https://files.catbox.moe/1krfis.mp4" type="video/mp4" />
</video>
</div>
<!-- ✅ Logout Button -->
<button id="logoutBtn" class="logout-btn">Logout</button>
<!-- ✅ Admin Card -->
<div class="container">
<h1>Zxobuxg Controls</h1>
<p>Tambahkan user baru untuk mengakses web</p>
<input type="text" id="newEmail" placeholder="Email user baru...">
<input type="text" id="newPassword" placeholder="Password user baru...">
<input type="number" id="waktu" placeholder="Masa aktif (dalam hari)...">
<button id="addUserBtn">Tambah Akun</button>
<div id="message"></div>
</div>
<!-- ✅ Kekalkan script -->
<script src="cadmin.js"></script>
</body>
</html>