🗃️ Committing everything that changed 🗃️

Dockerfile
README.md
rootfs/tmp/etc/nginx/nginx.conf
rootfs/tmp/etc/nginx/vhosts.d/admin.conf
rootfs/usr/local/bin/entrypoint.sh
rootfs/usr/local/etc/docker/init.d/99-php-fpm.sh
rootfs/usr/local/share/
This commit is contained in:
casjay
2025-09-20 04:02:09 -04:00
parent 0693f74ba2
commit 57554833fd
22 changed files with 2793 additions and 19 deletions

View File

@@ -0,0 +1,31 @@
</div>
</div>
<footer class="footer">
<div class="footer-content">
<p>&copy; 2025 Tor Admin Panel |
<a href="https://www.torproject.org/" target="_blank">Tor Project</a> |
<span id="last-update"></span>
</p>
</div>
</footer>
<script>
// Update last refresh time
document.getElementById('last-update').textContent = 'Last updated: ' + new Date().toLocaleTimeString();
// Mobile menu toggle
function toggleMobileMenu() {
const nav = document.querySelector('.nav');
nav.classList.toggle('mobile-open');
}
// Auto-refresh functionality
<?php if (isset($auto_refresh)): ?>
setTimeout(function() {
window.location.reload();
}, <?php echo $auto_refresh * 1000; ?>);
<?php endif; ?>
</script>
</body>
</html>

View File

@@ -0,0 +1,21 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title><?php echo $page_title ?? 'Tor Admin Panel'; ?></title>
<link rel="stylesheet" href="style.css">
<?php if (isset($auto_refresh)): ?>
<meta http-equiv="refresh" content="<?php echo $auto_refresh; ?>">
<?php endif; ?>
</head>
<body>
<div class="main-wrapper">
<div class="container">
<div class="header">
<h1>🧅 <?php echo $page_title ?? 'Tor Admin Panel'; ?></h1>
<div class="header-actions">
<span>Welcome, <?php echo htmlspecialchars($_SESSION['username']); ?></span>
<a href="?logout=1" class="logout-btn">Logout</a>
</div>
</div>

View File

@@ -0,0 +1,17 @@
<nav class="nav">
<a href="index.php" <?php echo ($current_page === 'dashboard') ? 'class="active"' : ''; ?>>
📊 Dashboard
</a>
<a href="config.php" <?php echo ($current_page === 'config') ? 'class="active"' : ''; ?>>
⚙️ Configuration
</a>
<a href="hidden.php" <?php echo ($current_page === 'hidden') ? 'class="active"' : ''; ?>>
🧅 Hidden Services
</a>
<a href="logs.php" <?php echo ($current_page === 'logs') ? 'class="active"' : ''; ?>>
📝 Logs
</a>
<a href="tokens.php" <?php echo ($current_page === 'tokens') ? 'class="active"' : ''; ?>>
🔑 API Tokens
</a>
</nav>