⚝
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
/
public
/
View File Name :
index.php
<?php // public/index.php if (session_status() === PHP_SESSION_NONE) { session_start(); } require_once __DIR__ . '/../config/sql.php'; require_once __DIR__ . '/../includes/functions.php'; $page_title = '首页'; include __DIR__ . '/../includes/header.php'; // Fetch latest posts $posts = []; $stmt = $conn->prepare("SELECT id, title, slug, excerpt, created_at FROM posts WHERE is_published=1 ORDER BY created_at DESC LIMIT 6"); if ($stmt && $stmt->execute()) { $res = $stmt->get_result(); while($row = $res->fetch_assoc()){ $posts[] = $row; } $stmt->close(); } ?> <section class="hero mb-4"> <div class="row align-items-center g-3"> <div class="col-lg-7"> <h1 class="display-6 fw-bold">中国自由民主</h1> <p class="lead">推动自由、民主、法治与人权。我们致力于建设公民社会,倡导言论自由、选举权、司法独立与权力制衡。</p> <a href="/page.php?slug=join" class="btn btn-primary btn-lg">加入我们</a> <a href="/page.php?slug=about" class="btn btn-outline-secondary btn-lg ms-2">了解更多</a> </div> <div class="col-lg-5"> <div class="bg-white rounded-3 p-3 border"> <h5 class="mb-3">近期要闻</h5> <ul class="list-unstyled m-0"> <?php foreach($posts as $p): ?> <li class="mb-3"> <a class="fw-semibold text-decoration-none" href="/post.php?slug=<?php echo h($p['slug']); ?>"><?php echo h($p['title']); ?></a> <div class="text-muted small"><?php echo date('Y-m-d', strtotime($p['created_at'])); ?></div> <div class="small"><?php echo h($p['excerpt']); ?></div> </li> <?php endforeach; ?> <?php if(empty($posts)): ?> <li class="text-muted">暂无发布的文章,登录后台添加吧。</li> <?php endif; ?> </ul> </div> </div> </div> </section> <section class="my-4"> <h2 class="h4 mb-3">我们的主张</h2> <div class="row g-3"> <div class="col-md-6 col-lg-3"> <div class="card h-100"> <div class="card-body"> <h5 class="card-title">言论与结社自由</h5> <p class="card-text">保障个人表达、媒体监督与公民自发组织的权利。</p> </div> </div> </div> <div class="col-md-6 col-lg-3"> <div class="card h-100"> <div class="card-body"> <h5 class="card-title">民主选举</h5> <p class="card-text">一人一票,公开、公正、透明的选举制度。</p> </div> </div> </div> <div class="col-md-6 col-lg-3"> <div class="card h-100"> <div class="card-body"> <h5 class="card-title">法治与人权</h5> <p class="card-text">宪政框架下保障人身、财产权与公平审判。</p> </div> </div> </div> <div class="col-md-6 col-lg-3"> <div class="card h-100"> <div class="card-body"> <h5 class="card-title">权力制衡</h5> <p class="card-text">分权制衡、独立司法与有效问责机制。</p> </div> </div> </div> </div> </section> <?php include __DIR__ . '/../includes/footer.php'; ?>