mirror of
https://github.com/unraid/webgui.git
synced 2026-01-14 13:39:58 -06:00
59 lines
2.1 KiB
Plaintext
59 lines
2.1 KiB
Plaintext
Menu="About"
|
|
Title="Update OS"
|
|
Tag="thumbs-up"
|
|
---
|
|
<?PHP
|
|
/* Copyright 2005-2017, Lime Technology
|
|
* Copyright 2012-2017, Bergware International.
|
|
*
|
|
* This program is free software; you can redistribute it and/or
|
|
* modify it under the terms of the GNU General Public License version 2,
|
|
* as published by the Free Software Foundation.
|
|
*
|
|
* The above copyright notice and this permission notice shall be included in
|
|
* all copies or substantial portions of the Software.
|
|
*/
|
|
?>
|
|
|
|
<?
|
|
$empty = "<tr><td colspan='6' style='text-align:center;padding-top:12px'><i class='fa fa-spinner fa-spin icon'></i><em>Please wait, retrieving and updating system information ...</em></td><tr>";
|
|
$audit = $notify['unraidos'] ? 1 : 0;
|
|
?>
|
|
<script>
|
|
var original = null;
|
|
|
|
function noAudit() {
|
|
hideUpgrade();
|
|
$.cookie('noAudit','true',{path:'/'});
|
|
}
|
|
function update_table(branch) {
|
|
$('#os_list').html("<?=$empty?>");
|
|
if (original) {
|
|
if (branch != original) branch = '';
|
|
} else {
|
|
if (branch) original = branch;
|
|
}
|
|
$.get('/plugins/dynamix.plugin.manager/include/ShowPlugins.php',{system:'true',branch:branch},function(data) {
|
|
if (data) $('#os_list').html(data);
|
|
$('#os_table').trigger('update',true);
|
|
});
|
|
}
|
|
$(function() {
|
|
$.get('/plugins/dynamix.plugin.manager/include/ShowPlugins.php',{system:'true',audit:<?=$audit?>},function(data) {
|
|
if (data) $('#os_list').html(data);
|
|
$('#os_table').tablesorter({sortList:[[4,0],[1,0]],sortAppend:[[1,0]],headers:{0:{sorter:false},5:{sorter:false}},textAttribute:'data'});
|
|
<?if (preg_match("/^\*\*REBOOT REQUIRED\!\*\*/",@file_get_contents("$docroot/plugins/unRAIDServer/README.md"))):?>
|
|
$('#change_branch').prop('disabled',true);
|
|
<?endif;?>
|
|
});
|
|
<?if (!$audit):?>
|
|
$('.tabs').append("<span class='status vhshift'><input type='button' value='Check for Updates' onclick='openBox(\"/plugins/dynamix.plugin.manager/scripts/plugin&arg1=checkos\",\"Plugin Update Check\",490,430,true)'></span>");
|
|
<?endif;?>
|
|
});
|
|
</script>
|
|
|
|
<table class='tablesorter plugins shift' id='os_table'>
|
|
<thead><tr><th></th><th>Component</th><th>Author</th><th>Version</th><th>Status</th><th>Branch</th></tr></thead>
|
|
<tbody id="os_list"><?=$empty?></tbody>
|
|
</table>
|