Tul xxx Tul
User / IP
:
216.73.216.159
Host / Server
:
45.84.207.204 / aircan.me
System
:
Linux lt-bnk-web1726.main-hosting.eu 5.14.0-611.36.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Mar 3 11:23:52 EST 2026 x86_64
Command
|
Upload
|
Create
Mass Deface
|
Jumping
|
Symlink
|
Reverse Shell
Ping
|
Port Scan
|
DNS Lookup
|
Whois
|
Header
|
cURL
:
/
home
/
u931257429
/
domains
/
aircan.me
/
public_html
/
daniel
/
assets
/
php
/
Viewing: projects_actions.php
<?php session_start(); if (!isset($_SESSION['user_id'])) { header('Location: /0.14-Curriculum_Daniel/admin/login.php'); exit(); } require_once __DIR__ . '/db.php'; try { $pdo = db(); } catch (PDOException $e) { die('Error de conexión: ' . $e->getMessage()); } $action = $_GET['action'] ?? ''; $base = '/0.14-Curriculum_Daniel/admin/dashboard.php#projects-tab'; function isAjax() { return isset($_SERVER['HTTP_X_REQUESTED_WITH']) && strtolower($_SERVER['HTTP_X_REQUESTED_WITH']) === 'xmlhttprequest'; } if ($action === 'delete') { $id = isset($_GET['id']) ? intval($_GET['id']) : 0; if ($id > 0) { $stmt = $pdo->prepare('SELECT image_path FROM projects WHERE id = :id'); $stmt->execute([':id' => $id]); $row = $stmt->fetch(PDO::FETCH_ASSOC); if ($row) { $pdo->prepare('DELETE FROM projects WHERE id = :id')->execute([':id' => $id]); // Intentar eliminar el archivo $relative = $row['image_path']; $absolute = realpath(__DIR__ . '/../../' . $relative); if ($absolute && file_exists($absolute)) { @unlink($absolute); } } } if (isAjax()) { header('Content-Type: application/json'); echo json_encode(['ok' => true, 'id' => $id]); exit(); } header('Location: /0.14-Curriculum_Daniel/admin/dashboard.php?ok=1#projects-tab'); exit(); } echo 'Acción no válida';
Coded With 💗 by
0x6ick