forked from unraid/webgui
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathProcesses.page
More file actions
32 lines (32 loc) · 907 Bytes
/
Processes.page
File metadata and controls
32 lines (32 loc) · 907 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
Menu="UNRAID-OS"
Title="Processes"
Icon="icon-processes"
Tag="cogs"
---
<?PHP
/* Copyright 2005-2018, Lime Technology
* Copyright 2012-2018, 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.
*/
?>
<?if ($display['resize']):?>
<script>
function resize() {
$('pre.up').height(Math.max(window.innerHeight-320,330)).show();
}
$(function() {
resize();
$(window).bind('resize',function(){resize();});
});
</script>
<?endif;?>
<?
echo ($display['resize'] ? "<pre class='up' style='display:none'>" : "<pre class='up'>").shell_exec('ps -ef')."</pre>";
?>
<input type="button" value="Done" onclick="done()">