Plugin system update

This commit is contained in:
bergware
2022-07-25 09:31:44 +02:00
parent 49ae9c5a61
commit 0bd1620f36
4 changed files with 8 additions and 8 deletions
+2 -2
View File
@@ -25,7 +25,7 @@ require_once "$docroot/webGui/include/Translations.php";
function write($message){
$nchan = curl_init();
curl_setopt_array($nchan,[
CURLOPT_URL => 'http://localhost/pub/selectcase?buffer_length=0',
CURLOPT_URL => 'http://localhost/pub/selectcase?buffer_length=1',
CURLOPT_UNIX_SOCKET_PATH => '/var/run/nginx.socket',
CURLOPT_POST => 1,
CURLOPT_POSTFIELDS => $message,
@@ -85,6 +85,6 @@ $select = substr($cmodel,-4)=='.png' ? 'color:#e68a00' : '';
$html[] = "<input type='file' id='file' accept='.png' onchange='importFile(this.files[0])' style='display:none'>";
$html[] = "</div>";
usleep(300000);
usleep(100000);
write(implode($style).implode($script).implode($html));
?>