Added Basic Opt In Telemetry during install to help determine the number of installs and what country of origin are using the application along with any comments

This commit is contained in:
johnnyq
2022-01-15 22:37:46 -05:00
parent 55dafd42a8
commit 5fdf956eb4
2 changed files with 133 additions and 6 deletions

View File

@@ -12,15 +12,40 @@
<h1>Blank Page</h1>
<hr>
<p>This is a great starting point for new custom pages.</p>
<button class="btn clipboard" type="button" data-clipboard-text="Just because you can doesn't mean you should — clipboard.js">
Copy to clipboard
</button>
<?php
$user_agent = get_user_agent();
$company_name = "bum";
echo $user_agent;
$postdata = http_build_query(
array(
'company_name' => "$company_name",
'city' => "$city",
'state' => "$state",
'country' => "$country",
'currency' => "$currency",
'comments' => "$comments"
)
);
$opts = array('http' =>
array(
'method' => 'POST',
'header' => 'Content-type: application/x-www-form-urlencoded',
'content' => $postdata
)
);
$context = stream_context_create($opts);
$result = file_get_contents('https://telemetry.itflow.org', false, $context);
echo $result;
header("Location: clients.php");
?>