PK

ADDRLIN : /home/questend/public_html/subdomain/techcon.jiffyfilms.com/
FLL :
Current File : /home/questend/public_html/subdomain/techcon.jiffyfilms.com/get_points.php

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

$function = new FUNCTIONS();

header('Content-Type: application/json');

if (isset($_GET['userId'])) {
    $userId = $_GET['userId'];
    
    try {

    	$pdodb = PDODB::getInstance();
		$sql = "SELECT points FROM users WHERE id = '".$userId."'";
		$result = $pdodb->query($sql);
		//print_r($result); exit;
		PDODB::closeInstance();
        
        echo json_encode([
            'success' => true,
            'points' => $result[0]['points'] ?? 0
        ]);
    } catch (PDOException $e) {
        echo json_encode([
            'success' => false,
            'message' => 'Database error'
        ]);
    }
} else {
    echo json_encode([
        'success' => false,
        'message' => 'User ID not provided'
    ]);
}
?>


PK 99
E-SHOP || DASHBOARD
404

Page Not Found

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

← Back to Home