Browse Source

miner.php allow 'coin' is custom pages

nfactor-troky
Kano 12 years ago
parent
commit
9cd7d6ba22
  1. 5
      miner.php

5
miner.php

@ -762,6 +762,7 @@ function fmt($section, $name, $value, $when, $alldata)
$class = $warnclass; $class = $warnclass;
break; break;
case 'STATUS.When': case 'STATUS.When':
case 'COIN.Current Block Time':
$ret = date($dfmt, $value); $ret = date($dfmt, $value);
break; break;
case 'BUTTON.Rig': case 'BUTTON.Rig':
@ -1457,7 +1458,8 @@ $sectionmap = array(
'NOTIFY' => 'notify', 'NOTIFY' => 'notify',
'DEVDETAILS' => 'devdetails', 'DEVDETAILS' => 'devdetails',
'STATS' => 'stats', 'STATS' => 'stats',
'CONFIG' => 'config'); 'CONFIG' => 'config',
'COIN' => 'coin');
# #
function joinfields($section1, $section2, $join, $results) function joinfields($section1, $section2, $join, $results)
{ {
@ -1592,6 +1594,7 @@ function joinsections($sections, $results, $errors)
case 'POOL': case 'POOL':
case 'DEVS': case 'DEVS':
case 'CONFIG': case 'CONFIG':
case 'COIN':
$sectionmap[$section] = $section; $sectionmap[$section] = $section;
$results[$section] = joinall($both[0], $both[1], $results); $results[$section] = joinall($both[0], $both[1], $results);
break; break;

Loading…
Cancel
Save