Create SysDriversInit event.

This commit is contained in:
SimonFair
2023-07-15 10:14:38 +01:00
parent 7d803ad7db
commit bfdb01559f

View File

@@ -0,0 +1,18 @@
#!/usr/bin/php
<?php
function httpPost($url, $data)
{
$curl = curl_init($url);
curl_setopt($curl, CURLOPT_POST, true);
curl_setopt($curl, CURLOPT_POSTFIELDS, http_build_query($data));
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($curl);
curl_close($curl);
return $response;
}
$var = @parse_ini_file("/var/local/emhttp/var.ini") ?: [];
$rtn = httpPost("http://localhost/webGui/include/SysDrivers.php", ["table"=>"t1create","csrf_token" => $var['csrf_token']]) ;
echo $rtn ;
?>