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

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/feedback?buffer_length=0',
CURLOPT_URL => 'http://localhost/pub/feedback?buffer_length=1',
CURLOPT_UNIX_SOCKET_PATH => '/var/run/nginx.socket',
CURLOPT_POST => 1,
CURLOPT_POSTFIELDS => $message,
@@ -188,6 +188,6 @@ $script[] = " \$('#optFeatureRequest').click();";
$script[] = "});";
$script[] = "</script>";
usleep(300000);
usleep(100000);
write(implode($style).implode($html).implode($script));
?>

View File

@@ -27,7 +27,7 @@ $month = [' Jan '=>'-01-',' Feb '=>'-02-',' Mar '=>'-03-',' Apr '=>'-04-',' May
function write($message){
$nchan = curl_init();
curl_setopt_array($nchan,[
CURLOPT_URL => 'http://localhost/pub/phistory?buffer_length=0',
CURLOPT_URL => 'http://localhost/pub/phistory?buffer_length=1',
CURLOPT_UNIX_SOCKET_PATH => '/var/run/nginx.socket',
CURLOPT_POST => 1,
CURLOPT_POSTFIELDS => $message,
@@ -78,6 +78,6 @@ if ($list) {
} else {
$list[] = "<tr><td colspan='7' style='text-align:center;padding-top:12px'>"._('No parity check history present')."!</td></tr>";
}
usleep(300000);
usleep(100000);
write($head.implode($list)."</table>");
?>

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));
?>

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/sysinfo?buffer_length=0',
CURLOPT_URL => 'http://localhost/pub/sysinfo?buffer_length=1',
CURLOPT_UNIX_SOCKET_PATH => '/var/run/nginx.socket',
CURLOPT_POST => 1,
CURLOPT_POSTFIELDS => $message,
@@ -191,6 +191,6 @@ $list[] = "<tr><td>"._('Kernel').":</td><td>$kernel</td></tr>";
$list[] = "<tr><td>"._('OpenSSL').":</td><td>$openssl</td></tr>";
$list[] = "<tr><td>"._('Uptime').":</td><td><span class='uptime'></span></td></tr></table>";
usleep(300000);
usleep(100000);
write($style.implode($list));
?>