Ejemplo n.º 1
0
echo $lang["last"];
?>
</th>       
        <th title="Difficulty 1 Shares">Diff1</th>        
        <th title="Difficulty Accepted">DAcc</th>
        <th title="Difficulty Rejected">DRej</th>
        <th title="Last Share Difficulty">DLast</th>
        <th title="Best Share"><?php 
echo $lang["best"];
?>
</th>	
      </tr>
    </thead>

<?php 
echo poolsTable($pools["POOLS"]);
echo "</tbody></table>";
function poolsTable($pools)
{
    // class="success" error warning info
    $poolID = 0;
    $table = "";
    array_sort_by_column($pools, 'Priority');
    foreach ($pools as $pool) {
        if ($pool['Status'] != "Alive") {
            $rowclass = 'error';
        } else {
            $rowclass = 'success';
        }
        $poolURL = explode(":", str_replace("/", "", $pool['URL']));
        $table = $table . "\n    <tr class='" . $rowclass . "'>\n\t<td>";
Ejemplo n.º 2
0
        <th title="Priority">Pr</th>
        <th title="GetWorks">GW</th>
        <th title="Accept">Acc</th>
        <th title="Reject">Rej</th>
        <th title="Discard">Disc</th>
        <th title="Last Share Time">Last</th>       
        <th title="Difficulty 1 Shares">Diff1</th>        
        <th title="Difficulty Accepted">DAcc</th>
        <th title="Difficulty Rejected">DRej</th>
        <th title="Last Share Difficulty">DLast</th>
        <th title="Best Share">Best</th>      
      </tr>
    </thead>
    <tbody>
      <?php 
echo poolsTable($pools['POOLS']);
?>
    </tbody>
  </table>

  <h3>Devices</h3>
  <?php 
echo statsTable($devs);
?>
  
</div>
<?php 
include 'foot.php';
function statsTable($devs)
{
    if (count($devs) == 0) {