Line 28... |
Line 28... |
28 |
(int) (disk_total_space("/data")/1048576) . "MB (" . |
28 |
(int) (disk_total_space("/data")/1048576) . "MB (" . |
29 |
(int) (disk_free_space("/data") / disk_total_space("/data") * 100) . "%)" ?></td> |
29 |
(int) (disk_free_space("/data") / disk_total_space("/data") * 100) . "%)" ?></td> |
30 |
</tr> |
30 |
</tr> |
31 |
<tr> |
31 |
<tr> |
32 |
<td> Teplota disků </td> |
32 |
<td> Teplota disků </td> |
33 |
<td> <?php @exec("/usr/sbin/hddtemp /dev/sd?",$xxx); |
33 |
<td> <?php @exec("sudo -n /usr/sbin/hddtemp /dev/sd?",$xxx); // Doplňte do /etc/sudoers něco jako: %www-data ALL=NOPASSWD: /usr/sbin/hddtemp |
34 |
echo implode("<br>", $xxx);?></td> |
34 |
echo implode("<br>", $xxx);?></td> |
35 |
</tr> |
35 |
</tr> |
36 |
</table> |
36 |
</table> |
37 |
|
37 |
|
38 |
<table> |
38 |
<table> |