mirror of
https://github.com/itflow-org/itflow
synced 2026-03-06 05:44:52 +00:00
Added comments and version to Telemetry
This commit is contained in:
4
post.php
4
post.php
@@ -1130,6 +1130,7 @@ if(isset($_POST['send_telemetry_data'])){
|
|||||||
validateAdminRole();
|
validateAdminRole();
|
||||||
|
|
||||||
$config_telemetry = intval($_POST['config_telemetry']);
|
$config_telemetry = intval($_POST['config_telemetry']);
|
||||||
|
$comments = $_POST['comments'];
|
||||||
|
|
||||||
mysqli_query($mysqli,"UPDATE settings SET config_telemetry = $config_telemetry WHERE company_id = $session_company_id");
|
mysqli_query($mysqli,"UPDATE settings SET config_telemetry = $config_telemetry WHERE company_id = $session_company_id");
|
||||||
|
|
||||||
@@ -1141,6 +1142,7 @@ if(isset($_POST['send_telemetry_data'])){
|
|||||||
$state = $row['company_state'];
|
$state = $row['company_state'];
|
||||||
$country = $row['company_country'];
|
$country = $row['company_country'];
|
||||||
$currency = $row['company_currency'];
|
$currency = $row['company_currency'];
|
||||||
|
$current_version = exec("git rev-parse HEAD");
|
||||||
|
|
||||||
// Basic Telemetry
|
// Basic Telemetry
|
||||||
if($config_telemetry == 1){
|
if($config_telemetry == 1){
|
||||||
@@ -1173,11 +1175,13 @@ if(isset($_POST['send_telemetry_data'])){
|
|||||||
|
|
||||||
$postdata = http_build_query(
|
$postdata = http_build_query(
|
||||||
array(
|
array(
|
||||||
|
'version' => "$current_version",
|
||||||
'company_name' => "$company_name",
|
'company_name' => "$company_name",
|
||||||
'city' => "$city",
|
'city' => "$city",
|
||||||
'state' => "$state",
|
'state' => "$state",
|
||||||
'country' => "$country",
|
'country' => "$country",
|
||||||
'currency' => "$currency",
|
'currency' => "$currency",
|
||||||
|
'comments' => "$comments",
|
||||||
'user_count' => $user_count,
|
'user_count' => $user_count,
|
||||||
'client_count' => $client_count,
|
'client_count' => $client_count,
|
||||||
'invoice_count' => $invoice_count,
|
'invoice_count' => $invoice_count,
|
||||||
|
|||||||
@@ -21,6 +21,11 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div class="form-group">
|
||||||
|
<label>Comments</label>
|
||||||
|
<textarea class="form-control" rows="4" name="comments" placeholder="Any Comments to send before hitting Send Telemetry Data?"></textarea>
|
||||||
|
</div>
|
||||||
|
|
||||||
<hr>
|
<hr>
|
||||||
|
|
||||||
<?php if ($config_telemetry > 0) { ?>
|
<?php if ($config_telemetry > 0) { ?>
|
||||||
|
|||||||
Reference in New Issue
Block a user