⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.124
Server IP:
50.28.103.30
Server:
Linux host.jcukjv-lwsites.com 4.18.0-553.22.1.el8_10.x86_64 #1 SMP Tue Sep 24 05:16:59 EDT 2024 x86_64
Server Software:
nginx/1.28.0
PHP Version:
8.3.12
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
www
/
wwwroot
/
china-democracyparty.com
/
2
/
admin
/
View File Name :
index.php
<?php require_once __DIR__ . '/../includes/auth.php'; require_once __DIR__ . '/../config/sql.php'; require_once __DIR__ . '/../includes/functions.php'; $page_title = '控制台'; include __DIR__ . '/../includes/header.php'; // Stats $count_posts = $conn->query("SELECT COUNT(*) AS c FROM posts")->fetch_assoc()['c'] ?? 0; $count_pages = $conn->query("SELECT COUNT(*) AS c FROM pages")->fetch_assoc()['c'] ?? 0; ?> <div class="row g-3"> <div class="col-md-6 col-lg-3"> <div class="card"> <div class="card-body"> <div class="fs-1 fw-bold"><?php echo (int)$count_posts; ?></div> <div class="text-muted">文章总数</div> </div> </div> </div> <div class="col-md-6 col-lg-3"> <div class="card"> <div class="card-body"> <div class="fs-1 fw-bold"><?php echo (int)$count_pages; ?></div> <div class="text-muted">页面总数</div> </div> </div> </div> </div> <div class="mt-4 d-flex gap-2"> <a class="btn btn-primary" href="/admin/posts.php">管理文章</a> <a class="btn btn-outline-secondary" href="/admin/pages.php">管理页面</a> <a class="btn btn-outline-secondary" href="/admin/settings.php">站点设置</a> <a class="btn btn-outline-danger ms-auto" href="/admin/logout.php">退出</a> </div> <?php include __DIR__ . '/../includes/footer.php'; ?>