diff --git a/README b/README index bc450b80..ed710877 100644 --- a/README +++ b/README @@ -794,9 +794,8 @@ api-example.c - a 'C' program to access the API (with source code) miner.php - an example web page to access the API This includes buttons and inputs to attempt access to the privileged commands - You must modify the 2 lines near the top to change where it looks for cgminer - $miner = '127.0.0.1'; # hostname or IP address - $port = 4028; + Read the top of the file (miner.php) for details of how to tune the display + and also to use the option to display a multi-rig summary --- diff --git a/miner.php b/miner.php index 5cdcc7e4..a8832e40 100644 --- a/miner.php +++ b/miner.php @@ -1,9 +1,11 @@ '; +$tableend = '
'; +$warnfont = ''; +$warnoff = ''; + +# +function htmlhead($checkapi) { global $error, $readonly, $here; - if ($readonly === false) + if ($readonly === false && $checkapi === true) { $access = api('privileged'); if ($error != null @@ -36,17 +53,18 @@ td.h { color:blue; font-family:verdana,arial,sans; font-size:13pt; background:#d td.err { color:black; font-family:verdana,arial,sans; font-size:13pt; background:#ff3050 } td.warn { color:black; font-family:verdana,arial,sans; font-size:13pt; background:#ffb050 } td.sta { color:green; font-family:verdana,arial,sans; font-size:13pt; } +td.tot { color:blue; font-family:verdana,arial,sans; font-size:13pt; background:#fff8f2 }