summaryrefslogtreecommitdiffstats
path: root/usr/local/www/index.php
diff options
context:
space:
mode:
Diffstat (limited to 'usr/local/www/index.php')
-rwxr-xr-xusr/local/www/index.php12
1 files changed, 4 insertions, 8 deletions
diff --git a/usr/local/www/index.php b/usr/local/www/index.php
index be6e120..e9d5ef4 100755
--- a/usr/local/www/index.php
+++ b/usr/local/www/index.php
@@ -211,19 +211,15 @@ include("fbegin.inc");
<?php
/* XXX - Stub in the HW monitor for net4801 - needs to use platform var's once we start using them */
/* XXX - this should be grep net4801, but the graph doesn't update right now and I don't want to fix it right now - billm */
- $is4801 = `/sbin/dmesg -a | /usr/bin/grep net4801`;
- if($is4801 <> ""):
- exec("/usr/local/sbin/env4801 -i");
- $hwtype = "4801";
-
+ if(has_temp()):
?>
<tr>
<td width='25%' class='vncellt'>Temperature</td>
<td width='75%' class='listr'>
- <?php $temp = get_temp($hwtype); ?>
- <img src="./themes/<?= $g["theme"]; ?>/images/misc/bar_left.gif" height="15" width="4" border="0" align="middle" alt="left bar" /><img src="./themes/<?= $g["theme"]; ?>/images/misc/bar_blue.gif" height="15" name="Tempwidtha" id="tempwidtha" width="<?= $temp; ?>" border="0" align="middle" alt="blue bar" /><img src="./themes/<?= $g["theme"]; ?>/images/misc/bar_gray.gif" height="15" name="Tempwidthb" id="tempwidthb" width="<?= (100 - $temp); ?>" border="0" align="middle" alt="gray bar" /><img src="./themes/<?= $g["theme"]; ?>/images/misc/bar_right.gif" height="15" width="5" border="0" align="middle" alt="right bar" />
+ <?php $temp = get_temp(); ?>
+ <img src="./themes/<?= $g["theme"]; ?>/images/misc/bar_left.gif" height="15" width="4" border="0" align="middle" alt="left bar" /><img src="./themes/<?= $g["theme"]; ?>/images/misc/bar_blue.gif" height="15" name="tempwidtha" id="tempwidtha" width="<?= $temp; ?>" border="0" align="middle" alt="blue bar" /><img src="./themes/<?= $g["theme"]; ?>/images/misc/bar_gray.gif" height="15" name="tempwidthb" id="tempwidthb" width="<?= (100 - $temp); ?>" border="0" align="middle" alt="gray bar" /><img src="./themes/<?= $g["theme"]; ?>/images/misc/bar_right.gif" height="15" width="5" border="0" align="middle" alt="right bar" />
&nbsp;
- <input style="border: 0px solid white;" size="30" name="Tempmeter" id="Tempmeter" value="<?= $temp."C"; ?>" />
+ <input style="border: 0px solid white;" size="30" name="tempmeter" id="tempmeter" value="<?= $temp."C"; ?>" />
</td>
</tr>
<?php endif; ?>
OpenPOWER on IntegriCloud