mirror of
https://github.com/unraid/webgui.git
synced 2026-04-30 23:09:42 -05:00
@@ -370,6 +370,7 @@ if ($argc < 2) {
|
||||
echo $usage;
|
||||
exit(1);
|
||||
}
|
||||
$notify = '/usr/local/emhttp/webGui/scripts/notify';
|
||||
$boot = '/boot/config/plugins';
|
||||
$plugins = '/var/log/plugins';
|
||||
$tmp = '/tmp/plugins';
|
||||
@@ -516,6 +517,10 @@ if ($method == 'install') {
|
||||
if (dirname($plugin_file) == "$boot") {
|
||||
move($plugin_file, "$boot-error");
|
||||
}
|
||||
$event = "Install error";
|
||||
$subject = "plugin: ".basename($plugin_file);
|
||||
$description = "Plugin failed to install";
|
||||
exec("$notify -e $event -s $subject -d $description) -i 2");
|
||||
exit(1);
|
||||
}
|
||||
unlink("$plugins/$plugin");
|
||||
|
||||
@@ -316,8 +316,8 @@ foreach ($cpus as $pair) {
|
||||
<?=mk_option("", "2", _("Errors info"))?>
|
||||
<?=mk_option("", "3", _("Network traffic"))?>
|
||||
</select></td>
|
||||
<td><i class='view1'>_(Mode of operation)_</i><i class='view2'>_(Received packets)_</i><i class='view3'>_(Receive counters)_</i><i class='view4 red-text'>_(Inbound)_</i></td>
|
||||
<td><i class='view1'></i><i class='view2'>_(Transmitted packets)_</i><i class='view3'>_(Transmit counters)_</i><i class='view4 orange-text'>_(Outbound)_</i>
|
||||
<td><i class='view1'>_(Mode of operation)_</i><i class='view2'>_(Received packets)_</i><i class='view3'>_(Receive counters)_</i><i class='fa fa-fw fa-arrow-down red-text'></i> <i class='view4 red-text'>_(Inbound)_</i></td>
|
||||
<td><i class='view1'></i><i class='view2'>_(Transmitted packets)_</i><i class='view3'>_(Transmit counters)_</i><i class='fa fa-fw fa-arrow-up orange-text'></i> <i class='view4 orange-text'>_(Outbound)_</i>
|
||||
<span class='view4' style='float:right;margin-right:24px'><select id='netline' class='auto' title="_(Select time frame)_" onchange='changeNetline(this.value)'>
|
||||
<?=mk_option("","10", _("10 s"));?>
|
||||
<?=mk_option("","30", _("30 s"));?>
|
||||
|
||||
Reference in New Issue
Block a user