⚝
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 :
post.php
<?php // public/post.php if (session_status() === PHP_SESSION_NONE) { session_start(); } require_once __DIR__ . '/../config/sql.php'; require_once __DIR__ . '/../includes/functions.php'; $slug = $_GET['slug'] ?? ''; $stmt = $conn->prepare("SELECT id, title, content, created_at FROM posts WHERE slug = ? AND is_published=1 LIMIT 1"); $stmt->bind_param("s", $slug); $stmt->execute(); $res = $stmt->get_result(); $post = $res->fetch_assoc(); $stmt->close(); if(!$post){ http_response_code(404); die('Not found'); } $page_title = $post['title']; include __DIR__ . '/../includes/header.php'; ?> <article class="mx-auto" style="max-width: 860px;"> <h1 class="mb-2"><?php echo h($post['title']); ?></h1> <div class="text-muted mb-4"><?php echo date('Y-m-d H:i', strtotime($post['created_at'])); ?></div> <div class="content"><?php echo $post['content']; ?></div> </article> <?php include __DIR__ . '/../includes/footer.php'; ?>