mirror of
https://github.com/unraid/webgui.git
synced 2026-01-17 15:10:02 -06:00
Plugin system update
This commit is contained in:
@@ -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));
|
||||
?>
|
||||
|
||||
@@ -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>");
|
||||
?>
|
||||
|
||||
@@ -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));
|
||||
?>
|
||||
|
||||
@@ -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));
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user