diff --git a/miner.php b/miner.php
index 424108b2..40411b2f 100644
--- a/miner.php
+++ b/miner.php
@@ -30,11 +30,12 @@ $notify = true;
$checklastshare = true;
#
# Set $rigs to an array of your cgminer rigs that are running
-# format: 'IP:Port' or 'Host:Port'
+# format: 'IP:Port' or 'Host:Port' or 'Host:Port:Name'
# If you only have one rig, it will just show the detail of that rig
# If you have more than one rig it will show a summary of all the rigs
-# with buttons to show the details of each rig
-# e.g. $rigs = array('127.0.0.1:4028','myrig.com:4028');
+# with buttons to show the details of each rig -
+# the button contents will be 'Name' if that was specified
+# e.g. $rigs = array('127.0.0.1:4028','myrig.com:4028:Sugoi');
$rigs = array('127.0.0.1:4028');
#
# This should be OK for most cases
@@ -54,7 +55,7 @@ $socktimeoutsec = 10;
#$hidefields = array('POOL.URL' => 1, 'POOL.User' => 1);
$hidefields = array();
#
-# Auto-refresh of the page (in seconds)
+# Auto-refresh of the page (in seconds) - integers only
# $ignorerefresh = true/false always ignore refresh parameters
# $changerefresh = true/false show buttons to change the value
# $autorefresh = default value, 0 means dont auto-refresh
@@ -957,9 +958,18 @@ function process($cmds, $rig)
#
function rigbutton($rig, $rigname, $when, $row)
{
+ global $rigs;
+
+ if (isset($rigs[$rig]))
+ {
+ $parts = explode(':', $rigs[$rig], 3);
+ if (count($parts) == 3)
+ $rigname = $parts[2];
+ }
+
list($value, $class) = fmt('BUTTON', 'Rig', '', $when, $row);
- $button = "