mirror of
https://github.com/GOSTSec/sgminer
synced 2025-01-14 08:48:01 +00:00
Add enable/disablepool to miner.php example and reduce font size 1pt
This commit is contained in:
parent
fe34ba1836
commit
57ebb39b42
34
miner.php
34
miner.php
@ -10,9 +10,9 @@ $here = $_SERVER['PHP_SELF'];
|
|||||||
?>
|
?>
|
||||||
<html><head><title>Mine</title>
|
<html><head><title>Mine</title>
|
||||||
<style type='text/css'>
|
<style type='text/css'>
|
||||||
td { color:blue; font-family:verdana,arial,sans; font-size:14pt; }
|
td { color:blue; font-family:verdana,arial,sans; font-size:13pt; }
|
||||||
td.h { color:blue; font-family:verdana,arial,sans; font-size:14pt; background:#d0ffff }
|
td.h { color:blue; font-family:verdana,arial,sans; font-size:13pt; background:#d0ffff }
|
||||||
td.sta { color:green; font-family:verdana,arial,sans; font-size:14pt; }
|
td.sta { color:green; font-family:verdana,arial,sans; font-size:13pt; }
|
||||||
</style>
|
</style>
|
||||||
</head><body bgcolor=#ecffff>
|
</head><body bgcolor=#ecffff>
|
||||||
<script type='text/javascript'>
|
<script type='text/javascript'>
|
||||||
@ -229,6 +229,10 @@ function details($cmd, $list)
|
|||||||
|
|
||||||
$section = '';
|
$section = '';
|
||||||
|
|
||||||
|
$poolcmd = array( 'Switch to' => 'switchpool',
|
||||||
|
'Enable' => 'enablepool',
|
||||||
|
'Disable' => 'disablepool' );
|
||||||
|
|
||||||
foreach ($list as $item => $values)
|
foreach ($list as $item => $values)
|
||||||
{
|
{
|
||||||
if ($item != 'STATUS')
|
if ($item != 'STATUS')
|
||||||
@ -245,7 +249,8 @@ function details($cmd, $list)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if ($cmd == 'pools')
|
if ($cmd == 'pools')
|
||||||
echo "<td valign=bottom class=h>Switch</td>";
|
foreach ($poolcmd as $name => $pcmd)
|
||||||
|
echo "<td valign=bottom class=h>$name</td>";
|
||||||
|
|
||||||
echo '</tr>';
|
echo '</tr>';
|
||||||
|
|
||||||
@ -258,24 +263,27 @@ function details($cmd, $list)
|
|||||||
if ($item == 'STATUS')
|
if ($item == 'STATUS')
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
|
echo '<tr>';
|
||||||
|
|
||||||
foreach ($values as $name => $value)
|
foreach ($values as $name => $value)
|
||||||
echo '<td>'.fmt($section, $name, $value).'</td>';
|
echo '<td>'.fmt($section, $name, $value).'</td>';
|
||||||
|
|
||||||
if ($cmd == 'pools')
|
if ($cmd == 'pools')
|
||||||
{
|
{
|
||||||
echo '<td>';
|
|
||||||
|
|
||||||
reset($values);
|
reset($values);
|
||||||
$pool = current($values);
|
$pool = current($values);
|
||||||
if ($pool === false)
|
foreach ($poolcmd as $name => $pcmd)
|
||||||
echo ' ';
|
|
||||||
else
|
|
||||||
{
|
{
|
||||||
echo "<input type=button value='Pool $pool'";
|
echo '<td>';
|
||||||
echo " onclick='prc(\"switchpool|$pool\",\"Switch to Pool $pool\")'>";
|
if ($pool === false)
|
||||||
|
echo ' ';
|
||||||
|
else
|
||||||
|
{
|
||||||
|
echo "<input type=button value='Pool $pool'";
|
||||||
|
echo " onclick='prc(\"$pcmd|$pool\",\"$name Pool $pool\")'>";
|
||||||
|
}
|
||||||
|
echo '</td>';
|
||||||
}
|
}
|
||||||
|
|
||||||
echo '</td>';
|
|
||||||
}
|
}
|
||||||
|
|
||||||
echo '</tr>';
|
echo '</tr>';
|
||||||
|
Loading…
Reference in New Issue
Block a user