| Server IP : 74.208.236.18 / Your IP : 216.73.216.45 Web Server : Apache System : Linux infong654 4.4.400-icpu-108 #2 SMP Wed Feb 11 10:12:42 UTC 2026 x86_64 User : u39365822 ( 135825) PHP Version : 8.4.23 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /homepages/7/d147067425/htdocs/client_user_2/ |
Upload File : |
<?php
ob_start();
session_start();
include("includes/db_con_get.php");
if(!isset($_SESSION['loggedin']) && @$_SESSION['loggedin'] != '1'):
//header("Location:index.php");
endif;
?>
<!DOCTYPE html>
<html lang="en">
<?php include("includes/header.php"); ?>
<body class="sb-nav-fixed">
<style>
.table a{
display:block;
text-decoration:none;
}
</style>
<?php include("includes/topnavbar.php"); ?>
<div id="layoutSidenav">
<?php include("includes/sidenavbar.php"); ?>
<div id="layoutSidenav_content">
<div class="container-fluid px-4">
<div class="success_data">
<h3 class="mt-4">Problem Management Guide Success Page</h3>
</br>
<?php
// $history = [
// "submission_id" => "5428305802615830531",
// "formID" => "213185545698973",
// "ip" => "223.178.212.162",
// "name" => Array
// (
// "first" => "test",
// "last" => "test"
// ),
// "email" => "test@test.com",
// "message" => "test"
// ];
//echo '<pre>'; print_r($history);
#Insert into submissionHistory table and update balances...........
$insSub = mysqli_query($con, "INSERT INTO `pmgformsubmissionhistory` (`SubmissionId`, `PMGFormId`, `UserId`, `SubmissionDate`)
VALUES ('".@$_POST['submission_id']."', '".@$_POST['formID']."', '".@$_POST['guid']."', now())") or die(mysqli_error($con));
#updating balances
$upBalance = mysqli_query($con, "UPDATE `user` SET `PMG` = PMG - 1 WHERE GuidReference = '".@$_POST['guid']."' AND PMG > 0") or die("Error updating ".mysqli_error($con));
// $url = 'http://apis.revealmyway.com:4000/therapist_api/public/api/user/pmginserthistory';
// $curl = curl_init($url);
// curl_setopt($curl, CURLOPT_URL, $url);
// curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
// $headers = array(
// "X-Custom-Header: value",
// "Content-Type: application/json",
// "API-TOKEN:t68VRoQGFSxHVR3dskZvRKpe8Pb1rQrm",
// );
// curl_setopt($curl, CURLOPT_HTTPHEADER, $headers);
// $fields = $_POST;
// $currentUserId = @$_SESSION['CURRENT_CLIENT']['UserID'];
// $fields['id'] = @$currentUserId ? $currentUserId : '';
// // Api call footer
// curl_setopt($curl, CURLOPT_POSTFIELDS, json_encode($fields));
// //for debug only!
// curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, false);
// curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false);
// $resp = curl_exec($curl);
// curl_close($curl);
// $response = json_decode($resp);
// //var_dump($resp);
// if(@$response->message != '') {
// echo '<h2 style="margin: 100px auto; width: fit-content; color: red; font-style: italic;">'.$response->message.'</h2>';
// } else if(@$response->success != '') {
// echo '<h2 style="margin: 100px auto; width: fit-content; color: green; font-style: italic;">'.$response->success.'</h2>';
// }
?>
</div>
<div class="wrapper" contenteditable="false">
<div class="col-6" style="margin: 0 auto">
<img class="tyBgImage" style="margin: 0 auto; display:block" src="https://cdn.jotfor.ms/img/Thankyou-iconV2.png?v=0.1" alt="thank you check icon" />
<p class="thank-you-icon" style="text-align: center;"><img class="notActiveTyIcon" style="display: none;" src="https://cdn.jotfor.ms/img/Thankyou-iconV2.png?v=0.1" alt="thank you check icon" width="153" height="156" /></p>
<div style="text-align: center;">
<h1 class="thankyou-main-text ty-text" style="text-align: center;">Thank You!</h1>
<p class="thankyou-sub-text ty-text" style="text-align: center;">Your submission has been received.</p>
<p class="thankyou-sub-text ty-text" style="text-align: center;"><a href="/dashboard">Click to return to the website</a></p>
</div>
</div>
<?php include("includes/footer.php"); ?>
</div>
</div>
</div>
<?php include("includes/footer_js.php"); ?>
</body>
</html>