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:
16
gui/lib/util.php
Normal file
16
gui/lib/util.php
Normal 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;
|
||||
}
|
Reference in New Issue
Block a user