Files
Unified_Dashboard_Suite_Go/web/image-hoster/admin.html
T

62 lines
2.1 KiB
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Admin Panel - Host-It-Live Pro</title>
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css" rel="stylesheet">
<link rel="stylesheet" href="/admin.css">
</head>
<body>
<div class="container">
<!-- Login -->
<div id="loginPanel">
<h2><i class="fas fa-user-shield"></i> Admin Access</h2>
<input type="password" id="pwd" placeholder="Enter Password">
<button onclick="login()">Login</button>
<p id="errorMsg" style="color:var(--danger); display:none; margin-top:10px;">Invalid Password</p>
</div>
<!-- Dashboard -->
<div id="dashboard">
<div class="header">
<h1>Server Overview</h1>
<button onclick="loadStats()" style="width:auto; padding:8px 20px;"><i class="fas fa-sync"></i> Refresh</button>
</div>
<div style="margin-bottom: 30px;">
<div class="stat-card">
<div id="totalSessions" class="stat-value">0</div>
<div>Active Sessions</div>
</div>
<div class="stat-card">
<div id="totalReqs" class="stat-value">0</div>
<div>Total Requests</div>
</div>
<div class="stat-card">
<div id="totalBytes" class="stat-value">0 MB</div>
<div>Data Transferred</div>
</div>
</div>
<table id="sessionTable">
<thead>
<tr>
<th>ID</th>
<th>Mode</th>
<th>Created</th>
<th>IP / User Agent</th>
<th>Traffic</th>
<th>Tunnel / Path</th>
</tr>
</thead>
<tbody></tbody>
</table>
</div>
</div>
<script src="/admin.js" defer></script>
</body>
</html>