⚝
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
/
Edit File: pages.php
0){ $stmt = $conn->prepare("UPDATE pages SET title=?, slug=?, content=? WHERE id=?"); $stmt->bind_param("sssi", $title, $slug, $content, $id); $stmt->execute(); $stmt->close(); } else { $stmt = $conn->prepare("INSERT INTO pages(title, slug, content) VALUES(?,?,?)"); $stmt->bind_param("sss", $title, $slug, $content); $stmt->execute(); $stmt->close(); } header("Location: /admin/pages.php"); exit; } if(isset($_GET['delete'])){ $id = intval($_GET['delete']); $conn->query("DELETE FROM pages WHERE id={$id}"); header("Location: /admin/pages.php"); exit; } $edit = null; if(isset($_GET['id'])){ $id = intval($_GET['id']); $res = $conn->query("SELECT * FROM pages WHERE id={$id} LIMIT 1"); $edit = $res->fetch_assoc(); } $pages = $conn->query("SELECT id,title,slug FROM pages ORDER BY id DESC"); $page_title = '管理页面'; include __DIR__ . '/../includes/header.php'; ?>
页面列表
ID
标题
Slug
操作
fetch_assoc()): ?>
编辑
删除
标题
Slug(URL)
内容(支持 HTML)
保存
Simpan