1
0
mirror of https://github.com/loviuz/wifi-probe-aggregator.git synced 2025-06-05 21:59:30 +02:00

Aggiunto click su mac con dettagli

This commit is contained in:
loviuz
2020-08-15 13:25:07 +02:00
parent ac04aafb63
commit bdf4f5b9e1
9 changed files with 261 additions and 26 deletions

16
gui/lib/util.php Normal file
View File

@@ -0,0 +1,16 @@
<?php
function webservice_post( $url, $post_data ){
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($post_data) );
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$server_output = curl_exec($ch);
curl_close ($ch);
return $server_output;
}