One Hat Cyber Team
Your IP :
18.117.241.170
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.24.0
PHP Version :
8.3.12
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
www
/
wwwroot
/
ef.electronharmony.com
/
1
/
T4
/
View File Name :
addurlhome.php
<?php // 数据库连接信息 $servername = "localhost"; $username = "url_entries"; $password = "X5ftx2xPeJZYmmM5"; $dbname = "url_entries"; $conn = new mysqli($servername, $username, $password, $dbname); if ($conn->connect_error) { die("Connection failed: " . $conn->connect_error); } if ($_SERVER["REQUEST_METHOD"] == "POST") { $url = $conn->real_escape_string($_POST['url']); $title = $conn->real_escape_string($_POST['title']); $logo = $conn->real_escape_string($_POST['logo']); $keywords = $conn->real_escape_string($_POST['keywords']); $description = $conn->real_escape_string($_POST['description']); $country = $conn->real_escape_string($_POST['country']); $categorys = $conn->real_escape_string($_POST['categorys']); // 获取 categorys 字段 $sql = "INSERT INTO url_entries (url, title, logo, keywords, description, country, categorys) VALUES ('$url', '$title', '$logo', '$keywords', '$description', '$country', '$categorys')"; if ($conn->query($sql) === TRUE) { // 插入成功后跳转到 index.php header("Location: index.php"); exit; } else { echo "Error: " . $sql . "<br>" . $conn->error; } } $conn->close(); ?>