summaryrefslogtreecommitdiff
path: root/index.php
diff options
context:
space:
mode:
authorShevAbam <shevabam@gmail.com>2015-07-07 15:57:41 +0200
committerShevAbam <shevabam@gmail.com>2015-07-07 15:57:41 +0200
commit9970343fe5c8226f25234addc6b80836c092fe1f (patch)
treece8f029f3ce9251bd4c207a6427c356ad9042525 /index.php
parentdd982cee0716e38e68bc42ffb24952b5675a5b19 (diff)
General : cleaning and optimizing CSS
General : responsive design General : reload button now spins when you reload block General : update jQuery plugin Knob to 1.2.11 General : optimizing security (config file esm.config.json is now in the conf/ folder with an htaccess) CPU : retrieves correctly CPU frequency for Raspberry Pi CPU : add CPU temperature (+ option to enable/disable) System : little correction for getting distro name Swap : fix if swap is disabled Services status : adds protocol TCP or UDP for checking service status Services status : new option to hide port number (see show_port in services section)
Diffstat (limited to 'index.php')
-rw-r--r--index.php9
1 files changed, 7 insertions, 2 deletions
diff --git a/index.php b/index.php
index 3c34316..457f85c 100644
--- a/index.php
+++ b/index.php
@@ -1,6 +1,5 @@
<?php
-require 'libs/Utils/Misc.class.php';
-require 'libs/Utils/Config.class.php';
+require 'autoload.php';
$Config = new Config();
$update = $Config->checkUpdate();
?>
@@ -169,6 +168,12 @@ $update = $Config->checkUpdate();
<td>Bogomips</td>
<td id="cpu-bogomips"></td>
</tr>
+ <?php if ($Config->get('cpu:enable_temperature')): ?>
+ <tr>
+ <td>Temperature</td>
+ <td id="cpu-temp"></td>
+ </tr>
+ <?php endif; ?>
</tbody>
</table>
</div>