mirror of
https://github.com/casjaysdevdocker/tor
synced 2025-10-14 08:02:34 -04:00
🗃️ 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:
31
rootfs/usr/local/share/webpanel/components/footer.php
Normal file
31
rootfs/usr/local/share/webpanel/components/footer.php
Normal file
@@ -0,0 +1,31 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<footer class="footer">
|
||||
<div class="footer-content">
|
||||
<p>© 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>
|
21
rootfs/usr/local/share/webpanel/components/header.php
Normal file
21
rootfs/usr/local/share/webpanel/components/header.php
Normal 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>
|
17
rootfs/usr/local/share/webpanel/components/nav.php
Normal file
17
rootfs/usr/local/share/webpanel/components/nav.php
Normal 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>
|
Reference in New Issue
Block a user