| 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
session_start();
ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);
error_reporting(E_ALL);
if(!isset($_SESSION['loggedinC']) && @$_SESSION['loggedinC'] != '1'):
//header("Location:index.php");
endif;
include("includes/db_con_get.php");
//print_r($_POST);
?>
<!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" style="padding-left:0px">
<div class="container-fluid px-4">
<div class="success_data" style="min-height:100vh">
<!-- <h3 class="mt-4">Wellbeing Profiler 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);
// // $url = 'http://apis.revealmyway.com:4000/therapist_api/public/api/user/ppinserthistory';
// // $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>';
// }
if(@$_POST['formID'] == '230103657041140') {
$update_balances = mysqli_query($con, "UPDATE `user` SET Profiler = Profiler - 1 WHERE GuidReference = '".@$_POST['guid']."' AND Profiler > 0");
} else if(@$_POST['formID'] == '230104027959150') {
$update_balances = mysqli_query($con, "UPDATE `user` SET PeriodicProfiler = PeriodicProfiler - 1 WHERE GuidReference = '".@$_POST['guid']."' AND PeriodicProfiler > 0");
}
#Insert into submissionHistory table and update balances...........
$insSub = mysqli_query($con, "INSERT INTO `profilerformsubmissionhistory` (`SubmissionId`, `ProfilerTypeFormId`, `UserId`, `SubmissionDate`)
VALUES ('".@$_POST['submission_id']."', '".@$_POST['formID']."', '".@$_POST['guid']."', now())") or die(mysqli_error($con));
?>
<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>