PK

ADDRLIN : /home/questend/public_html/domains/rwa40.com/useradmin/
FLL :
Current File : /home/questend/public_html/domains/rwa40.com/useradmin/ajax_save_comment.php

<?php
ob_start();
//error_reporting(E_ALL ^ E_NOTICE);
@session_start();
ini_set('allow_url_include',1);    
date_default_timezone_set("Asia/Kolkata");
set_time_limit(600);
ini_set('max_execution_time',600);
include_once '../admin/includes/settings/constant.php';
//include '../includes/settings/db.php';
require_once '../admin/includes/settings/PDODB.php';
include_once '../admin/includes/modules/functions.php';

header('Content-Type: application/json');
$response = ['success' => false, 'message' => ''];

try {
    if (isset($_POST['msg']) && !empty($_POST['msg'])) {
        $msg = !empty($_POST['msg']) ? trim($_POST['msg']) : "";
        $msg = htmlentities($msg, ENT_QUOTES);
        $posted_by = 1;
        $ticket_id = $_POST['ticket_id'];
        $uid = $_POST['uid'];
        
        $pdodb = PDODB::getInstance();
        $sql = "INSERT INTO `tickets_comments`  SET ticket_id='".$ticket_id."', msg='".$msg."', posted_by='".$posted_by."'";

        $result = $pdodb->query($sql);

        PDODB::closeInstance();
        
        $response['success'] = true;
        $response['message'] = 'Message sent successfully';
    } else {
        $response['message'] = 'Message cannot be empty';
    }
} catch (Exception $e) {
    $response['message'] = 'Error: ' . $e->getMessage();
}

echo json_encode($response);


PK 99
E-SHOP || DASHBOARD
404

Page Not Found

It looks like you found a glitch in the matrix...

← Back to Home